[Bug 660492] New: error when adding a new ldap-database and restarting the ldap-server
https://bugzilla.novell.com/show_bug.cgi?id=660492 https://bugzilla.novell.com/show_bug.cgi?id=660492#c0 Summary: error when adding a new ldap-database and restarting the ldap-server Classification: openSUSE Product: openSUSE 11.3 Version: Final Platform: x86-64 OS/Version: openSUSE 11.3 Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: griesacc1@gmx.net QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.53 Safari/534.3 After adding a new ldap-database definition to: /etc/openldap/slapd/cn=config/ and restarting the server via. #>/etc/init.d/ldap restart I received the following error: find: paths must precede expression: olcDatabase={0}config.ldif Usage: find [-H] [-L] [-P] [-Olevel] [-D help|tree|search|stat|rates|opt|exec] [path...] [expression] Reproducible: Always Steps to Reproduce: 1. create a new database folder like: /var/lib/ldap 2. create a new database definition in ldif 3. restart the ldap server Actual Results: ldap server doesnt start throwing an error message Expected Results: ldap server start having a new database. The bug is located in /etc/init.d/ldap on line 112: ldapdir=$(grep -i olcdbdirectory `find $1 -name olcDatabase*` | awk '{print $2}') it can be fixed using quotationmarks: ldapdir=$(grep -i olcdbdirectory `find $1 -name "olcDatabase*"` | awk '{print $2}') -- 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=660492 https://bugzilla.novell.com/show_bug.cgi?id=660492#c dave gellar <griesacc1@gmx.net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |griesacc1@gmx.net Severity|Normal |Major -- 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=660492 https://bugzilla.novell.com/show_bug.cgi?id=660492#c wei wang <wewang@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |wewang@novell.com AssignedTo|bnc-team-screening@forge.pr |rhafer@novell.com |ovo.novell.com | -- 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=660492 https://bugzilla.novell.com/show_bug.cgi?id=660492#c1 Ralf Haferkamp <rhafer@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P4 - Low Status|NEW |ASSIGNED Target Milestone|--- |Factory --- Comment #1 from Ralf Haferkamp <rhafer@novell.com> 2011-01-04 13:47:32 CET --- (In reply to comment #0) [..]
Steps to Reproduce: 1. create a new database folder like: /var/lib/ldap 2. create a new database definition in ldif 3. restart the ldap server Mucking manually with the ldif files in /etc/openldap/slapd.d/ is a very bad idea most of the times. Either modify your slapd configuration via LDAP (the cn=config database) or use the old-style slapd.conf configuration (OPENLDAP_CONFIG_BACKEND="files" in /etc/sysconfig/openldap).
That being said this bug report is still valid. I'll fix the init-script for openSUSE 11.4. AFAICS the bug is only triggered when calling rcldap restart from within the /etc/openldap/slapd.d directory. [..] -- 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=660492 https://bugzilla.novell.com/show_bug.cgi?id=660492#c2 Ralf Haferkamp <rhafer@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #2 from Ralf Haferkamp <rhafer@novell.com> 2011-01-05 16:59:28 CET --- Fix submitted to factory. -- 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.
participants (1)
-
bugzilla_noreply@novell.com