[horde] ldap dn in horde
Josenivaldo Benito Junior
benito at fai.com.br
Tue Dec 30 11:15:16 PST 2003
Hello,
I am new in list and new with horde 2.2. I was installing it and have
trouble with dn entry of ldap because my users are in many
organizational units.
I made a few modifications in ldap.php "to discovery" a dn of an entry.
Please, see and comment.
-- quote --
/* Pesquisa o DN */
$okra=sprintf('(uid=%s)',$this->user);
$pesq=ldap_search($conn,"o=fai,c=br",$okra);
$qq=ldap_get_entries($conn,$pesq);
//$qq=ldap_get_dn($conn,$pesq);
$this->dn = $qq[0]["dn"];
/* Define the DN of the current user */
/* $this->dn = sprintf('%s=%s,%s', $this->params['uid'],
$this->user,
$this->params['basedn']);
*/
/* And the DN of the authenticating user (may be the same as
above) */
if (!empty($this->params['rootdn'])) {
$bind_dn = $this->params['rootdn'];
} else {
/* $bind_dn = sprintf('%s=%s,%s', $this->params['uid'],
$this->params['username'],
$this->params['basedn']);*/
$bind_dn = $this->dn;
}
-- end quote --
This is only I modified.
Now, I have Prefs in LDAP without problems but I think that I have to
use $this->params['uid' to know where to search. I am correct?
Tanks
Another problem: When my users log in the language used are every
english, however I try to save my options to language portugues
Brasileiro and have sucess but the messages still in english. Anyone
knows why?
Tanks again.
Benito
Brazil
More information about the horde
mailing list