[ejabberd] Difficulties configuring ejabberd

tty at Safe-mail.net tty at Safe-mail.net
Wed Apr 18 00:55:56 MSD 2007

The schema used would be listed in the slapd.conf file. Mine shows the following include files 

the two important attributes are 'uid' and 'userPassword'.

Based on this the ejabberd config file should have

 {ldap_uidattr, "uid"}.

Remove the entry to ldap_uidattr_format.

Since you setup the LDAP, which data did you use to populate it ? 

What I meant about matching uid entries is: the populated LDAP would have an 'uid' attribute. The content of this attribute should match the Screen Name login option in Gaim. 



-------- Original Message --------
From: Mário Gamito<mgamito at telbit.pt>
To: tty at Safe-mail.net
Cc: ejabberd at jabber.ru
Subject: Re: [ejabberd] Difficulties configuring ejabberd
Date: Tue, 17 Apr 2007 17:17:38 +0100

> Dear tty,
> tty at Safe-mail.net wrote:
> > The usual issues regarding connecting are: wrong LDAP server, incorrect LDAP admin password or incorrect rootdn, firewall.
> All is well, i think, but here my data:
> slapd.conf:
> suffix          "dc=telbit,dc=pt"
> rootdn          "cn=admin,dc=telbit,dc=pt"
> rootpw		secret
> I have in ejabberd config file:
> {auth_method, ldap}.
> {ldap_servers, ["mail.telbit.pt"]}.    % List of LDAP servers
> {ldap_uidattr, "mgamito"}.            % LDAP attribute that holds user ID
> {ldap_base, "ou=users,dc=telbit,dc=pt"}. % Search base of LDAP directory
> {ldap_rootdn, "cn=admin,dc=telbit,dc=pt"}. % LDAP manager
> {ldap_password, "n3xus6"}. % Password to LDAP manager
> {ldap_filter, "(objectClass=inetOrgPerson)"}.
> {ldap_uidattr_format, "%u at mail.telbit.pt" }.
> > With OpenLDAP you can find the schema files under /etc/openldap/schema
> Yes, but which of it ?
> core.schema ?
> > However you would likely have to ask the LDAP administrator which schema is used.
> I am the LDAP administrator.
> > The schema for most LDAP installation are quite standard.
> There are many...
> > The ldap_uidattr should default to "uid" unless your schema states otherwise.
> > The 'uid' much match the login name in gaim. E.g if your screen name is 'mgamito' then the 'uid' field in LDAP should be 'mgamito'.
> You mean I have to have one uid line per person ?
> What is the password field in the schema that ejabberd uses ?
> Warm Regards,
> -- 
> :wq! Mário Gamito

More information about the ejabberd mailing list