Openldap - where is slapd.conf? it doesn't exist

General support questions including new installations
Post Reply
izia
Posts: 8
Joined: 2010/02/06 20:50:20

Openldap - where is slapd.conf? it doesn't exist

Post by izia » 2010/03/07 21:27:01

[b]Hi!
I'm trying to install and configure openldap in my centos server. I'm using a manual and until now I've done these steps:[/b]

1 - Download BerkeleyDB and:
cd db-4.6.21
cd build_unix
../dist/configure
make
make install

2
ln -s /usr/local/BerkeleyDB.4.8/include/db.h
export CPPFLAGS="-I/usr/local/BerkeleyDB.4.8/include"
export LDFLAGS="-L/usr/local/BerkeleyDB.4.8/lib"
export LD_LIBRARY_PATH=/data/install/berkeleydb/db-4.2.52.NC/build_unix/.libs

3 - Download openldap and:

./configure
make depend
make
make test
make install

cd /usr/local/lib
ln -s /usr/local/BerkeleyDB.4.8/lib/libdb-4.8.so
echo /usr/local/BerkeleyDB.4.8/lib/ >> /etc/ld.so.conf
ldconfig

[b]and then....I have to modify the file /etc/openldap/slapd.conf but...it doesn't exist, I can't find this file anywhere..

Can you help me please? [/b] :-(

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: Openldap - where is slapd.conf? it doesn't exist

Post by pschaff » 2010/03/07 22:59:39

[url=http://wiki.centos.org/PackageManagement/SourceInstalls]Source Installs[/url] are [b]highly[/b] discouraged!

What is wrong with "yum install openldap-servers"?

scottro
Forum Moderator
Posts: 2457
Joined: 2007/09/03 21:18:09
Location: NYC
Contact:

Re: Openldap - where is slapd.conf? it doesn't exist

Post by scottro » 2010/03/08 00:52:37

As most LDAP documentation is pretty bad, you possibly went with a rather dated tutorial.

I'm going to spam my own ldap page. (But get rid of what you installed. ) Your slapd.conf is probably in something local or local something, as that's where tarballs tend to put things--whoever wrote the tutorial probably overlooked that, which is typical of the poorly written ldap tutorials around.

So, as I said, let me spam my own page, which uses CentOS packages.

http://home.roadrunner.com/~computertaijutsu/ldap.html

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: Openldap - where is slapd.conf? it doesn't exist

Post by pschaff » 2010/03/08 13:08:55

[quote]
scottro wrote:
...
So, as I said, let me spam my own page, which uses CentOS packages.

http://home.roadrunner.com/~computertaijutsu/ldap.html[/quote]

gs/spam/recommend/ ;-)

I should have done that. :-)

scottro
Forum Moderator
Posts: 2457
Joined: 2007/09/03 21:18:09
Location: NYC
Contact:

Re: Openldap - where is slapd.conf? it doesn't exist

Post by scottro » 2010/03/08 20:06:52

Thank you Sir. :D

BTW, what is gs/xxx/yyy/ I only know s/xxx/yyy/

Thanks.

michaelnel
Posts: 1478
Joined: 2006/05/29 16:50:11
Location: San Francisco, CA

Openldap - where is slapd.conf? it doesn't exist

Post by michaelnel » 2010/03/08 20:12:03

[quote]
scottro wrote:
Thank you Sir. :D

BTW, what is gs/xxx/yyy/ I only know s/xxx/yyy/

Thanks.[/quote]

Global search and replace.

I agree, Scott, you did a terrific job on that LDAP article. Wish I had known about it last time I set up LDAP and almost ended up slashing my wrists instead.

Bravo!

scottro
Forum Moderator
Posts: 2457
Joined: 2007/09/03 21:18:09
Location: NYC
Contact:

Re: Openldap - where is slapd.conf? it doesn't exist

Post by scottro » 2010/03/08 22:56:45

.

Thanks (for the explanation too)

Seriously, that's why I wrote it. I got so darn sick of having to go all over the place--as it says in ldap for rocket scientists (which is linked on my article)
[quote]
The bad news is that IOHO never has so much been written so incomprehensibly about a single topic with the possible exceptions of BIND and ...
[/quote]

(Taken out of context, but true, IMHO.)

Post Reply

Return to “CentOS 5 - General Support”