Xmpp/Jabberd2 Ldap Authentication
From Debuntu
< Xmpp
Setting up Jabberd2 to use LDAP for authentication
In /etc/jabberd2/c2s.xml, within the authreq tag:
<module>ldap</module>
<ldap>
<host>hostnameofldapserver</host>
<port>389</port>
<v3/>
<!-- Encryption. If enabled, this will create an encrypted channel
to the LDAP server using the LDAP STARTTLS mechanism. -->
<starttls/>
-->
<uidattr>uid</uidattr>
<basedn realm='company'>mycompany</basedn>
<basedn>dc=yourdomain,dc=tld</basedn>
</ldap>
If users do not register (being already in your ldap database) you need to enable auto-creation in sm.xml.
In the User options part ('round the bottom), make sure this is uncommented.
<auto-create/>
References
- http://www.onlamp.com/pub/a/onlamp/2005/10/06/jabberd.html
- http://wiki.zimbra.com/index.php?title=LDAP_Jabber
- http://jabberd2.xiaoka.com/