LDAP Client Authentication

Gergely Tamas dice at mfa.kfki.hu
Mon Jan 17 20:29:10 UTC 2005


Hi!

 > I am trying to authenticate users on a ubuntu workstation against an
 > LDAP server (i.e. instead of using the hashes in /etc/passwd or
 > /etc/shadow).
 > 
 > Is support for this (i.e. an LDAP client) included in Ubuntu
 > natively? If so, what config files will I have to edit and if not,
 > can anyone recommend an easy to configure and powerful client?

apt-get install libnss-ldap libpam-ldap

/etc/libnss-ldap.conf

  host 111.222.333.444
  base 'DN of searchbase'
  ldap_version 3

/etc/pam_ldap.conf

  host 111.222.333.444
  base 'DN of searchbase'
  ldap_version 3
  pam_password crypt

/etc/nsswitch.conf (modify the following lines)

  passwd: files ldap
  group: files ldap

As an extremly powerful client you can try 'gq' which is in universe.

Gergely




More information about the ubuntu-users mailing list