Chapter 70. LDAP Authentication Connector
Prev |  | Next

# Chapter 70. LDAP Authentication Connector

Artur Hefczyc <artur.hefczyc@tigase.net> v2.0, June 2014: Reformatted for AsciiDoc. :toc: :numbered: :website: http://tigase.net :Date: 2012-03-30 21:56

From version 5.1.0, rev. (build) 2881 Tigase XMPP Server offers support for authenticating users against LDAP server in Bind Authentication mode.

Configuration for the LDAP support is really simple. You have to add a few lines to your init.properties file.

    # LDAP Authentication connector
    --auth-db = tigase.db.ldap.LdapAuthProvider
    # LDAP connection URI
    --auth-db-uri=ldap://ldap.tigase.com:389
    # LDAP access parameters
    basic-conf/auth-repo-params/user-dn-pattern=cn=USER_ID,ou=people,dc=tigase,dc=org

Please note the USER_ID element, this is a special element of the configuration which is used to authenticate particular user. Tigase LDAP connector replaces it with appropriate data during authentication. You can control what Tigase should put into this part. In your configuration you must replace this string with one of the following:

1. %1$s - use user name only for authentication (JabberID’s localpart)
2. %2$s - use domain name only for authentication (JabberID’s domain part)
3. %3$s - use the whole Jabber ID (JID) for authentication

Prev |  | Next
Chapter 69. Tigase Custom Auth Connector | Home | Chapter 71. Tigase Auth Connector