these will obviously vary per system but here's mine which works.
slapd.conf:
Code:
include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/inetorgperson.schema
include /etc/openldap/schema/nis.schema
pidfile /var/ldap/run/slapd.pid
argsfile /var/ldap/run/slapd.args
database bdb
suffix "dc=YOUR_HOSTNAME"
directory /var/ldap/openldap-data
rootdn "cn=admin,dc=YOUR_HOSTNAME"
rootpw ROOT_PASSWORD
probably not the most secure given the password, but i believe that doesn't need to be the system root, just the ldap root. anyway, on to ldap.conf:
Code:
host 127.0.0.1
base dc=YOUR_HOSTNAME
pam_filter objectclass=posixAccount
pam_login_attribute uid
nss_base_passwd ou=users,dc=YOUR_HOSTNAME?one
nss_base_shadow ou=users,dc=YOUR_HOSTNAME?one
nss_base_group ou=groups,dc=YOUR_HOSTNAME?one
sslno