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", O_WRONLY|O_CREAT|O_TRUNC, 0666) = -1 EACCES (Permission denied)
Even with the directory writeable to all:
drwxrwxrwx 2 openldap openldap 4096 2011-07-07 14:29 /opt/local/var/run/openldap/
Any ideas?
--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?
--Quanah
--
Quanah Gibson-Mount Sr. Member of Technical Staff Zimbra, Inc A Division of VMware, Inc. -------------------- Zimbra :: the leader in open source messaging and collaboration
On 07/ 7/11 03:26 PM, Quanah Gibson-Mount wrote:
--On Thursday, July 07, 2011 2:52 PM +1200 Ian Collinsian@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
--On Thursday, July 07, 2011 3:34 PM +1200 Ian Collins ian@ianshome.com wrote:
On 07/ 7/11 03:26 PM, Quanah Gibson-Mount wrote:
--On Thursday, July 07, 2011 2:52 PM +1200 Ian Collinsian@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:
Have you verified that you can get to /opt/local/var/run/openldap and create a file as the user you are running slapd as? Just because /opt/local/var/run/openldap has the right permissions does not mean the higher level directories do. Also things like AppArmor often block slapd if installed.
--Quanah
--
Quanah Gibson-Mount Sr. Member of Technical Staff Zimbra, Inc A Division of VMware, Inc. -------------------- Zimbra :: the leader in open source messaging and collaboration
On 07/ 7/11 04:11 PM, Quanah Gibson-Mount wrote:
--On Thursday, July 07, 2011 3:34 PM +1200 Ian Collinsian@ianshome.com wrote:
On 07/ 7/11 03:26 PM, Quanah Gibson-Mount wrote:
--On Thursday, July 07, 2011 2:52 PM +1200 Ian Collinsian@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:
Have you verified that you can get to /opt/local/var/run/openldap and create a file as the user you are running slapd as? Just because /opt/local/var/run/openldap has the right permissions does not mean the higher level directories do. Also things like AppArmor often block slapd if installed.
AppArmor was a new one on me, but it was the problem! I had to add an entry
/opt/local/var/run/openldap/** rwmk,
in /etc/apparmor.d/local/usr.sbin.slapd
Thanks,
openldap-technical@openldap.org