Hi, I need to authenticate users from LDAP. Only mod_xml_ldap has example ( http://git.freeswitch.org/git/freeswitch/tree/src/mod/xml_int/mod_xml_ldapan... http://article.gmane.org/gmane.comp.telephony.freeswitch.user/6974), so I tried to configure it: <configuration name="xml_ldap.conf"> <bindings> <binding name="directory"> <param name="basedn" value="dc=home"/> <param name="filter" value="(&(objectClass=person)(telephoneNumber=%s))" bindings="directory"/> <param name="url" value="ldap://localhost"/> <param name="binddn" value="cn=root,dc=home"/> <param name="bindpass" value="rootpwd"/> <trans> <tran name="id" mapfrom="telephoneNumber"/> <tran name="password" mapfrom="telephoneNumber"/> </trans> </binding> </bindings> </configuration> Next I tried to authenticate user with login 123 and password 123. Ldif looks like: dn:cn=user0,ou=users,dc=home sn:user0 telephoneNumber: 123 objectClass: person Authentication succeeded, but authentication for user with login 123 and password 321 succeeded too. Authentication for user with login 321 failed. So, my filter configuration works fine, but I can't use password in it. I need to use <trans>. What is wrong in my configuration? -- Regards, Eugene Prokopiev
I tried to read mod_xml_ldap.c (function xml_ldap_directory_result), but I can't see something like "trans". So, how can I define attributes in ldif and how result xml must be looks like? -- Regards, Eugene Prokopiev
Current mod_xml_ldap.c looks like broken, but I see mod_xml_ldapv2.c in the same folder, which is more suitable for me with some fixes - see http://jira.freeswitch.org/browse/FS-4870 -- Regards, Eugene Prokopiev
participants (1)
-
Eugene Prokopiev