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

Re: ldap and hosts files



>I want make the name of hosts (equal a file /etc/hosts) in ldap. 
>I make the ldif and put on tree, but the clients don't work with.. 
>The nssswitch is ok, Another things on ldap work, but the hosts no.
>Someone have a ideia?

This is really a quest for the PADL NSS/PAM lists, as it doesn't have 
anything to do specifically with OpenLDAP.

But... it does work -
[root@littleboy /root]# ldapsearch -x cn=estate2
dn: cn=estate2,ou=NonCIFS Workstations,ou=Devices,o=Morrison 
Industries,c=US
objectClass: top
objectClass: device
objectClass: ipHost
objectClass: morrisonworkstation
cn: estate2
ipHostNumber: 192.168.1.86
morrisonttystation: CIS
[root@littleboy /root]# host estate2
Host estate2 not found: 3(NXDOMAIN)
[root@littleboy /root]# ping estate2
PING estate2 (192.168.1.86) from 192.168.1.9 : 56(84) bytes of data.
Warning: time of day goes back, taking countermeasures.
64 bytes from estate2 (192.168.1.86): icmp_seq=0 ttl=64 time=809 usec
--- estate2 ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max/mdev = 0.809/0.809/0.809/0.000 ms
[root@littleboy /root]# grep -c -i estate2 /etc/hosts
0
[root@littleboy /root]# grep hosts /etc/nsswitch.conf
#hosts:     db files nisplus nis dns
hosts:      files ldap dns