[Freeswitch-users] LDAP Integration

Eugene Prokopiev enp at itx.ru
Thu Nov 22 10:33:40 MSK 2012


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_ldapand
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20121122/6cdfddee/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list