summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c3f0c0a)
raw | patch | inline | side by side (parent: c3f0c0a)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 10 May 2007 10:30:24 +0000 (10:30 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 10 May 2007 10:30:24 +0000 (10:30 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6343 594d385d-05f5-0310-b6e9-bd551577e9d8
setup/class_setupStep_Ldap.inc | patch | blob | history |
index 91752060436ee16e59e04680242058cd44e5d213..b6e1126eb11db4b11397add3e97a808776444576 100644 (file)
function save_object()
{
+ $reset = FALSE;
foreach($this->attributes as $attr){
if(isset($_POST[$attr])){
-
if(in_array($attr,array("base","connection")) && $this->$attr != get_post($attr)){
- $this->parent->disable_steps_from($this->parent->step_name_to_id(get_class($this)) + 1);
+ $reset = TRUE;
}
$this->$attr = get_post($attr);
}
}
+ if($reset){
+ $this->parent->disable_steps_from(($this->parent->step_name_to_id(get_class($this))) +1);
+ $attr = @LDAP::get_naming_contexts($this->connection);
+ if(!in_array(get_post("base"),$attr)){
+ if(isset($attr[0])){
+ $this->base = $attr[0];
+ }
+ }
+ }
+
+
if(isset($_POST['resolve_user_x'])){
$this->resolve_user = !$this->resolve_user;
}