Binding a RHEL LDAP Client to a Sun Directory Server


Revision as of 15:06, 21 February 2008 by Hutch (Talk | contribs)
Jump to: navigation, search

In this example, I bind a RHEL 3 AS client to a Sun Directory Server Enterprise Edition 6.2 LDAP Server. The following values are used in this example:

  • LDAP servers:,
  • BaseDN: dc=dev,dc=example,dc=com
  • pam_ldap is used, so the username and password provided during login is used as the bindDN for authentication; proxyagent authentication is not used


The first step is to run authconfig to configure /etc/nsswitch.conf and /etc/pam.d/system-auth.

# authconfig --enableldap --enableldapauth --ldapserver="" --ldapbasedn="dc=dev,dc=example,dc=com" --kickstart


The next step is to configure OpenSSH to use PAM. Make sure PAMAuthenticationViaKbdInt yes exists in /etc/ssh/sshd_config and reload the configuration with /sbin/service sshd reload.

Personal tools