On Sun, Nov 09, 2003 at 07:15:09PM -0700, Aaron wrote:
Hmmm, I just noticed this in the debug output from slapd.sh
+ /usr/local/libexec/slapd -u ldap -g ldap + _return=1 + [ 1 -ne 0 ] + [ -z ]
I tried running slapd as above from the command line and failed.
slapd should have logged the reason why it didn't start up -- check /var/log/console.log, /var/log/all.log and /var/log/messages
If the log message doesn't clarify things, turn up the log level in /usr/local/etc/openldap/slapd.conf (see slapd.conf(5)).
Ahhh... bash-2.05b$ sockstat -4 ... ldap slapd 180 8 tcp4 *:389 *:* ...
This after following Dr. M's suggestion and looking in all.log (cough after turning it on cough cough).
Which showed this:
Nov 10 10:09:06 haiku slapd[289]: bdb_initialize: Sleepycat Software: Berkeley DB 4.1.25: (December 19, 2002)
Nov 10 10:09:06 haiku slapd[289]: could not open config file "/usr/local/etc/openldap/schema/core.schema": Permission denied (13)
Nov 10 10:09:06 haiku slapd[289]: slapd shutdown: freeing system resources.
Nov 10 10:09:06 haiku slapd[289]: slapd stopped.
Nov 10 10:09:06 haiku slapd[289]: connections_destroy: nothing to destroy.
Permission denied for core.schema?
Changed ownership and group for all schema files: # chown ldap:ldap openldap/schema/*.schema
Which didn't change things.
Changed ownership and group for the directory holding the schema files: # chown ldap:ldap openldap/schema
Which did the trick.
Nov 10 10:33:09 haiku slapd[179]: bdb_initialize: Sleepycat Software: Berkeley DB 4.1.25: (December 19, 2002)
Nov 10 10:33:09 haiku slapd[179]: line 21 (allow bind_v2)
Nov 10 10:33:09 haiku slapd[179]: line 61 (database bdb)
Nov 10 10:33:09 haiku slapd[179]: bdb_db_init: Initializing BDB database
Nov 10 10:33:09 haiku slapd[179]: line 64 (suffix "dc=krelm, dc=com")
Nov 10 10:33:09 haiku slapd[179]: line 65 (rootdn "dc=krelm, dc=com")
Nov 10 10:33:09 haiku slapd[179]: line 69 (rootpw ***)
Nov 10 10:33:09 haiku slapd[179]: line 73 (directory /var/db/openldap-data)
Nov 10 10:33:09 haiku slapd[179]: line 75 (index objectClass eq)
Nov 10 10:33:09 haiku slapd[179]: index objectClass 0x0004
Nov 10 10:33:10 haiku slapd[180]: slapd starting
Nov 10 10:33:10 haiku slapd[180]: daemon: added 8r
Nov 10 10:33:10 haiku slapd[180]: daemon: select: listen=8 active_threads=0 tvp=NULL
It's strange that the port would install rc.d/slapd.sh to call slapd with -u ldap -g ldap, yet not set the permissions on these schema files and directories accordingly.
Anyway, thanks Dr. M.
-- Aaron [EMAIL PROTECTED]
_______________________________________________ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"