Hi,
I am a LDAP newbie. I am trying to set up LDAP producer and consumer. The producer cannot start when I include the overlay syncprov. I get the following when I debug and the server stops. Can any say, what is going wrong here?
I see that there is module syncprov.la in the path given by "modulepath".
Thanks in advance,
Imran
slapd init: initiated server. slap_sasl_init: initialized! bdb_back_initialize: initialize BDB backend bdb_back_initialize: Berkeley DB 4.6.21: (September 27, 2007) hdb_back_initialize: initialize HDB backend hdb_back_initialize: Berkeley DB 4.6.21: (September 27, 2007) bdb_db_init: Initializing BDB database
dnPrettyNormal: <o=example>
<<< dnPrettyNormal: <o=example>, <o=example>
dnPrettyNormal: <cn=root, o=example>
<<< dnPrettyNormal: <cn=root,o=example>, <cn=root,o=example> overlay "syncprov" not found slapd destroy: freeing system resources. slapd stopped.
-------------------------------------------------------------------------- producer slapd.conf ---------------------------------------------------------------------------- include /etc/openldap/schema/core.schema include /etc/openldap/schema/cosine.schema include /etc/openldap/schema/nis.schema include /etc/openldap/schema/inetorgperson.schema include /u/hello/local.schema
pidfile /tmp/imran-slapd.pid argsfile /tmp/imran-slapd.args loglevel 0
modulepath /usr/local/openldap-2.4/libexec/openldap moduleload back_bdb.la moduleload syncprov.la
access to dn.base="" by * read access to dn.base="cn=Subschema" by * read access to * by self write by users read by anonymous auth by dn="cn=replica,o=example" read
database bdb suffix "o=deshaw" readonly off rootdn "cn=root, o=example"
rootpw secret lastmod on directory /var/openldap-data/pid1 index objectClass,entryCSN,entryUUID eq
overlay syncprov syncprov-checkpoint 10 5 syncprov-sessionlog 100
----------------------------------------------------------------------- Consumer slapd.conf --------------------------------------------------------------------------
include /etc/openldap/schema/core.schema include /etc/openldap/schema/cosine.schema include /etc/openldap/schema/nis.schema include /etc/openldap/schema/inetorgperson.schema include /u/hello/local.schema
pidfile /tmp/imran-slapd-slave.pid argsfile /tmp/imran-slapd-slave.args loglevel 0
database bdb suffix "o=example" readonly off rootdn "cn=replica, o=example"
index default pres,eq index objectClass,entryCSN,entryUUID eq
syncrepl rid=1 provider=ldap://127.0.0.1:3089 type=refreshAndPersist searchbase="o=example" filter="(objectClass=*) scope=sub attrs="" schemachecking=off updatedn="cn=replica,o=example" bindmethod=simple binddn="cn=replica,o=example" credentials="secret"
updateref ldap:/127.0.0.1:3089
On Friday 08 February 2008 12:15:05 Ishklight wrote:
Hi,
I am a LDAP newbie. I am trying to set up LDAP producer and consumer. The producer cannot start when I include the overlay syncprov. I get the following when I debug and the server stops. Can any say, what is going wrong here?
I see that there is module syncprov.la in the path given by "modulepath".
[...]
overlay "syncprov" not found
It doesn't seem to try and load the syncprov.la ...
[...]
loglevel 0
modulepath /usr/local/openldap-2.4/libexec/openldap moduleload back_bdb.la moduleload syncprov.la
... assuming there was no copy/paste error here, probably because the critical configuration lines above have leading spaces, which, as documented in the slapd.conf man page, are used for line continuations on long configuration lines.
Remove the leading spaces, and you should see syncprov being loaded. You may want to check that you don't have invalid leading spaces in the rest of your config, I didn't look at the rest carefully.
Regards, Buchan
Buchan,
Thanks for the info. It worked!! I have a small query here,
Now, how would I know if the consumer is actually replicating from the provider? I tried to query from the consumer, but nothing resulted in the search. Any pointers?
Thanks, Imran
On Feb 8, 2008 9:03 PM, Buchan Milne bgmilne@staff.telkomsa.net wrote:
On Friday 08 February 2008 12:15:05 Ishklight wrote:
Hi,
I am a LDAP newbie. I am trying to set up LDAP producer and consumer.
The
producer cannot start when I include the overlay syncprov. I get the following when I debug and the server stops. Can any say, what is going wrong here?
I see that there is module syncprov.la in the path given by
"modulepath".
[...]
overlay "syncprov" not found
It doesn't seem to try and load the syncprov.la ...
[...]
loglevel 0
modulepath /usr/local/openldap-2.4/libexec/openldap moduleload back_bdb.la moduleload syncprov.la
... assuming there was no copy/paste error here, probably because the critical configuration lines above have leading spaces, which, as documented in the slapd.conf man page, are used for line continuations on long configuration lines.
Remove the leading spaces, and you should see syncprov being loaded. You may want to check that you don't have invalid leading spaces in the rest of your config, I didn't look at the rest carefully.
Regards, Buchan
Check your debug logs (turn on debug for sync - see slapd.conf man page for debug number) and see if you can see the syncrepl lines.
Sellers
On Feb 11, 2008, at 4:43 AM, Ishklight wrote:
Buchan,
Thanks for the info. It worked!! I have a small query here,
Now, how would I know if the consumer is actually replicating from the provider? I tried to query from the consumer, but nothing resulted in the search. Any pointers?
Thanks, Imran
On Feb 8, 2008 9:03 PM, Buchan Milne bgmilne@staff.telkomsa.net wrote: On Friday 08 February 2008 12:15:05 Ishklight wrote:
Hi,
I am a LDAP newbie. I am trying to set up LDAP producer and
consumer. The
producer cannot start when I include the overlay syncprov. I get the following when I debug and the server stops. Can any say, what is
going
wrong here?
I see that there is module syncprov.la in the path given by
"modulepath".
[...]
overlay "syncprov" not found
It doesn't seem to try and load the syncprov.la ...
[...]
loglevel 0
modulepath /usr/local/openldap-2.4/libexec/openldap moduleload back_bdb.la moduleload syncprov.la
... assuming there was no copy/paste error here, probably because the critical configuration lines above have leading spaces, which, as documented in the slapd.conf man page, are used for line continuations on long configuration lines.
Remove the leading spaces, and you should see syncprov being loaded. You may want to check that you don't have invalid leading spaces in the rest of your config, I didn't look at the rest carefully.
Regards, Buchan
______________________________________________ Chris G. Sellers | NITLE - Technology Team 734.661.2318 | chris.sellers@nitle.org AIM: imthewherd | GoogleTalk: cgseller@gmail.com
openldap-software@openldap.org