Table of Contents

LDAP Clinet Installation and Configuration.

Preparation of virtual machine.

~$ ssh root@vm31.student.lab
Warning: Permanently added 'vm31.student.lab,10.80.3.31' (RSA) to the list of known hosts.
root@vm31.student.lab's password:Li0p13ur0d0n
127.0.0.1      localhost
10.80.3.31     vm31.student.lab vm31
10.80.3.36     vm36.student.lab vm36
#The following lines are desireable for IPv6 capable hosts

OpenLDAP Client Install.

ldap.conf

BASE     dc=student,dc=lab
URI     ldap://vm36.student.lab ldap://vm36.student.lab:665

nsswitch.conf

passwd:          ldap files
group:           ldap files
shadow:          ldap files

hosts:           files dns

PAM Configuration

session required pam_mkhomedir.so

Verify Installation

~# id genUsr
uid=20000(genUsr) gid=20000 groups=20000

References:

TechNotes - OpenLDAP client on Debian Squeeze

PAM configuration guide for Debian

RFC 3377 - LDAP

RFC 2251 - LDAP