[Date Prev][Date Next] [Chronological] [Thread] [Top]

Dump Question - How to set the password for each user ?



Hi All,

I am a beginner to use LDAP, I am trying to set the ldap server for my
company / client directory (address book for our company).  I have no
problem to create / delete the
database, I only have 2  question as below:

1. How to set each user has their own database (address book) on the server?

2. How to set the user account and password on ldap database ( User must
need their
name and password to search the database) ?

Below is my slapd.conf file, and please teach me where have been change to
slove my problem.... thanks.

/etc/openldap/slapd.conf
--------------------------------

# $OpenLDAP: pkg/ldap/servers/slapd/slapd.conf,v 1.8.8.4 2000/08/26 17:06:18
kur
t Exp $
#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
include         /etc/openldap/schema/core.schema
include         /etc/openldap/schema/cosine.schema
include         /etc/openldap/schema/inetorgperson.schema
#include        /etc/openldap/schema/nis.schema
#include        /etc/openldap/schema/redhat/rfc822-MailMember.schema
#include        /etc/openldap/schema/redhat/autofs.schema
#include        /etc/openldap/schema/redhat/kerberosobject.schema

# Define global ACLs to disable default read access.

# Do not enable referrals until AFTER you have a working directory
# service AND an understanding of referrals.
#referral       ldap://root.openldap.org

#pidfile        /var/run/slapd.pid
#argsfile       /var/run/slapd.args

# Load dynamic backend modules:
# modulepath    /usr/sbin/openldap
# moduleload    back_ldap.la
# moduleload    back_ldbm.la
# moduleload    back_passwd.la
# moduleload    back_shell.la

# To allow TLS-enabled connections, create /usr/share/ssl/certs/slapd.pem
# and uncomment the following lines.
# TLSCertificateFile /usr/share/ssl/certs/slapd.pem
# TLSCertificateKeyFile /usr/share/ssl/certs/slapd.pem

#######################################################################
# ldbm database definitions
#######################################################################

database        ldbm
#suffix         "dc=abc,dc=com"
suffix          "o=abc"
#suffix         "o=My Organization Name, c=US"
suffix          "dc=ldap,dc=abc,dc=com"
rootdn          "cn=Manager,o=abc"
#rootdn         "cn=Manager, o=My Organization Name, c=US"
# Cleartext passwords, especially for the rootdn, should
# be avoided.  See slappasswd(8) and slapd.conf(5) for details.
# Use of strong authentication encouraged.
rootpw          abc
# rootpw                {crypt}ijFYNcSNctBYg
# The database directory MUST exist prior to running slapd AND
# should only be accessable by the slapd/tools. Mode 700 recommended.
directory       /var/lib/ldap/abc
defaultaccess     read
schemacheck     on
lastmod              on
# Indices to maintain
#index  objectClass                                                 eq
#index  objectClass,uid,uidNumber,gidNumber     eq
#index  cn,mail,surname,givenname                       eq,subinitial
index   cn,sn,st
pres,eq,sub

Thanks and regards,
Kevin Chan