Upload
kurniawan-setyo-nugroho
View
61
Download
0
Embed Size (px)
DESCRIPTION
Instalasi Open LDAP di Ubuntu
Citation preview
Install Openldap di Ubuntu dengan Openldap.2.3.27
1. Install build-essential sasl2-bin libsasl2
2. i tried installing openldap 2.3.27 today on ubuntu 8.10 (to match our asp's version in their environment) and when i ran:
Code:
./configure
i got this error:Quote:
configure: error: BDB/HDB: BerkeleyDB not available
to fix this in ubuntu i ran this:Code:
sudo apt-get install libdb-dev
and it chose the newest version for me
ref: https://lists.ubuntu.com/archives/ub...ry/022422.html
then i ran:Code:
make depend
and everything went ok, then i ran:Code:
make
and got this error:Quote:
getpeereid.c: In function ‘getpeereid’:getpeereid.c:51: error: storage size of ‘peercred’ isn’t knownmake[2]: *** [getpeereid.o] Error 1make[2]: Leaving directory `/home/tcadmin/openldap-2.3.27/libraries/liblutil'make[1]: *** [all-common] Error 1make[1]: Leaving directory `/home/tcadmin/openldap-2.3.27/libraries'make: *** [all-common] Error 1
to fix this i had to apply a patch. all i did was open this file:openldap-2.3.27/libraries/liblutil/getpeereid.cand add the following line:Code:
#define _GNU_SOURCE
right above this line:Code:
#include "portable.h"
so it looked like this:Code:
#define _GNU_SOURCE
#include "portable.h"
then make completed without errors