[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#3689) 2.2.24 bind as not root user SLES9 fails

The assertion below indicates a problem with _nss_ldap_map_get
defined in the file ldap-nss.c.  OpenLDAP Software neither
contains such a file or any symbol named _nss_ldap_map_get.
I assume that you using NSS/LDAP and that this assertion
is indicative of some problem with NSS/LDAP or your configuration
of NSS/LDAP.  In either case, this is not in itself indicative
of a bug in OpenLDAP Software.


At 10:00 AM 4/27/2005, charles@asc.edu wrote:
>Full_Name: Charles Wright
>Version: 2.2.24
>URL: ftp://ftp.openldap.org/incoming/
>Submission from: (NULL) (
>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
>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...
>daemon: initialized ldap:///
>daemon_init: 1 listeners opened
>slapd: ldap-nss.c:3442: _nss_ldap_map_get: Assertion `map != ((void *)0)'
>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 #