13.07.2015 Views

Naming and Directory Services (DNS, NIS, and LDAP)

Naming and Directory Services (DNS, NIS, and LDAP)

Naming and Directory Services (DNS, NIS, and LDAP)

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ethersdn: cn=myhost,ou=Ethers,dc=mydc,dc=mycom,dc=commacaddress: 8:1:21:71:31:c1objectclass: topobjectclass: deviceobjectclass: ieee802Devicecn: myhostpublickey% ldaplist -l publickey myhostdn: cn=myhost+ipHostNumber=200.20.20.99,ou=Hosts,dc=mydc,dc=mycom,dc=comcn: myhostiphostnumber: 200.20.20.99description: Joe Smithnispublickey: 9cc01614d929848849add28d090acdaa1c78270aeec969c9nissecretkey: 9999999998769c999c39e7a6ed4e7afd687d4b99908b4de99objectclass: topobjectclass: NisKeyObjectobjectclass: deviceobjectclass: ipHostaliases% ldaplist -l aliases mynamedn: mail=myname,ou=aliases,dc=mydc,dc=mycom,dc=comcn: mynamemail: mynameobjectclass: topobjectclass: mailgroupmgrprfc822mailmember: my.nameUsing Fully Qualified Domain NamesWith <strong>LDAP</strong>Unlike <strong>NIS</strong> or <strong>NIS</strong>+ clients, an <strong>LDAP</strong> client always returns a fully qualified domainname (FQDN) for a host name. The <strong>LDAP</strong> FQDN is similar to the FQDN returned by<strong>DNS</strong>. For example, suppose your domain name is the following:west.example.netBoth gethostbyname() <strong>and</strong> getnameinfo() return the FQDN version whenlooking up the host name server:server.west.example.net132 System Administration Guide: <strong>Naming</strong> <strong>and</strong> <strong>Directory</strong> <strong>Services</strong> (<strong>DNS</strong>, <strong>NIS</strong>, <strong>and</strong> <strong>LDAP</strong>) • January 2005

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!