Wednesday, March 16, 2011

Compiling Openldap on Centos

Good morning , I took on the project of setting up openldap to talk to freeradius however there is one thing standing in the way. compiling openldap on the centos platform. which proved to be a very challenging process. Well here are the following steps that i took in order to get openldap to compile on centos NOTE:"This method is the method that worked for me so use this method at your own risk :)"

Step1. Make sure you download a copy of Berkeley DB version 4.8. The current version of Berkley DB that comes with centos is not compatable when trying to compile openldap.

Step2. After downloading and unpackging the DB version 4.8 run the following commands

cd build_unix

../dist/configure


Step3. Run make && make install


Step 4. Download and unpack a recent copy of openldap which is at the time of this writing is openldap-2.4.23

Step 5. change over to the openldap directory and run the following commands

LDFLAGS=-L/path/to/BerkeleyDB.4.8/lib CPPFLAGS=-I/path/to/BerkeleyDB.4.8/include ./configure

example: LDFLAGS=-L/usr/local/BerkeleyDB.4.8/lib CPPFLAGS=-I/usr/local/BerkeleyDB.4.8/include ./configure

Step6. Once the configure has completed run the folllowing command

make depend && make && make install


The compiled version of openldap should be installed in the /usr/local/etc/openldap directory


Step 7. enjoy your new version of openldap :)

No comments:

Post a Comment

Cracking Kerberos Service Tickets (TGS) Using Kerberoasting

As of late I've been spending a lot of time researching and learning different techniques when it comes to attacking Active Directory En...