1 - Result of the command:
[root@ovirt ~]# ldapsearch -x -b "ou=People,dc=lab,dc=local" -s sub -h
192.168.16.114 -p 389 -D "uid=node1,ou=People,dc=lab,dc=local" -W
'uid=node1'
Enter LDAP Password:
# extended LDIF
#
# LDAPv3
# base <ou=People,dc=lab,dc=local> with scope subtree
# filter: uid=node1
# requesting: ALL
#
# node1, People, lab.local
dn: uid=node1,ou=People,dc=lab,dc=local
objectClass: inetOrgPerson
objectClass: posixAccount
objectClass: shadowAccount
sn: node1
givenName: node1
cn: node1
displayName: node1
uidNumber: 1000
gidNumber: 1000
userPassword:: e2NyeXB0fSQ2JC9TL2JnQjZUbVU4amhPRGgkU1NOVXcxYWxNaVdPd3pUamdKQjV
vLlRXUTNzc3I4NWI2Sm9Kd2VVancvZDlqdVdEcElzQUI5eThmYWRkNWlEZkpnSm13cS5wNHg2ZGlQ
c29YSXdyUi8=
gecos: node1
loginShell: /bin/bash
homeDirectory: /home/node1
shadowExpire: -1
shadowFlag: 0
shadowWarning: 7
shadowMin: 0
shadowMax: 99999
shadowLastChange: 0
uid: node1
# search result
search: 2
result: 0 Success
# numResponses: 2
# numEntries: 1
Other output that gives result:
[root@ovirt ~]# ldapsearch -x -b "ou=People,dc=lab,dc=local" -s sub -h
192.168.16.114 -p 389 -D "cn=ldapadm,dc=lab,dc=local" -W 'uid=node1'
Enter LDAP Password:
# extended LDIF
#
# LDAPv3
# base <ou=People,dc=lab,dc=local> with scope subtree
# filter: uid=node1
# requesting: ALL
#
# node1, People, lab.local
dn: uid=node1,ou=People,dc=lab,dc=local
objectClass: inetOrgPerson
objectClass: posixAccount
objectClass: shadowAccount
sn: node1
givenName: node1
cn: node1
displayName: node1
uidNumber: 1000
gidNumber: 1000
userPassword:: e2NyeXB0fSQ2JC9TL2JnQjZUbVU4amhPRGgkU1NOVXcxYWxNaVdPd3pUamdKQjV
vLlRXUTNzc3I4NWI2Sm9Kd2VVancvZDlqdVdEcElzQUI5eThmYWRkNWlEZkpnSm13cS5wNHg2ZGlQ
c29YSXdyUi8=
gecos: node1
loginShell: /bin/bash
homeDirectory: /home/node1
shadowExpire: -1
shadowFlag: 0
shadowWarning: 7
shadowMin: 0
shadowMax: 99999
shadowLastChange: 0
uid: node1
# search result
search: 2
result: 0 Success
# numResponses: 2
# numEntries: 1
2 - The hostname is being resolved:
[root@ovirt ~]# ping ldap.lab.local
PING ldap.lab.local (192.168.16.114) 56(84) bytes of data.
64 bytes from ldap.lab.local (192.168.16.114): icmp_seq=1 ttl=64 time=1.25 ms
3 - I know it's not a good ideia with out the SSL/TLS but this ambient is just a
laboratory of testes so it's alright.
Thank you in advance for the help you ara giving!