X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=setup%2Fclass_setupStep_Ldap.inc;h=4fb1ebe6c9c57573df2366ba083c9cde0632a30c;hb=1136e57c6caea14fc33e35256bbb523e28fb38a5;hp=416d8cd334a1ccf8bcedbea417a93da5a2dc6784;hpb=a17ebfb5a251baf040469e64a593b9a68e92ba02;p=gosa.git
diff --git a/setup/class_setupStep_Ldap.inc b/setup/class_setupStep_Ldap.inc
index 416d8cd33..4fb1ebe6c 100644
--- a/setup/class_setupStep_Ldap.inc
+++ b/setup/class_setupStep_Ldap.inc
@@ -100,10 +100,10 @@ class Step_Ldap extends setup_step
return("".$str."");
}else{
if(empty($this->admin)){
- $str = sprintf(_("Anonymous bind successful on server '%s'. Please specify user and password."),$this->connection);
+ $str = sprintf(_("Anonymous bind on server '%s' succeeded. Please specify user and password."),$this->connection);
return("".$str."");
}else{
- $str = sprintf(_("Bind as user '%s' successful on server '%s'."),$this->admin,$this->connection);
+ $str = sprintf(_("Bind as user '%s' on server '%s' succeeded."),$this->admin,$this->connection);
return("".$str."");
}
}
@@ -118,7 +118,7 @@ class Step_Ldap extends setup_step
$ldap->search("(&(objectClass=person)(|(uid=".$filter.")(cn=".$filter.")))");
$tmp = array();
while($attrs = $ldap->fetch()){
- $tmp[$attrs['dn']]= @LDAP::fix($attrs['dn']);
+ $tmp[base64_encode($attrs['dn'])]= @LDAP::fix($attrs['dn']);
natcasesort($tmp);
}
return($tmp);
@@ -139,7 +139,10 @@ class Step_Ldap extends setup_step
if(isset($_POST['resolve_user'])){
$this->resolve_user = !$this->resolve_user;
}
-
+
+ /* Hide backward forward button*/
+ $this->dialog = $this->resolve_user;
+
if(isset($_POST['resolve_filter'])){
$this->resolve_filter = $_POST['resolve_filter'];
}
@@ -147,7 +150,7 @@ class Step_Ldap extends setup_step
if(isset($_POST['use_selected_user'])){
if(isset($_POST['admin_to_use'])){
- $this->admin = $_POST['admin_to_use'];
+ $this->admin = base64_decode($_POST['admin_to_use']);
$this->resolve_user = false;
}
}