LDAP authenitication using user's password and uid.

Hi,
I need help regarding LDAP authentication in ejabberd i.e I have LDAP server with following
Authentication Methods http://www.openldap.org/doc/admin24/security.html :

  • unauthenticated ( not anonymous)
  • user/password authenticated where user name and password are same as that of uid and corresponding password.

So, I want to know how can configure jabberd.yml. So, that cn in ldap_rootdn and ldap_password are replaced by one entered by user. i.e. uid and corresponding password.

OR

How can I configure ejabberd.yml for unauthenticated method where we only need to provide user name.

and following is coniguration file
##LDAP manager:
##  ldap_rootdn: "cn=admin,dc=example,dc=com"i
ldap_rootdn: "cn=uid,dc=example,dc=com"
##ldap_password: "hello"
##
## Password of LDAP manager:

##ldap_password: "******"
##
## Search base of LDAP directory:
ldap_base: "ou=people,dc=example,dc=com"
##
## LDAP attribute that holds user ID:
ldap_uids:
  - "uid"

Syndicate content