[turba] Problems with Turba (2.0.3) and openldap
Michael Polenske
M.Polenske at gmx.de
Thu Oct 13 07:05:05 PDT 2005
Dear all,
I try to store all contacts in ldap database (openLdap 2.2). I´m not a
ldap crack - so please be patient if I ask to stupid questions ;-)
Question/Problem:
I setup a privat addressbook in sources.php:
--------------snipp-----------------------
$uid = Auth::getBareAuth();
$basedn = 'dc=poldynet';
$cfgSources['personal_ldap'] = array(
'title' => _("My Addressbook"),
'type' => 'ldap',
'params' => array(
'server' => 'localhost',
'tls' => false,
'root' => 'ou=' . $uid . ',ou=personal_addressbook,' . $basedn,
'bind_dn' => 'uid=' . $uid . ',ou=user,' . $basedn,
'bind_password' => Auth::getCredential('password'),
'dn' => array('cn','uid'),
--------------snipp-----------------------
If I now create a new contact (Manuela Polenske) I can see in my syslog:
--------------snipp-----------------------
Oct 13 15:58:44 marvin slapd[23580]: => acl_mask: to all values by
"uid=poldy,ou=user,dc=poldynet", (=n)
[..]
Oct 13 15:58:44 marvin slapd[23580]: => access_allowed: write access
granted by write(=wrscx)
Oct 13 15:58:44 marvin slapd[23580]: =>
dn2id(
"cn=manuela,uid=20051013155844.51r2jxrp9esk at webmailng.pinguinscholle.mine.nu,ou=group,ou=personal_addressbook,dc=poldynet"
)
[...]
Oct 13 15:58:44 marvin slapd[23580]: dn2entry_w: dn:
"uid=20051013155844.51r2jxrp9esk at webmailng.pinguinscholle.mine.nu,ou=group,ou=personal_addressbook,dc=poldynet"
Oct 13 15:58:44 marvin slapd[23580]: =>
dn2id(
"uid=20051013155844.51r2jxrp9esk at webmailng.pinguinscholle.mine.nu,ou=group,ou=personal_addressbook,dc=poldynet"
)
[...]
Oct 13 15:58:44 marvin slapd[23580]: ====> cache_return_entry_r( 137 ):
returned (0)
Oct 13 15:58:44 marvin slapd[23580]: parent does not exist
Oct 13 15:58:44 marvin slapd[23580]: send_ldap_result: conn=43 op=1 p=3
Oct 13 15:58:44 marvin slapd[23580]: send_ldap_result: err=10
matched="ou=group,ou=personal_addressbook,dc=poldynet" text="parent does
not exist"
--------------snipp-----------------------
The problem is gone when I change the parameter
--> 'dn' => array('cn','uid'),
to
--> 'dn' => array('cn'),
But in this case I cannot have two persons with the same name (because
two identical "cn"´s are not allowed - the random-uid-field makes sense
in this case).
Any idea what can be wrong in my setup ?? If you need more information -
no problem :-)
Thanks and best regards,
Michael
--
Highspeed-Freiheit. Bei GMX supergünstig, z.B. GMX DSL_Cityflat,
DSL-Flatrate für nur 4,99 Euro/Monat* http://www.gmx.net/de/go/dsl
More information about the turba
mailing list