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

problem on starting the slapd daemon



hi folks,

i tried to start the slapd daemon with: /usr/local/libexec/slapd -d -1

and got this error:
@(#) $OpenLDAP: slapd 2.2.26 (Jul  8 2005 14:47:30) $
        jrojas@jrojas:/tmp/openldap-2.2.26/servers/slapd
daemon_init: <null>
daemon_init: listen on ldap:///
daemon_init: 1 listeners to open...
ldap_url_parse_ext(ldap:///)
daemon: bind(6) failed errno=98 (Address already in use)
daemon: bind(6) failed errno=98 (Address already in use)
slap_open_listener: failed on ldap:///
slapd stopped.
connections_destroy: nothing to destroy.

so, i did a netstat -pan|grep 389 to see if the daemon was on and got this:
tcp        0      0 0.0.0.0:389             0.0.0.0:*              
LISTEN      4598/slapd
tcp        0      0 :::389                  :::*                   
LISTEN      4598/slapd

so i killed the process with a kill -9 4598 and tried to restart the
slapd with /usr/local/libexec/slapd,  but then i got this error:
/usr/local/etc/openldap/slapd.conf: line 77: bad DN
".*,dc=example,dc=com" in to DN clause
<access clause> ::= access to <what> [ by <who> <access> [ <control> ] ]+
<what> ::= * | [dn[.<dnstyle>]=<DN>] [filter=<filter>] [attrs=<attrlist>]
<attrlist> ::= <attr> [val[.<style>]=<value>] | <attr> , <attrlist>
<attr> ::= <attrname> | entry | children
<who> ::= [ * | anonymous | users | self | dn[.<dnstyle>]=<DN> ]
        [dnattr=<attrname>]
        [group[/<objectclass>[/<attrname>]][.<style>]=<group>]
        [peername[.<peernamestyle>]=<peer>] [sockname[.<style>]=<name>]
        [domain[.<domainstyle>]=<domain>] [sockurl[.<style>]=<url>]
        [ssf=<n>] [transport_ssf=<n>] [tls_ssf=<n>] [sasl_ssf=<n>]
<dnstyle> ::= base | exact | one(level) | sub(tree) | children | regex
<style> ::= regex | base | exact
<peernamestyle> ::= regex | exact | ip | path
<domainstyle> ::= regex | base | exact | sub(tree)
<access> ::= [self]{<level>|<priv>}
<level> ::= none | auth | compare | search | read | write
<priv> ::= {=|+|-}{w|r|s|c|x|0}+
<control> ::= [ stop | continue | break ]

here's my slapd.conf file: (at line 77)
access to dn=".*,dc=example,dc=com"  attr=userPassword
 by dn="cn=Manager,dc=example,dc=com" write
 by self write
 by * auth<---- line 77

does anybody knows why???
-- 
Javier Rojas