Chapter 13. Miscellaneous recipes 189
Under User Information, select Cache Information and Use LDAP. Under Authentication,
select Use LDAP Authentication and Local authorization is sufficient. Press Enter when
you have tabbed to the Next button.
+-----------------¦ LDAP Settings +-----------------+
¦ ¦
¦ [ ] Use TLS ¦
¦ Server: ldap://<9.12.5.32>/_____________________ ¦
¦ Base DN: <dc=itso,dc=ibm,dc=com>_________________ ¦
¦ ¦
¦ +------+ +----+ ¦
¦ ¦ Back ¦ ¦ Ok ¦ ¦
¦ +------+ +----+ ¦
¦ ¦
¦ ¦
+---------------------------------------------------+
Set the Server value to point to the LDAP server. In this example, it is ldap://9.12.5.32/. Set
the Base DN to your suffix value. In this example, it is dc=itso,dc=ibm,dc=com. Press OK.
Your LDAP client should now be pointing to the LDAP server. Test it using the id ldapuser1
command:
# id ldapuser1
uid=500(ldapuser1) gid=500(ldapuser1) groups=500(ldapuser1)
context=root:system_r:unconfined_t:s0-s0:c0.c1023
Authentication should also allow LDAP. Test this by starting another SSH session to the LDAP
server and logging in as ldapuser1:
login as: ldapuser1
When you get an SSH session as ldapuser1, this shows that authentication is working.
Configuring automount
Now SSH to the golden image to configure the automounter. Add an entry to the bottom of
/etc/auto.master for /home:
# vi /etc/auto.master
/nfs /etc/auto.controller
/home /etc/auto.home
Create the file /etc/auto.home and add one line to it:
# vi /etc/auto.home
* <9.12.5.32>:/home/&
The asterisk (*) is used as a wildcard character to represent the local subdirectory. The
ampersand (&) is used as the remote system name or the remote subdirectory. Whatever is in
the local directory name field replaces the ampersand character.
Finally, restart autofs and test logging in as ldapuser1 with su. You will see that
/home/ldapuser1 is now mounted from the LDAP server:
# service autofs restart
Stopping automount: [ OK ]
Starting automount: [ OK ]
# su - ldapuser1
$ pwd
/home/ldapuser1
$ mount | grep ldapuser1
Comentarios a estos manuales