[turba] Issues with LDAP and Personal Address Book.

Adam Tauno Williams adam at morrison-ind.com
Thu Jan 18 08:44:39 PST 2007


> > Here Is simply have:
> >         'root' => 'ou=' . $uid . ',ou=personal_addressbook,' . $basedn,
> Ok, I change root for:
> 'root' => $GLOBALS['prefs']->getValue('ldap_usercn') .

Do you have a prefs hook that sets the value of ldap_usercn?

> Now I get permission errorThere was an error adding the new contact.
> Contact your system administrator for further help.Failed to add an
> object: [8] "Strong(er) authentication required" 

Probably because your binddn is blank resulting in an anonymous bind
which usually, by default, can't perform writes.

> 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()

> ailed to add an object: [32] "No such object" DN:
> cn=First,uid=20070119021845.v3kpd0xsfrk at 192.168.0.33,ou=personal_addressbook,ou=OxObjects,dc=hydrix,dc=com
> how can I get $uid to simply be the login name ?

Don't forget the value of the "dn" key matters too.



More information about the turba mailing list