[Bug 450645] Re: error during slapd configuration: chown: cannot access `olcDbDirectory\nolcDbDirectory'

2014-08-29 Thread Ryan Tandy
In quantal and later, the grep invocation was adjusted to only check *.ldif: http://anonscm.debian.org/cgit/pkg- openldap/openldap.git/commit/debian/slapd.scripts- common?id=c8d1f619c8e151704508b671a7c801d9863e183e Therefore, setting to Fix Released. There may be other causes that result in a

[Bug 450645] Re: error during slapd configuration: chown: cannot access `olcDbDirectory\nolcDbDirectory'

2010-09-07 Thread Nathan Stratton Treadway
** Changed in: openldap (Ubuntu) Status: Incomplete = Confirmed -- error during slapd configuration: chown: cannot access `olcDbDirectory\nolcDbDirectory' https://bugs.launchpad.net/bugs/450645 You received this bug notification because you are a member of Ubuntu Server Team, which is

[Bug 450645] Re: error during slapd configuration: chown: cannot access `olcDbDirectory\nolcDbDirectory'

2010-09-07 Thread Nathan Stratton Treadway
I didn't explain clearly in my earlier comments that it's only the olcDbDirectory grep that actually causes the chown error here. I added the .ldif extension to the grep in the get_suffix function only to keep the two consistent (figuring that if it's true we only care about files that end in

[Bug 450645] Re: error during slapd configuration: chown: cannot access `olcDbDirectory\nolcDbDirectory'

2010-09-01 Thread Nathan Stratton Treadway
** Patch added: restrict grep searches to files with names ending in .ldif https://bugs.launchpad.net/ubuntu/+source/openldap/+bug/450645/+attachment/1535371/+files/slapd_2.4.21-0ubuntu5.3_postinst.patch -- error during slapd configuration: chown: cannot access

[Bug 450645] Re: error during slapd configuration: chown: cannot access `olcDbDirectory\nolcDbDirectory'

2010-09-01 Thread Nathan Stratton Treadway
Ross, In your case, I believe the error is triggered because you have two different olcDatabase files that include the same oldSuffix line: /etc/ldap/slapd.d/cn=config/olcDatabase={1}hdb.ldif:olcSuffix: dc=cpd,dc=co,dc=uk /etc/ldap/slapd.d/cn=config/olcDatabase={3}ldap.ldif:olcSuffix:

[Bug 450645] Re: error during slapd configuration: chown: cannot access `olcDbDirectory\nolcDbDirectory'

2010-09-01 Thread Ross Golder
Thanks, Nathan. FWIW, working from your patch, I added /dev/null as an argument to the grep, and had the 'cut' take the third field (as the first is now the filename), threw in a 'head -1' (hackishly, as I know that's the only one I need to update) and have now successfully completed the

[Bug 450645] Re: error during slapd configuration: chown: cannot access `olcDbDirectory\nolcDbDirectory'

2010-06-24 Thread Ross Golder
I have the same problem on one of our servers. I don't have backup files in the config area: r...@leopard:/etc/ldap/slapd.d# grep olcDbDirectory: /etc/ldap/slapd.d/cn\=config/olcDatabase* /etc/ldap/slapd.d/cn=config/olcDatabase={1}hdb.ldif:olcDbDirectory: /var/lib/ldap

[Bug 450645] Re: error during slapd configuration: chown: cannot access `olcDbDirectory\nolcDbDirectory'

2010-05-03 Thread Diogo Resende
I have the same problem: r...@nasgul:/etc/ldap/slapd.d# ls -l /etc/ldap/slapd.d/cn\=config/olcDatabase* -rw-r- 1 openldap openldap 1738 2010-05-03 18:44 /etc/ldap/slapd.d/cn=config/olcDatabase={0}config.ldif -rw-r- 1 openldap openldap 1719 2010-05-03 18:44

[Bug 450645] Re: error during slapd configuration: chown: cannot access `olcDbDirectory\nolcDbDirectory'

2010-05-03 Thread Nathan Stratton Treadway
Mathias (or other OpenLDAP developers): Any reason the grep commands in the get_suffix and get_directory fuctions shouldn't use olcDatabase*.ldif for the list of files to search (instead of olcDatabase*, as they currently do)? -- error during slapd configuration: chown: cannot access

[Bug 450645] Re: error during slapd configuration: chown: cannot access `olcDbDirectory\nolcDbDirectory'

2010-04-06 Thread Nathan Stratton Treadway
** Summary changed: - Problem install slapd + error during slapd configuration: chown: cannot access `olcDbDirectory\nolcDbDirectory' -- error during slapd configuration: chown: cannot access `olcDbDirectory\nolcDbDirectory' https://bugs.launchpad.net/bugs/450645 You received this bug

[Bug 450645] Re: error during slapd configuration: chown: cannot access `olcDbDirectory\nolcDbDirectory'

2010-04-06 Thread Nathan Stratton Treadway
Md. Afzalur Rashid, If you are still having this problem, please post the output of the following commands: $ sudo sh -c ls -l /etc/ldap/slapd.d/cn=config/olcDatabase* $ sudo sh -c grep olcSuffix: /etc/ldap/slapd.d/cn=config/olcDatabase* and $ sudo sh -c grep olcDbDirectory: