Xmpp/Jabberd2 Ldap Authentication

From Debuntu

Jump to: navigation, search

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

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox
Google AdSense