OpenLDAP and local DNS (bind9)
asmo.koskinen at arkki.info
asmo.koskinen at arkki.info
Wed Feb 25 21:42:39 GMT 2009
So I have this howto
(https://help.ubuntu.com/community/UbuntuLTSP/OpenLDAP_NFS_SSL) and now I
try to add/understand local DNS with that very same setup
(https://help.ubuntu.com/8.04/serverguide/C/dns.html).
I have removed host information from hosts files and try just to use local
DNS. I can ping both machines vice versa.
LTSP5 -> OpenLDAP
admin-ltsp5 at ubuntu-ltsp5:~$ ping -c 2 ubuntu-openldap.arkki.info
PING ubuntu-openldap.arkki.info (192.168.1.3) 56(84) bytes of data.
64 bytes from ubuntu-openldap.arkki.info (192.168.1.3): icmp_seq=1 ttl=64
time=0.303 ms
64 bytes from ns.arkki.info (192.168.1.3): icmp_seq=2 ttl=64 time=0.316 ms
--- ubuntu-openldap.arkki.info 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:~$
OpenLDAP -> LTSP5
admin-openldap at ubuntu-openldap:~$ ping -c 1 ubuntu-ltsp5.arkki.info
PING ubuntu-ltsp5.arkki.info (192.168.1.2) 56(84) bytes of data.
64 bytes from ubuntu-ltsp5.arkki.info (192.168.1.2): icmp_seq=1 ttl=64
time=0.253 ms
--- ubuntu-ltsp5.arkki.info 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, arkki.info
dn: uid=ltsp001,ou=People,dc=arkki,dc=info
ufn: ltsp001, People, arkki.info
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
root:x:0:0:root:/root:/bin/bash
admin-ltsp5:x:1000:1000:Administrator LTSP5,,,:/root/admin-ltsp5:/bin/bash
user-ltsp5:x:1001:1001:User LTSP5,,,,:/root/user-ltsp5:/bin/bash
bind:x:117:128::/var/cache/bind:/bin/false
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 ubuntu-openldap.arkki.info
/etc/bind/db.192
zone ubuntu-openldap.arkki.info/IN: loaded serial 2
OK
admin-ltsp5 at ubuntu-ltsp5:~$
Here are all conf files for both servers about DNS (bind9).
http://www.arkki.info/howto/Wiki/LTSP5-openLDAP/DNS/
Can someone look at them and tell what I have missed.
Best Reagards Asmo Koskinen.
More information about the edubuntu-users
mailing list