summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f6ae709)
raw | patch | inline | side by side (parent: f6ae709)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 10 Aug 2006 07:16:29 +0000 (07:16 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 10 Aug 2006 07:16:29 +0000 (07:16 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4460 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/personal/netatalk/class_netatalk.inc | patch | blob | history |
diff --git a/plugins/personal/netatalk/class_netatalk.inc b/plugins/personal/netatalk/class_netatalk.inc
index 8833b0b6425295aa27e3d2b9b8a1d35de6d6f736..ec8e19c3ed2fa1d026e942fe7b59fc4f041d44b7 100644 (file)
/* Attributes to save to LDAP */
/* Slip setting those attributes, we can't define class variables with - */
-// var $attributes = array ("apple-user-homeurl", "apple-user-homeDirectory");
+ var $use_save_attributes = array ("apple-user-homeurl", "apple-user-homeDirectory");
/* Attributes to use in smarty template */
var $smarty_attributes = array ("apple_user_homepath_raw", "shares", "selectedshare");
plugin :: plugin($config, $dn);
/* Copy needed attributes */
- foreach($this->attributes as $val) {
+ foreach($this->use_save_attributes as $val) {
if (isset($this->attrs["$val"][0])) {
$name = str_replace('-', '_', $val);
$this->$name = $this->attrs["$val"][0];
plugin :: save();
/* Do attribute conversion */
- foreach ($this->attributes as $val) {
+ foreach ($this->use_save_attributes as $val) {
$name = str_replace('-', '_', $val);
if ($this->$name != "") {
$this->attrs[$val] = $this->$name;
}
unset ($this->attrs[$name]);
}
-
/* Write back to ldap */
$ldap->cd($this->dn);
$this->cleanup();