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

Re: Which ldap.conf?



On Thu, 2002-04-11 at 19:51, Le Ngoc Thach wrote:
> Hi all,
> 
> After installed RedHat Linux 7.2 (choose Server Install).
> Result of command "rpm -q openldap" is "openldap-2.0.11-13".

redhat 7.2 does not install the ldap-server programs, only the dev,
client, and base package. goto: ftp://updates.redhat.com/7.2/en/os/i386
or somthing like that, and get the latest and greatest rpms(including
the server one) then rpm -U them all.

> It's seem the "Ldap server have not installed" (In folder "/usr/local/etc/openldap, folder "schema" is not found").
> Then, I have installed ldap server (get source package from ftp://ftp.openldap.org/pub/OpenLDAP/openldap-stable/openldap-stable-20020215.tgz).
> 

Becuase you installed the openldap you are going to need to look at:
/usr/local/etc/openldap/ and /etc/openldap/ and /etc/ for your conf
files. Configure the ldap.conf in etc(you will notice it is different
than the other two), then configure either of the slapd.conf and
ldap.conf (s) in the other two locations, and soft-link them.  When you
startup the server with /usr/bin/slapd and use the tools in /usr/bin/ to
do editing. This should work dandy. good luck.

> There two file "ldap.conf". THe one is "/etc/ldap.conf" that existed after RedHat is installed, before Ldap server is installed. The second is "/usr/local/etc/openldap/ldap.conf" that existed after I installed Ldap Server.
> 
> --------------------------Begin of  "/usr/local/etc/openldap/ldap.conf"------------------
> # $OpenLDAP: pkg/ldap/libraries/libldap/ldap.conf,v 1.4.8.6 2000/09/05 17:54:38 kurt Exp $
> #
> # LDAP Defaults
> #
> 
> # See ldap.conf(5) for details
> # This file should be world readable but not world writable.
> 
> #BASE   dc=example, dc=com
> #URI    ldap://ldap.example.com ldap://ldap-master.example.com:666
> 
> #SIZELIMIT      12
> #TIMELIMIT      15
> #DEREF          never
> --------------------------End of  "/usr/local/etc/openldap/ldap.conf"------------------
> 
> I want to set up PAM to authenticate against the ldap database. Which "ldap.conf" file should I modify?
> 
> Thach!
-- 
-------------------------------------------
| Caleb Phillips                          |
| The Studio Resource                     |
| IT Specialist                           |
|                                         |
| Handcrafted for you in Ximian Evolution |
-------------------------------------------