OpenLDAP and local DNS (bind9)

asmo.koskinen at asmo.koskinen at
Wed Feb 25 21:42:39 GMT 2009

So I have this howto
( and now I
try to add/understand local DNS with that very same setup

I have removed host information from hosts files and try just to use local
DNS. I can ping both machines vice versa.


admin-ltsp5 at ubuntu-ltsp5:~$ ping -c 2
PING ( 56(84) bytes of data.
64 bytes from ( icmp_seq=1 ttl=64
time=0.303 ms
64 bytes from ( icmp_seq=2 ttl=64 time=0.316 ms

--- ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.303/0.309/0.316/0.018 ms
admin-ltsp5 at ubuntu-ltsp5:~$


admin-openldap at ubuntu-openldap:~$ ping -c 1
PING ( 56(84) bytes of data.
64 bytes from ( icmp_seq=1 ttl=64
time=0.253 ms

--- ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.253/0.253/0.253/0.000 ms
admin-openldap at ubuntu-openldap:~$


And I can make ldapsearch from LTSP5 server.

admin-ltsp5 at ubuntu-ltsp5:~$ ldapsearch -x -D "cn=nss,dc=arkki,dc=info" -W
-u "cn=LTSP 001"
Enter LDAP Password:
# extended LDIF
# LDAPv3
# base <dc=arkki,dc=info> (default) with scope subtree
# filter: cn=LTSP 001
# requesting: ALL

# ltsp001, People,
dn: uid=ltsp001,ou=People,dc=arkki,dc=info
ufn: ltsp001, People,
cn: LTSP 001
uid: ltsp001
uidNumber: 10001
loginShell: /bin/bash
homeDirectory: /home/ltsp001
gidNumber: 10000
objectClass: posixAccount
objectClass: shadowAccount
objectClass: inetOrgPerson
objectClass: person
sn: LTSP 001

# search result
search: 2
result: 0 Success

# numResponses: 2
# numEntries: 1
admin-ltsp5 at ubuntu-ltsp5:~$


But getent can't see any users on OpenLDAP, just local users?

admin-ltsp5 at ubuntu-ltsp5:~$ getent passwd
admin-ltsp5:x:1000:1000:Administrator LTSP5,,,:/root/admin-ltsp5:/bin/bash
user-ltsp5:x:1001:1001:User LTSP5,,,,:/root/user-ltsp5:/bin/bash
admin-ltsp5 at ubuntu-ltsp5:~$


So thin client can't access, because it can't find OpenLDAP server. But
ping/DNS is working as far I can tell.

admin-ltsp5 at ubuntu-ltsp5:~$ named-checkzone
zone loaded serial 2
admin-ltsp5 at ubuntu-ltsp5:~$

Here are all conf files for both servers about DNS (bind9).

Can someone look at them and tell what I have missed.

Best Reagards Asmo Koskinen.

More information about the edubuntu-users mailing list