[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Strange olcDbDirectory permission error



 On 07/ 7/11 03:26 PM, Quanah Gibson-Mount wrote:
--On Thursday, July 07, 2011 2:52 PM +1200 Ian Collins<ian@ianshome.com>
wrote:

   Hello,

I'm in the process of copying a server configuration to an Ubuntu server
and I'm getting a very strange error on start up:

Jul  7 14:46:03 Ubuntu64 slapd[5079]: config error processing
olcDatabase={1}hdb,cn=config: olcDbDirectory: value #0: invalid path:
Permission denied

strace shows:

[pid  5079] open("/opt/local/var/run/openldap//DUMMY",
Where is the DUMMY coming from?

I assumed it was from the internals somewhere, it isn't part of my config.

The previous strace output is:

[pid 5079] open("/etc/ldap/slapd.d/cn=config/olcDatabase={1}hdb.ldif", O_RDONLY) = 11
[pid  5079] fstat(11, {st_mode=S_IFREG|0600, st_size=854, ...}) = 0
[pid  5079] read(11, "dn: olcDatabase={1}hdb\nobjectCla"..., 855) = 854
[pid  5079] read(11, "", 1)             = 0
[pid  5079] close(11)                   = 0
[pid 5079] open("/opt/local/var/run/openldap//DUMMY", O_WRONLY|O_CREAT|O_TRUNC, 0666) = -1 EACCES (Permission denied)

The cn=config/olcDatabase={1}hdb.ldif file is

dn: olcDatabase={1}hdb
objectClass: olcDatabaseConfig
objectClass: olcHdbConfig
olcDatabase: {1}hdb
olcAddContentAcl: FALSE
olcLastMod: TRUE
olcMaxDerefDepth: 15
olcReadOnly: FALSE
olcRootPW:: c2VjcmV0
olcSyncUseSubentry: FALSE
olcMonitoring: TRUE
olcDbDirectory: /opt/local/var/run/openldap/
olcDbCacheSize: 1000
olcDbNoSync: FALSE
olcDbDirtyRead: FALSE
olcDbIDLcacheSize: 0
olcDbLinearIndex: FALSE
olcDbMode: 0600
olcDbSearchStack: 16
olcDbShmKey: 0
olcDbCacheFree: 1
olcDbDNcacheSize: 0
structuralObjectClass: olcHdbConfig
entryUUID: 1f545ba2-1d24-102f-8fd5-239d92cdfc92
creatorsName: cn=config
createTimestamp: 20100706082756Z
olcDbIndex: objectClass eq
olcDbIndex: uid eq
olcSuffix: dc=taitradio
olcRootDN: cn=Manager,dc=taitradio
entryCSN: 20100913022219.653160Z#000000#000#000000
modifiersName: cn=admin,cn=config
modifyTimestamp: 20100913022219Z


--
Ian.