[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
(ITS#3689) 2.2.24 bind as not root user SLES9 fails
Full_Name: Charles Wright
Version: 2.2.24
OS: SLES9
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (129.66.9.129)
I just compiled 2.2.24 under SLES9, apparently slapd will only run as root. If
i use the -u and -g option I get this error. I gather that this is because a
non-root user can't bind to a privileged port. I thought that slapd would bind
to the port as root before switching to the user
(from /var/log/messages)
Apr 27 11:07:14 punt slapd[2788]: daemon: bind(6) failed errno=13 (Permission
denied)
punt:/etc # /usr/local/libexec/slapd -u ldap -d -1
@(#) $OpenLDAP: slapd 2.2.24 (Apr 26 2005 19:03:22) $
root@punt:/root/openldap-2.2.24/servers/slapd
daemon_init: <null>
daemon_init: listen on ldap:///
daemon_init: 1 listeners to open...
ldap_url_parse_ext(ldap:///)
daemon: initialized ldap:///
daemon_init: 1 listeners opened
slapd: ldap-nss.c:3442: _nss_ldap_map_get: Assertion `map != ((void *)0)'
failed.
Aborted
slapd starts as root just fine...
punt:/etc # /usr/local/libexec/slapd
punt:/etc #
punt:/etc # ps -ef | grep slapd
root 2922 1 0 11:58 ? 00:00:00 /usr/local/libexec/slapd
root 2925 16311 0 11:58 pts/0 00:00:00 grep slapd
punt:/etc #