Hi,

I some how fixed this error but now i am stuck at converting slapd.conf file to config. While cinverting getting follwoing error:
[root@juc-xxx-prd openldap]# echo "" | slapadd -f /usr/local/etc/openldap/slapd.conf
5316a9ee The first database does not allow slapadd; using the first available one (2)
[root@juc-xxx-prd openldap]# slaptest -f /usr/local/etc/openldap/slapd.conf -F /usr/local/etc/openldap/slapd.d
config file testing succeeded

In logs i can see below error:
Mar  5 12:38:30 juc-xxx-prd slapd[10174]: @(#) $OpenLDAP: slapd 2.4.39 (Mar  4 2014 11:05:59) $#012#011root@juc-xxx-prd.j.example.com:/tmp/openldap-2.4.39/servers/slapd
Mar  5 12:38:30 juc-xxx-prd slapd[10174]: daemon: IPv6 socket() failed errno=97 (Address family not supported by protocol)
Mar  5 12:38:30 juc-xxx-prd slapd[10174]: config error processing olcDatabase={2}bdb,cn=config:
Mar  5 12:38:30 juc-xxx-prd slapd[10174]: slapd stopped.

tried google and various post but still no luck
 
Regards
Sam


On Tuesday, 4 March 2014 4:16 PM, Dieter Klünter <dieter@dkluenter.de> wrote:
Am Tue, 4 Mar 2014 13:07:13 +0800 (SGT)
schrieb saurabh ohri <sam_ohri@yahoo.co.in>:

> Hi All,
>
> tried implementing the ppolicy on 2.4.23 version but it is not
> working. So i tried installing the upgraded version i.e 2.4.39 from
> source.but getting following error: Mar  4 12:36:06 juc-dom1-prd
> slapd[5513]: @(#) $OpenLDAP: slapd 2.4.39 (Mar  4 2014 11:05:59)
> $#012#011root@juc-dom1-prd.j.cinglevue.com:/tmp/openldap-2.4.39/servers/slapd
> Mar  4 12:36:06 juc-dom1-prd slapd[5513]: daemon: IPv6 socket()

you probably have not enabled ipV6


> failed errno=97 (Address family not supported by protocol) Mar  4
> 12:36:06 juc-dom1-prd slapd[5513]: lt_dlopenext failed: (back_bdb.la)
> file not found Mar  4 12:36:06 juc-dom1-prd slapd[5513]: slapd
> stopped. Mar  4 12:36:06 juc-dom1-prd slapd[5513]:
> connections_destroy: nothing to destroy.
>
> Previously was getting error:
> Unrecognized database type (bdb) in openldap 2.4.39
>
>
> In order to fix this i added below line in slapd.conf file:
> moduleload back_bdb.la
>
>
> Please help as implementing open ldap is getting crazy now.


Please post the ouput of ./slapd -VVV

-Dieter


--
Dieter Klünter | Systemberatung
http://sys4.de
GPG Key ID: E9ED159B
53°37'09,95"N
10°08'02,42"E