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

Re: why can't I use a URI?



check that your server is operating on both ports by telnetting to them,
i.e.

telnet localhost 389
telnet localhost 636

in both cases you should get a connection rather than a connection
refused. It looks like you have found the "feature" that stumped me for
a while. Use quotation marks around the -h paramters:

/usr/sbin/slapd -u ldap -h "ldap:/// ldaps:///"

otherwise, everything after the first URI is discarded from the command
line, including extra options.

hth

GREG

On Mon, 2003-08-04 at 22:09, Jeremy Hansen wrote:
> I'm trying to use a URI in my ldap config and for some reason it's not 
> working.  Config:
> 
> uri ldaps://127.0.0.1/
> 
> and this is the error I receive:
> 
> Aug  4 14:19:07 distro sshd(pam_unix)[18374]: check pass; user unknown
> Aug  4 14:19:07 distro sshd(pam_unix)[18374]: authentication failure; 
> logname= uid=0 euid=0 tty=NODEVssh ruser= 
> rhost=hansenj-ws
> Aug  4 14:19:07 distro sshd[18374]: pam_ldap: ldap_starttls_s: Can't 
> contact LDAP server
> 
> If I don't use a URI and it's just the host directive alone, host 
> localhost, it works fine.
> 
> slapd is started like this:
> 
>  /usr/sbin/slapd -u ldap -h ldap:/// ldaps:///
> 
> What should I be looking for?
> 
> Thanks
> -jeremy
-- 
Greg Matthews
iTSS Wallingford	01491 692445