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_ldap and 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