[turba] Issues with LDAP and Personal Address Book.
Jean-Yves Avenard
jyavenard at gmail.com
Thu Jan 18 09:07:47 PST 2007
Hi
On 1/19/07, Adam Tauno Williams <adam at morrison-ind.com> wrote:
>
> Do you have a prefs hook that sets the value of ldap_usercn?
No. I don't even know how to set this up :)
>
> Probably because your binddn is blank resulting in an anonymous bind
> which usually, by default, can't perform writes.
Well, in that case, that would mean that
$GLOBALS['prefs']->getValue('ldap_userdn') returns an empty string.
As if I change binddn to:
'bind_dn' => 'uid=' . $uid . ',ou=Users,' . $basedn
then I have no authentication issue
>
> > DN:
> > cn=First,uid=20070119021741.2wj3i4r0vz6s at 192.168.0.33,ou=personal_addressbook,ou=OxObjects,dc=hydrix,dc=com
> > which is not surprising as this location doesn't exist and I do not
> > have the ACL for this.
> > I change the binddn for the root user, and just as before:
>
> If you want just the name the user logged in as use Auth::getAuth()
I change root to:
'root' => 'ou=' . Auth::getAuth() .
',ou=personal_addressbook,' . $basedn
And I get the same unique id :
"No such object" DN:
cn=First,uid=20070119025315.54emot8lcu0w at 192.168.0.33,ou=avenardj,ou=personal_addressbook,ou=OxObjects,dc=hydrix,dc=com
> Don't forget the value of the "dn" key matters too.
But where does the unique uid come from ?? I certainly didn't set this
up ! Is it supposed to be there?
Jean-Yves
More information about the turba
mailing list