[Bug 428168] New: When using the dynamic configuration backend, rcldap shows a grep error
https://bugzilla.novell.com/show_bug.cgi?id=428168 Summary: When using the dynamic configuration backend, rcldap shows a grep error Product: openSUSE 11.0 Version: Final Platform: Other OS/Version: Linux Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: richard.bos@xs4all.nl QAContact: qa@suse.de Found By: --- When using the configuration backend based on back-ldif the old file based configuration is not needed anymore. To be sure that the new Real Time Configuration (introduced in openldap-2.4 cn=config) is used, the /etc/openldap/slapd.conf was removed. After that slapd was started. (see step 4 at http://www.zytrax.com/books/ldap/ch6/slapd-config.html#convert) rcldap shows the following output: /etc/openldap # rcldap start grep: /etc/openldap/slapd.conf: No such file or directory This error is from line 151 in rcldap: 150 if [ -n "$OPENLDAP_USER" -o -n "$OPENLDAP_GROUP" ]; then 151 chown_database_dirs "/etc/openldap/slapd.conf" 152 chgrp $OPENLDAP_GROUP /etc/openldap/slapd.conf Line 150 should probably check for an existing /etc/openldap/slapd.conf as well. There is probably more needed to be done than only adding the check for an existing slapd.conf file. It is probably needed to query ldap for the directory (which is done in chown_database_dirs), but than ldap must be running, at this point in the code ldap is not yet running.... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=428168
Andreas Jaeger
https://bugzilla.novell.com/show_bug.cgi?id=428168
User rhafer@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=428168#c1
Ralf Haferkamp
This error is from line 151 in rcldap: 150 if [ -n "$OPENLDAP_USER" -o -n "$OPENLDAP_GROUP" ]; then 151 chown_database_dirs "/etc/openldap/slapd.conf" 152 chgrp $OPENLDAP_GROUP /etc/openldap/slapd.conf Are you sure, that you have the latest openldap2 Package from 11.0 installed? The line 150-152 in the 11.0 look quite a bit different from what you pasted here.
You should be able to workaround your problem by setting "OPENLDAP_CONFIG_BACKEND" to "ldap" in /etc/sysconfig/openldap, after you installed the latest openldap2 Packages for 11.0. I'll add an addtional check for slapd.conf to 11.1 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=428168
Ralf Haferkamp
https://bugzilla.novell.com/show_bug.cgi?id=428168
User richard.bos@xs4all.nl added comment
https://bugzilla.novell.com/show_bug.cgi?id=428168#c2
--- Comment #2 from Richard Bos
Are you sure, that you have the latest openldap2 Package from 11.0 installed?
I'm rather sure, that I don't have that as I'm testing this on a 10.3 installation... I assumed that the packages on the buildserver for 10.3 - Factory are all the same. It will take some time before I'll have a 11.[01] with a new openldap2, you can just close the bugreport, if you think that the problem has been dealt with. Especially now that you'll add an additional check for 11.1 Thanks for pointing the possibility to use the OPENLDAP_CONFIG_BACKEND variable. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=428168
User rhafer@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=428168#c3
Ralf Haferkamp
participants (1)
-
bugzilla_noreply@novell.com