index 416d8cd334a1ccf8bcedbea417a93da5a2dc6784..4fb1ebe6c9c57573df2366ba083c9cde0632a30c 100644 (file)
return("<font color='red'>".$str."</font>");
}else{
if(empty($this->admin)){
return("<font color='red'>".$str."</font>");
}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("<font color='blue'>".$str."</font>");
}else{
return("<font color='blue'>".$str."</font>");
}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("<font color='green'>".$str."</font>");
}
}
return("<font color='green'>".$str."</font>");
}
}
$ldap->search("(&(objectClass=person)(|(uid=".$filter.")(cn=".$filter.")))");
$tmp = array();
while($attrs = $ldap->fetch()){
$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);
natcasesort($tmp);
}
return($tmp);
if(isset($_POST['resolve_user'])){
$this->resolve_user = !$this->resolve_user;
}
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'];
}
if(isset($_POST['resolve_filter'])){
$this->resolve_filter = $_POST['resolve_filter'];
}
if(isset($_POST['use_selected_user'])){
if(isset($_POST['admin_to_use'])){
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;
}
}
$this->resolve_user = false;
}
}