[Freeswitch-users] LDAP Integration
John Skopis (Lists)
jlists at skopis.com
Tue Dec 16 17:50:09 PST 2008
vinicius wrote:
> hi ppl.. i tried to find something at google, but i couldnt manage to find
> anything.
> i still dont know what to do to make the mod_xml_ldap work.
> i couldnt find information about how to build a config file for the
> module, and where to store it...
>
> can anyone give me a help?
>
Be advised mod_xml_ldap is probably not production quality and will
undoubtedly change, eventually at least.
Here is what I used once:
<bindings>
<binding name="directory">
<!--%s is populated with the extension -->
<param name="filter" value="(FSid=%s)" bindings="directory"/>
<!--basedn for the searches %s is replaced with domain-->
<param name="basedn" value="ou=people,dc=example" />
<param name="url" value="ldap://172.16.75.129" />
<param name="binddn" value="cn=admin,dc=example" />
<param name="bindpass" value="secret" />
<trans>
<!-- we need to translate these attrs into FS attrs -->
<tran name="id" mapfrom="FSid" />
<tran name="mailbox" mapfrom="FSmailbox" />
<tran name="password" mapfrom="FSPassword" />
<tran name="vm-password" mapfrom="FSvm-password" />
<tran name="email-addr" mapfrom="FSemail-addr" />
<tran name="vm-email-all-messages" mapfrom="FSvm-email-all-messages" />
<tran name="vm-delete-file" mapfrom="FSvm-delete-file" />
<tran name="vm-attach-file" mapfrom="FSvm-attach-file" />
</trans>
</binding>
<binding name="configuration">
<param name="filter" value="(%s=%s)" bindings="configuration"/>
<param name="basedn" value="name=%s,dc=example" />
<param name="url" value="ldap://172.16.75.129" />
<param name="binddn" value="cn=admin,dc=example" />
<param name="bindpass" value="secret" />
</binding>
</bindings>
which should/probably/might work with ldap objects like these:
dn: cn=John Skopis,ou=people,dc=example
objectClass: person
objectClass: inetOrgPerson
objectClass: organizationalPerson
objectClass: FreeSWITCH-Exten-Object
objectClass: top
cn: John Skopis
sn: Skopis
givenName: John
FSid: 1001
FSmailbox: 1001
FSpassword: 1234
FSvm-password: 1001
FSemail-addr: john+fs at skopis.com
FSvm-email-all-messages: TRUE
FSvm-delete-file: TRUE
FSvm-attach-file: TRUE
dn: SIPIdentityUserName=1001,ou=h350,dc=example
objectClass: person
objectClass: SIPIdentity
objectClass: top
cn: 1001
sn: 1001
SIPIdentitySIPURI: sip:1001 at 172.16.75.129
SIPIdentityRegistrarAddress: 172.16.75.128
SIPIdentityProxyAddress: 172.16.75.128
SIPIdentityPassword: 1234
SIPIdentityUserName: 1001
SIPIdentityServiceLevel: premium
More information about the FreeSWITCH-users
mailing list