13.07.2015 Views

Linux System Administration Recipes A Problem-Solution Approach

Linux System Administration Recipes A Problem-Solution Approach

Linux System Administration Recipes A Problem-Solution Approach

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.

CHAPTER 2 ■ CENTRALIZING YOUR NETWORK: KERBEROS, LDAP, AND NFSThen apply the file to your database:kinit ldapadm; ldapmodify -f modifyfileAlternatively, you can of course edit any data migration tool so it doesn’t take the password data.2-6. Setting Up the LDAP ClientOn your client, install the required packages:sudo apt-get install ldap_utils libnss-ldap autofs-ldap nscd■ Note You need autofs-ldap only if you use automount. See recipe 2-14.Edit /etc/nsswitch.conf:passwd:shadow:group:hosts:compat files ldapcompat filescompat files ldapfiles dnsservices: db files ldap [NOTFOUND=return]networks: db files ldap [NOTFOUND=return]protocols: db files ldap [NOTFOUND=return]rpc: db files ldap [NOTFOUND=return]ethers: db files ldap [NOTFOUND=return]automount: filesIt is important that compat and files entries appear before ldap for passwd/shadow/group. Otherwise,if your LDAP server fails (or the client connection to it does), you won’t be able to log in at all. You canuse ldap for hosts as well if you prefer.Edit /etc/libnss-ldap.conf (on Ubuntu this is /etc/ldap.conf—not to be confused with/etc/ldap/ldap.conf!) so that the only lines uncommented are as follows:base dc=example,dc=comuri ldaps://ldapserver.example.comldap_version 3Edit /etc/ldap/ldap.conf:BASEURIdc=example,dc=comldaps://ldapserver.example.com38Download at WoweBook.Com

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

Saved successfully!

Ooh no, something went wrong!