[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
-u and -g not working with slapd
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I'm doing a clean Mandrake upgrade from 9.2 to 10.0 Official and in the
process of rebuilding (using ldifs from previous setup) I noticed that
the init script wasn't starting slapd.
This is what was failing within the initscript
(only executed from cmd line):
| [root@enigma root]# /usr/sbin/slapd -u ldap -g ldap -l LOCAL0 -s 0 -h
"ldap:/// ldaps:/// "
| [root@enigma root]# ps -A | grep slapd
| [root@enigma root]#
This, however, works:
| [root@enigma root]# /usr/sbin/slapd -l LOCAL0 -s 0 -h "ldap:///
ldaps:/// "
| [root@enigma root]# ps -A | grep slapd
| 4010 ? 00:00:00 slapd
| [root@enigma root]#
The group and user "ldap" are available:
| [root@enigma root]# getent passwd ldap;getent group ldap
| ldap:x:79:79:system user for openldap:/var/lib/ldap:/bin/false
| ldap:x:79:
| [root@enigma root]#
Check perms for important directories:
| [root@enigma root]# ls -l /var/lib/ | grep ldap;ls -l /etc/op
| openldap openoffice
| [root@enigma root]# ls -l /var/lib/ | grep ldap;ls -l /etc/openldap/*
| drwxr-x--- 2 ldap ldap 4096 Jun 13 01:26 ldap/
| -rw-r----- 1 root ldap 2034 Mar 25 08:39 /etc/openldap/slapd.access.conf
| -rw-r----- 1 root ldap 4417 Jun 13 01:40 /etc/openldap/slapd.conf
|
| /etc/openldap/schema:
| total 4
| -rw-r--r-- 1 root root 55 Mar 25 08:39 local.schema
Looks to me like ldap seems to have plenty of user/group based access
for just starting up.
What gives? Why is it willing to start as root.root and not ldap.ldap?
Jim C.
- --
- -----------------------------------------------------------------
| I can be reached on the following Instant Messenger services: |
|---------------------------------------------------------------|
| MSN: j_c_llings@hotmail.com AIM: WyteLi0n ICQ: 123291844 |
|---------------------------------------------------------------|
| Y!: j_c_llings Jabber: jcllings@njs.netlab.cz |
- -----------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3-nr1 (Windows XP)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFAzN1D57L0B7uXm9oRAuV4AJ9Rn4/dCM6iukd0p3HCC44EuLHrHQCfaZAj
XI95XYwyI7rnnQ6M3TwyFEA=
=wgw2
-----END PGP SIGNATURE-----