Hi,<br><br>I need to <span id="result_box" class="" lang="en"><span class="">authenticate</span></span> users from LDAP. Only mod_xml_ldap has example (<a href="http://git.freeswitch.org/git/freeswitch/tree/src/mod/xml_int/mod_xml_ldap">http://git.freeswitch.org/git/freeswitch/tree/src/mod/xml_int/mod_xml_ldap</a> and <a href="http://article.gmane.org/gmane.comp.telephony.freeswitch.user/6974">http://article.gmane.org/gmane.comp.telephony.freeswitch.user/6974</a>), so I tried to configure it:<br>
<br><configuration name="xml_ldap.conf"><br> <bindings><br> <binding name="directory"><br> <param name="basedn" value="dc=home"/><br> <param name="filter" value="(&(objectClass=person)(telephoneNumber=%s))" bindings="directory"/><br>
<param name="url" value="ldap://localhost"/><br> <param name="binddn" value="cn=root,dc=home"/><br> <param name="bindpass" value="rootpwd"/><br>
<trans><br> <tran name="id" mapfrom="telephoneNumber"/><br> <tran name="password" mapfrom="telephoneNumber"/><br> </trans><br> </binding><br>
</bindings><br></configuration><br><br>Next I tried to authenticate user with login 123 and password 123. Ldif looks like:<br><br>dn:cn=user0,ou=users,dc=home<br>sn:user0<br>telephoneNumber: 123<br>objectClass: person<br>
<br>Authentication <span id="result_box" class="" lang="en"><span class="">succeeded</span></span>, but authentication for user with login 123 and password 321 <span id="result_box" class="" lang="en"><span class="">succeeded</span></span> too. Authentication for user with login 321 failed. <br>
<br>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?<br><br>--<br>Regards,<br>Eugene Prokopiev<br>