Differences between revisions 9 and 11 (spanning 2 versions)
Revision 9 as of 2005-01-03 09:56:15
Size: 1036
Editor: anonymous
Comment:
Revision 11 as of 2005-01-03 09:57:28
Size: 1247
Editor: anonymous
Comment:
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:
Configuring LDAP Authentication for Debian
["OpenLDAPSetup"]
= Configuring LDAP Authentication for Debian =
== OpenLDAPSetup ==
1. Install the ["OpenLDAP"] package [http://packages.debian.org/cgi-bin/search_packages.pl?searchon=names&keywords=slapd slapd]
Line 5: Line 6:
1. Install the ["OpenLDAP"] package slapd

Do 'apt-get install slapd', answering prompts as required and generaly picking defaults except where they are obviously examples.
Do '{{{apt-get install slapd}}}', answering prompts as required and generaly picking defaults except where they are obviously examples.
Line 11: Line 10:
To make using LDAP utilities like 'ldapsearch' a little less painful, edit /etc/ldap/ldap.conf (installed by the 'libldap2' package on the stable (a.k.a. 'woody') distribution) to set: To make using LDAP utilities like '{{{ldapsearch}}}' a little less painful, edit {{{/etc/ldap/ldap.conf}}} (installed by the '{{{libldap2}}}' package on the stable (a.k.a. 'woody') distribution) to set:{{{
 BASE dc=<yourhost>,dc=<your>,dc=<domain>
 URI ldap://localhost
}}}
Line 13: Line 15:
BASE dc=<yourhost>,dc=<your>,dc=<domain>
URI ldap://localhost
3. Tune your LDAP server performance
Line 16: Line 17:

3.
Tune your LDAP server performance

To improve LDAP performance, edit
/etc/ldap/slapd.conf to set more indexes than the stable (a.k.a. 'woody') default of just objectClass (taken from the Mandrake documentation):

index objectclass,uid,uidNumber,gidNumber eq
index cn,mail,surname,givenName eq,subinitial
To improve LDAP performance, edit {{{/etc/ldap/slapd.conf}}} to set more indexes than the stable (a.k.a. 'woody') default of just objectClass (taken from the Mandrake documentation):{{{
  index objectclass,uid,uidNumber,gidNumber eq
  index cn,mail,surname,givenName eq,subinitial
}}}
Line 27: Line 24:
Make sure the indexes are updated by doing (as root): Make sure the indexes are updated by doing (as {{{root}}}):{{{
  # /etc/init.d/slapd stop
  # slapindex
  # /etc/init.d/slapd start
}}}
Line 29: Line 30:
# /etc/init.d/slapd stop
# slapindex
# /etc/init.d/slapd start
Mr. Verborgh rules
----
 * ["LDAPAuthentication"]

Configuring LDAP Authentication for Debian

OpenLDAPSetup

1. Install the ["OpenLDAP"] package [http://packages.debian.org/cgi-bin/search_packages.pl?searchon=names&keywords=slapd slapd]

Do 'apt-get install slapd', answering prompts as required and generaly picking defaults except where they are obviously examples.

2. Edit the LDAP configuration file

To make using LDAP utilities like 'ldapsearch' a little less painful, edit /etc/ldap/ldap.conf (installed by the 'libldap2' package on the stable (a.k.a. 'woody') distribution) to set:

 BASE dc=<yourhost>,dc=<your>,dc=<domain>
 URI ldap://localhost

3. Tune your LDAP server performance

To improve LDAP performance, edit /etc/ldap/slapd.conf to set more indexes than the stable (a.k.a. 'woody') default of just objectClass (taken from the Mandrake documentation):

  index objectclass,uid,uidNumber,gidNumber eq
  index cn,mail,surname,givenName           eq,subinitial

4. Update the LDAP indexes

Make sure the indexes are updated by doing (as root):

  # /etc/init.d/slapd stop
  # slapindex
  # /etc/init.d/slapd start

Mr. Verborgh rules


  • ["LDAPAuthentication"]