Hi, I implemented an ldap search so that I could do a proper bind for an individual address book. The login name is used to search for the DN to bind with. The attached patch requires additional settings for the address book: + 'search_base_dn' => 'ou=users,dc=foo,dc=bar', + 'search_filter' => '(&(objectClass=posixAccount)(uid=%u))', and introduces another expansion, %dn, e.g.: + 'base_dn' => 'ou=%dn,ou=addressbook,dc=foo,dc=bar', %dn will be replaced by the DN that the above ldap search yielded.
I hope that this patch could be included in the code base. Let me know if there is anything I need to fix. Thanks for roundcube! ~David --- 8< --- detachments --- 8< --- The following attachments have been detached and are available for viewing. http://detached.gigo.com/rc/Eh/ygMuYsrH/0001-Use-search_base.patch Only click these links if you trust the sender, as well as this message. --- 8< --- detachments --- 8< ---
_______________________________________________ List info: http://lists.roundcube.net/dev/ BT/8f4f07cd
