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

Re: localhost ldapsearch[Scanned]



Does slapd produces any log?

On Tue, 2005-08-09 at 16:40 +0100, Arif Ali wrote:
> when I put in 0.0.0.0 into the ldap file in /etc/init.d, I get following
> 
> # netstat -ant | grep 389
> 
> tcp        0      0 0.0.0.0:389                 0.0.0.0:*                   LISTEN
> 
> tcp        0      0 127.0.0.1:52534             127.0.0.1:389               TIME_WAIT
> 
> tcp        1      0 127.0.0.1:52334             127.0.0.1:389               CLOSE_WAIT
> 
> 
> and still get the same error message i.e.
> 
> ldap_bind: Can't contact LDAP server (-1)
> 
> 
> when I leave the ldap file as is then I get
> 
> # netstat -ant | grep 389
> 
> tcp        0      0 0.0.0.0:389                 0.0.0.0:*                   LISTEN
> 
> tcp        1      0 127.0.0.1:52334             127.0.0.1:389               CLOSE_WAIT
> 
> tcp        0      0 :::389                      :::*                        LISTEN
> 
> any more ideas would be appreciated,
> 
> thanks
> Arif
> 
> vadim wrote:
> 
> >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>