lists.arthurdejong.org
RSS feed

Re: libnss-ldapd on Debian squeeze, authentication ok, but hosts resolution is wrong

[Date Prev][Date Next] [Thread Prev][Thread Next]

Re: libnss-ldapd on Debian squeeze, authentication ok, but hosts resolution is wrong



thanks for your answer

On 03/16/12 16:09, Arthur de Jong wrote:
second to also return that result. Note that in your example above you
call hosts2 (with an exrta s), I'll assume that's not the problem.
No it's me...

did you mean on the client ?
Can you include the output of ldapsearch for the two above searches:
   ldapsearch -x -h localhost -b "dc=my-ldap-base" "(objectClass=ipHost)" cn
ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)
   ldapsearch -x -h localhost -b "dc=my-ldap-base" 
"(&(objectClass=ipHost)(cn=host2))" cn
ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)

with -h my-ldap-server (client)
==============================
(or with -h localhost (on my-ldap-server) : same results as below)

1) first search (all hosts are listed)
---------------
ldapsearch -x -h my-ldap-server -b "dc=my-ldap-base" "(objectClass=ipHost)" cn

# host1.mydomain, machines
dn: cn=host1.mydomain,ou=machines,my-ldap-base
cn: host1.mydomain
cn: host1


# host2.mydomain, machines
dn: cn=host2.mydomain,ou=machines,my-ldap-base
cn: host2.mydomain
cn: host2



# search result
search: 2
result: 0 Success

# numResponses: 79
# numEntries: 78

2) 2nde search ( -> BLANK RESPONSE ??)
ldapsearch -x -h my-ldap-server -b "my-ldap-base" "(&(objectClass=ipHost)(cn=host2))" cn


# extended LDIF
#
# LDAPv3
# base <my-ldap-base> with scope subtree
# filter: (&(objectClass=ipHost)(cn=wambi))
# requesting: ALL
#

# search result
search: 2
result: 0 Success

# numResponses: 1

The only thing I can think of that could be wrong with the information
here is that a space or some other hidden character is included in or
after the hostname. Another could be that your slapd indexes are messed
up.

This is my first ldap server, I came from NIS thanks migration_tools...Do you mean that the problem may come from a hidden character when I initialized slapd with the host.ldif ?

Philippe
--
____________________________________________________________________
Philippe Marion         L.M.P.A                 
U.L.C.O                 Tel: (33)3 21 46 55 81  fax : 86


--
To unsubscribe send an email to
nss-pam-ldapd-users-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-users/