Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 89696 - jabberd-1.4.3-r4 has a bug on the xdb-ldap.xml file
Summary: jabberd-1.4.3-r4 has a bug on the xdb-ldap.xml file
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal
Assignee: Krzysztof Pawlik (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-19 12:19 UTC by Ricardo Nuno
Modified: 2006-09-27 15:35 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
diff of xdb-ldap.xml (xdb-ldap.diff,421 bytes, application/octet-stream)
2005-04-20 10:43 UTC, Ricardo Nuno
Details
rootdn and suffix (xdb-ldap-with_suffix.xml.patch,371 bytes, patch)
2006-03-21 20:56 UTC, Fernando Ribeiro
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ricardo Nuno 2005-04-19 12:19:13 UTC
First I think we should have a small doc explaining how to use LDAP auth
even now I'm trying to get this to work and Google is giving me alot of broken links maybe no one uses jabberd 1.4.x series with LDAP?

I emerge jabberd and it talks about LDAP auth but it dosent copy or mention the
xdb-ldap.xml file anyway I found the file and change to match my LDAP config
but wen i tryed to run it o got this:

log.c:116 <log type='alert' from='xdb_ldap_config.c:59'>[xdb_ldap_config_init] no suffix specified</log>

so i went to Idealx CVS to confirm the file and it looked ok, but then i found this thread:
http://mail.jabber.org/pipermail/jadmin/2003-June/010653.html

same problem, and the solution is simple "replace <rootdn> tag by <suffix>"
still it's strange that on Idealx CVS this is still wrong.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Ricardo Nuno 2005-04-19 12:24:07 UTC
this is unrelated but why is the PID file is created on /var/log/jabberd ?
any particular reason?
Comment 2 Gustavo Felisberto (RETIRED) gentoo-dev 2005-04-20 08:36:38 UTC
can you post a diff of the corrected version VS the version installed?
Comment 3 Ricardo Nuno 2005-04-20 10:43:47 UTC
Created attachment 56772 [details]
diff of xdb-ldap.xml

sure here it goes
Comment 4 Fernando Ribeiro 2006-03-21 20:56:25 UTC
Created attachment 82836 [details, diff]
rootdn and suffix

rootdn <dn>
         Specify the distinguished name that is not subject  to  access  control  or  administrative  limit restrictions for operations on this database.  This DN may or may not be associated with an entry.
         An empty root DN (the default) specifies no root access is to be granted.  It is recommended  that the  rootdn  only be specified when needed (such as when initially populating a database).  If the rootdn is within a namingContext (suffix) of the database, a simple  bind  password  may  also be provided using the rootpw directive. Note that the rootdn is always needed when using syncrepl.


suffix <dn suffix>
         Specify the DN suffix of queries that will be passed to this backend  database.   Multiple  suffix lines  can  be  given and at least one is required for each database definition.  If the suffix of one database is "inside" that of another, the database with the inner suffix must  come  first  in the configuration file.
Comment 5 Fernando Ribeiro 2006-03-21 20:57:26 UTC
No is better include a suffix and to preserv the rootdn?
Comment 6 Krzysztof Pawlik (RETIRED) gentoo-dev 2006-09-27 15:35:10 UTC
As upstream of xdb_ldap vanished jabberd-1.4.4-r3 has it removed. It is currently masked for further testing. Reports about whenever it works, or no should go to bug #149358