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

Re: localhost ldapsearch[Scanned]



It looks like your slapd is not listening on 127.0.0.1! Somewhere
in /etc/init.d should be script executing slapd. What is value of the -h
command line option? Make sure that it is "0.0.0.0:389". In such case
slapd will listen on all ip addresses. Or I am totally wrong?

On Tue, 2005-08-09 at 16:15 +0100, Arif Ali wrote:
> eeek sorry about that;
> 
> the error message is
> 
> ldap_bind: Can't contact LDAP server (-1)
> 
> I have tried the following; from the local machine with no success
> 
> ldapsearch -H ldap://localhost/ -w secret -x -b 
> ou=Users,ou=OxObjects,dc=ocf,dc=co,dc=uk -D dc=ocf,dc=co,dc=uk uid=* 
> uidNumber
> ldapsearch -H ldap://127.0.0.1/ -w secret -x -b 
> ou=Users,ou=OxObjects,dc=ocf,dc=co,dc=uk -D dc=ocf,dc=co,dc=uk uid=* 
> uidNumber
> ldapsearch -H ldap://mailserver-linux/ -w secret -x -b 
> ou=Users,ou=OxObjects,dc=ocf,dc=co,dc=uk -D dc=ocf,dc=co,dc=uk uid=* 
> uidNumber
> ldapsearch -H ldap://195.62.2.26/ -w secret -x -b 
> ou=Users,ou=OxObjects,dc=ocf,dc=co,dc=uk -D dc=ocf,dc=co,dc=uk uid=* 
> uidNumber
> 
> if I do the following
> 
> ldapsearch -H localhost -w secret -x -b 
> ou=Users,ou=OxObjects,dc=ocf,dc=co,dc=uk -D dc=ocf,dc=co,dc=uk uid=* 
> uidNumber
> 
> I get
> 
> Could not create LDAP session handle (3): Time limit exceeded
> 
> 
> thanks again
> Arif
> 
> vadim wrote:
> 
> >and what message do you get from ldapsearch when trying localhost?
> >
> >On Tue, 2005-08-09 at 14:12 +0100, Arif Ali wrote:
> >  
> >
> >>Hi all,
> >>
> >>I have been trying to install ldap on one of our servers to do various 
> >>things, but with any install I am never able to to get a ldapsearch 
> >>workin on localhost, but when I do a ldapsearch from a machione on the 
> >>network pointing to the ip address of the server, I get a result. 
> >>iptables is turned off, nothing in hosts.deny or hosts.allow, would 
> >>there be anything else on FC3 which will not allow localhost ldap 
> >>searches. I am able to view/edit the ldap tree structure using luma from 
> >>localhost.
> >>
> >>any help would be appreciated,
> >>
> >>thanks
> >>
> >>    
> >>
> 
> 
-- 
vadim <vadim.tarassov@swissonline.ch>