On 2012-04-10 1:12, Achim wrote:
Hello list:
Below a summarised and expanded view on the remaining 7 LDAP issues.
Please discard the earlier messages in the other thread, this is the
current status:
(...snip...)
3) Probably closely related to point 2): changing the content of the
field 'name' => 'cn' fails, i.e. the newly entered information is not
stored.
Warning: ldap_mod_replace(): Modify: Naming violation in
roundcubemail-0.7.2/program/include/rcube_ldap.php on line 1105
(...snip...)
[10-Apr-2012 01:51:21 +0200]: C: Replace [dn: cn=John Doe
CN,ou=public,ou=rcabook,dc=domain,dc=tld]: Array
(
[cn] => John Doe CNUPDATED
[sn] => Doe
[givenname] => John
)
What's happening here is that the value for the attribute that is also
used as the RDN is being replaced the value for.
Roundcube should instead use ldap_mod_rename(), as is illustrated in
the following code;
[1] Modify Entry function:
http://git.kolab.org/kolab-wap/tree/lib/Auth/LDAP.php#n991
[2] Detect the RDN attribute used on the old version of the entry:
http://git.kolab.org/kolab-wap/tree/lib/Auth/LDAP.php#n997
[3] Specifically catch the RDN attribute used in the old version of the
entry:
http://git.kolab.org/kolab-wap/tree/lib/Auth/LDAP.php#n1035
[4] Ultimately use the array built to fire it at LDAP:
http://git.kolab.org/kolab-wap/tree/lib/Auth/LDAP.php#n1116
Kind regards,
Jeroen van Meeuwen
--
Systems Architect, Kolab Systems AG
e: vanmeeuwen at kolabsys.com
m: +44 74 2516 3817
w: http://www.kolabsys.com
pgp: 9342 BF08
_______________________________________________
Roundcube Users mailing list
[email protected]
http://lists.roundcube.net/mailman/listinfo/users