Subject: Re: openldap
To: None <netbsd-help@netbsd.org>
From: Keith Mastin <kmastin@beechtree.ca>
List: netbsd-help
Date: 09/05/2002 12:29:12
>Keith Mastin wrote:
>> <snip> 
>> >> ps shows no slapd server running. There was no error when starting the 
>> >> server, so I assume that I don't need to add a slapd=YES line to rc.conf, 
>> >> do I?
>> >
>> >Start slapd with the debug option -d:
>> >
>> >/usr/local/libexec/slapd -d 63
>> >
>> >Then you'll see what happens.
>> >
>> >
>> >Regards,
>> >
>> >  Michael
>> >  
>> >
>> Hi Michael,
>> 
>> The debug level had me stumped last night, thanks. This shows some 
>> reference to bind. I'm hoping this is not bind as in dns bind, but bind as 
>> in ldap_bind. I don't run dns on this machine, and if I were going to, I 
>> would probably set up dbjdns as a preference.
>> 
>> How do I pursue err no. 48?
>> 
>> Thanks again.
>> 
>> bash-2.05# /usr/local/libexec/slapd -d 63
>> @(#) $OpenLDAP: slapd 2.0.23-Release (Tue Aug 20 19:14:18 EDT 2002) $
>>         
>> root@brutus.beechtree.ca:/usr/pkgsrc/databases/openldap/work/openldap-2.0.23/servers/slapd
>> daemon_init: <null>
>> daemon_init: listen on ldap:///
>> daemon_init: 1 listeners to open...
>> ldap_url_parse_ext(ldap:///)
>> daemon: bind(8) failed errno=48 (Address already in use)
>> daemon: bind(8) failed errno=48 (Address already in use)
>> daemon: bind(8) failed
>> slapd stopped.
>> connections_destroy: nothing to destroy.
>
>try slapd's option -h:
>
>  /usr/local/libexec/slapd -d 63 -h ldap://my_host_name:my_port
>
>and use your hostname (or IP address) for my_host_name, and a port
>number for my_port (you can ommit this).
>
>When using ldapadd & co, specify the hostname and port number via option "-H ldap://host:port".

Beauty! Thanks Michael, that was it.
bash-2.05# /usr/local/libexec/slapd -d 63 -h 
ldap://brutus.beechtree.ca:389    
@(#) $OpenLDAP: slapd 2.0.23-Release (Tue Aug 20 19:14:18 EDT 2002) $
        
root@brutus.beechtree.ca:/usr/pkgsrc/databases/openldap/work/openldap-2.0.23/servers/slapd
daemon_init: ldap://brutus.beechtree.ca:389
daemon_init: listen on ldap://brutus.beechtree.ca:389
daemon_init: 1 listeners to open...
ldap_url_parse_ext(ldap://brutus.beechtree.ca:389)
daemon: initialized ldap://brutus.beechtree.ca:389
daemon_init: 1 listeners opened
slapd init: initiated server.
slapd startup: initiated.
slapd starting
daemon: added 8r
daemon: select: listen=8 active_threads=0 tvp=NULL

now onto the next step(s)...

The more I learn about this little distro, the more intrigued I get. Sorry 
if I'm being a PITA. What are some decent books to get to learn more about 
this stuff? I have absolute bsd, but it's pretty basic.

-- 
Keith Mastin       BeechTree Information Technology Services Inc.
137 Laird Drive    Toronto    M4G 3V5     http://www.beechtree.ca
  (416)696-6070      Fax(416)696-6072      kmastin@beechtree.ca