From: Rémi K. <rem...@gm...> - 2014-07-07 21:27:58
|
Hi > [...] I saw that there was a post related to this here: http://exist.2174344.n4.nabble.com/Help-to-configure-LDAP-td4663342.html#a4663348 > > However, it did not offer any working solution and did not appear to have been resolved. I got a working solution, attached is a module and a test. Debugging step by step in Eclipse, I realized the xml config file was not parsed correctly. I almost crafted a pull request in Java, but realized I cannot test against ActiveDirectory. My concern was OpenLdap not ActiveDirectory, and I reverted to a more basic solution. Inspired from https://github.com/eXist-db/exist/blob/develop/extensions/modules/src/org/exist/xquery/modules/jndi/jndiExample.xql I just need to activate jndi in : - exist-2.1/conf.xml - extensions/build.properties - installer/conf.xml To test I installed openldap-2.4.39 with a basic ldap config cn=me,ou=people,dc=localhost With a parameter.xml file to easily switch to another ldap server. I let the util:log-system-out in the attached files, may be useful to see how it works, but to keep things readable hard-coded the ldap values here, instead of joining parameter file. HTH Remi |