openldap owner error

Nalin Dahyabhai nalin at redhat.com
Thu Feb 5 00:22:00 UTC 2004


On Wed, Feb 04, 2004 at 06:53:31PM -0500, David Hughes wrote:
> Has anyone had this issue with the development version of openldap-2.1.25?
> On startup or restart of ldap I'm getting this database ownership error.
> 
> Stopping slapd:                                            [  OK  ]
> /var/lib/ldap/id2entry.bdb is not owned by "ldap"          [WARNING]
> /var/lib/ldap/dn2id.bdb is not owned by "ldap"             [WARNING]
> /var/lib/ldap/objectClass.bdb is not owned by "ldap"       [WARNING]
> /var/lib/ldap/cn.bdb is not owned by "ldap"                [WARNING]
> /var/lib/ldap/uid.bdb is not owned by "ldap"               [WARNING]
> Starting slapd:                                            [  OK  ]
> 
> It's coming from this part of the init script:
> 
> function start() {
>         # Check for simple-but-common errors.
>         user=ldap
>         ldapuid=`id -u $user`
>         # Unaccessible database files.
>         for dbdir in `grep ^directory /etc/openldap/slapd.conf | sed 
> s,^directory,,` ; do
>           for file in `find ${dbdir}/ -not -uid $ldapuid -and -name 
> "*.dbb" -or -name "*.gdbm" -or -name "*.bdb"` ; do
>             echo -n $"$file is not owned by \"$user\"" ; warning ; echo
>                 done

The use of find isn't quite correct there (bug 114866), should be fixed
in 2.1.25-3. 

Cheers,

Nalin





More information about the fedora-list mailing list