LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-01-2010, 03:00 PM   #1
shashij
LQ Newbie
 
Registered: Mar 2010
Posts: 9

Rep: Reputation: 0
MMR configuration with openldap2-2.3.32-0.27 on SLES10 SP2


Hi,

I have installed openldap2-2.3.32-0.27 on 2 machines (SLES 10 SP2). I want to configure MMR for these 2 machines.

I am not able to add any ldif file to any master. My slapd.conf on one machine contains (only uncommented lines):

include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/inetorgperson.schema
include /etc/openldap/schema/rfc2307bis.schema
include /etc/openldap/schema/yast.schema

pidfile /var/run/slapd/slapd.pid
argsfile /var/run/slapd/slapd.args
modulepath /usr/lib/openldap/modules

access to dn.base=""
by * read
access to dn.base="cn=Subschema"
by * read
access to attrs=userPassword,userPKCS12
by self write
by * auth
access to attrs=shadowLastChange
by self write
by * read
access to *
by * read
database config
rootdn cn=config
rootpw secret
database monitor
rootdn cn=monitor
rootpw secret

loglevel 7
database bdb
suffix "dc=ldapmmr,dc=com"
checkpoint 1024 5
cachesize 10000
rootdn "cn=Manager,dc=ldapmmr,dc=com"
rootpw secret
directory /var/lib/ldap

serverid 1 ldap://ldaptest15.ldapmmr.com
serverid 2 ldap://ldaptest14.ldapmmr.com
syncrepl rid=002
provider=ldap://ldaptest14.ldapmmr.com
binddn="cn=Manager,dc=ldapmmr,dc=com"
bindmethod=simple
credentials=secret
searchbase="dc=ldapmmr,dc=com"
type=refreshAndPersist
interval=00:00:00:10
retry="60 +"
sizelimit=unlimited
timeout=1

updateref ldap://ldaptest15.ldapmmr.com
mirrormode true
overlay syncprov
syncprov-checkpoint 100 10
syncprov-sessionlog 100
index objectClass eq
index entryCSN,entryUUID eq
index cn,mail,surname,givenname eq,subinitial
index uidNumber,gidNumber,memberuid,member,uniqueMember eq
index uid eq,subinitial
limits group="cn=replicator accounts,ou=group,dc=ldapmmr,dc=com"
size=unlimited
time=unlimited

Following 3 lines are different on other master:
syncrepl rid=001
provider=ldap://ldaptest15.ldapmmr.com
updateref ldap://ldaptest14.ldapmmr.com


test2:~ # ldapadd -h ldaptest15 -p 389 -D "cn=Manager,dc=ldapmmr,dc=com" -w secret -x -c -f /ldif/mmr/test.ldif
adding new entry "uid=user20n,ou=people,dc=ldapmmr,dc=com"
ldap_add: Referral (10)
referrals:
ldap://ldaptest15.ldapmmr.com/uid=user20n,ou=people,dc=ldapmmr,dc=com


Test.ldif contains:
dn: uid=user20n,ou=people,dc=ldapmmr,dc=com
userPassword:: VXNFcjE=
uid: user20n
description: Test user
objectClass: inetOrgPerson
sn: Admin
cn: Admin



/var/log/messages from ldaptest15 after trying above command:

Mar 1 10:44:37 ldaptest15 slapd[30485]: >>> slap_listener(ldap:///)
Mar 1 10:44:37 ldaptest15 slapd[30485]: connection_get(22)
Mar 1 10:44:37 ldaptest15 slapd[30485]: connection_get(22): got connid=8
Mar 1 10:44:37 ldaptest15 slapd[30485]: connection_read(22): checking for input on id=8
Mar 1 10:44:37 ldaptest15 slapd[30485]: do_bind
Mar 1 10:44:37 ldaptest15 slapd[30485]: >>> dnPrettyNormal: <cn=Manager,dc=ldapmmr,dc=com>
Mar 1 10:44:37 ldaptest15 slapd[30485]: <<< dnPrettyNormal: <cn=Manager,dc=ldapmmr,dc=com>, <cn=manager,dc=ldapmmr,dc=com>
Mar 1 10:44:37 ldaptest15 slapd[30485]: do_bind: version=3 dn="cn=Manager,dc=ldapmmr,dc=com" method=128
Mar 1 10:44:37 ldaptest15 slapd[30485]: ==> bdb_bind: dn: cn=Manager,dc=ldapmmr,dc=com
Mar 1 10:44:37 ldaptest15 slapd[30485]: do_bind: v3 bind: "cn=Manager,dc=ldapmmr,dc=com" to "cn=Manager,dc=ldapmmr,dc=com"
Mar 1 10:44:37 ldaptest15 slapd[30485]: send_ldap_result: conn=8 op=0 p=3
Mar 1 10:44:37 ldaptest15 slapd[30485]: send_ldap_result: err=0 matched="" text=""
Mar 1 10:44:37 ldaptest15 slapd[30485]: send_ldap_response: msgid=1 tag=97 err=0
Mar 1 10:44:37 ldaptest15 slapd[30485]: connection_get(22)
Mar 1 10:44:37 ldaptest15 slapd[30485]: connection_get(22): got connid=8
Mar 1 10:44:37 ldaptest15 slapd[30485]: connection_read(22): checking for input on id=8
Mar 1 10:44:37 ldaptest15 slapd[30485]: do_add
Mar 1 10:44:37 ldaptest15 slapd[30485]: >>> dnPrettyNormal: <uid=user20n,ou=people,dc=ldapmmr,dc=com>
Mar 1 10:44:37 ldaptest15 slapd[30485]: <<< dnPrettyNormal: <uid=user20n,ou=people,dc=ldapmmr,dc=com>, <uid=user20n,ou=people,dc=ldapmmr,dc=com>
Mar 1 10:44:37 ldaptest15 slapd[30485]: do_add: dn (uid=user20n,ou=people,dc=ldapmmr,dc=com)
Mar 1 10:44:37 ldaptest15 slapd[30485]: bdb_dn2entry("uid=user20n,ou=people,dc=ldapmmr,dc=com")
Mar 1 10:44:37 ldaptest15 slapd[30485]: => bdb_dn2id("uid=user20n,ou=people,dc=ldapmmr,dc=com")
Mar 1 10:44:37 ldaptest15 slapd[30485]: <= bdb_dn2id: get failed: DB_NOTFOUND: No matching key/data pair found (-30989)
Mar 1 10:44:37 ldaptest15 slapd[30485]: bdb_referrals: op=104 target="uid=user20n,ou=people,dc=ldapmmr,dc=com" matched="ou=people,dc=ldapmmr,dc=com"
Mar 1 10:44:37 ldaptest15 slapd[30485]: send_ldap_result: conn=8 op=1 p=3
Mar 1 10:44:37 ldaptest15 slapd[30485]: send_ldap_result: err=10 matched="" text=""
Mar 1 10:44:37 ldaptest15 slapd[30485]: send_ldap_result: referral="ldap://ldaptest15.ldapmmr.com/uid=user20n,ou=people,dc=ldapmmr,dc=com"
Mar 1 10:44:37 ldaptest15 slapd[30485]: send_ldap_response: msgid=2 tag=105 err=10
Mar 1 10:44:37 ldaptest15 slapd[30485]: send_ldap_response: ref="ldap://ldaptest15.ldapmmr.com/uid=user20n,ou=people,dc=ldapmmr,dc=com"
Mar 1 10:44:37 ldaptest15 slapd[30485]: connection_get(22)
Mar 1 10:44:37 ldaptest15 slapd[30485]: connection_get(22): got connid=8
Mar 1 10:44:37 ldaptest15 slapd[30485]: connection_read(22): checking for input on id=8
Mar 1 10:44:37 ldaptest15 slapd[30485]: do_add
Mar 1 10:44:37 ldaptest15 slapd[30485]: >>> dnPrettyNormal: <uid=user15n,ou=people,dc=ldapmmr,dc=com>
Mar 1 10:44:37 ldaptest15 slapd[30485]: <<< dnPrettyNormal: <uid=user15n,ou=people,dc=ldapmmr,dc=com>, <uid=user15n,ou=people,dc=ldapmmr,dc=com>
Mar 1 10:44:37 ldaptest15 slapd[30485]: do_add: dn (uid=user15n,ou=people,dc=ldapmmr,dc=com)
Mar 1 10:44:37 ldaptest15 slapd[30485]: bdb_dn2entry("uid=user15n,ou=people,dc=ldapmmr,dc=com")
Mar 1 10:44:37 ldaptest15 slapd[30485]: => bdb_dn2id("uid=user15n,ou=people,dc=ldapmmr,dc=com")
Mar 1 10:44:37 ldaptest15 slapd[30485]: <= bdb_dn2id: get failed: DB_NOTFOUND: No matching key/data pair found (-30989)
Mar 1 10:44:37 ldaptest15 slapd[30485]: bdb_referrals: op=104 target="uid=user15n,ou=people,dc=ldapmmr,dc=com" matched="ou=people,dc=ldapmmr,dc=com"
Mar 1 10:44:37 ldaptest15 slapd[30485]: send_ldap_result: conn=8 op=2 p=3
Mar 1 10:44:37 ldaptest15 slapd[30485]: send_ldap_result: err=10 matched="" text=""
Mar 1 10:44:37 ldaptest15 slapd[30485]: send_ldap_result: referral="ldap://ldaptest15.ldapmmr.com/uid=user15n,ou=people,dc=ldapmmr,dc=com"
Mar 1 10:44:37 ldaptest15 slapd[30485]: send_ldap_response: msgid=3 tag=105 err=10
Mar 1 10:44:37 ldaptest15 slapd[30485]: send_ldap_response: ref="ldap://ldaptest15.ldapmmr.com/uid=user15n,ou=people,dc=ldapmmr,dc=com"
Mar 1 10:44:37 ldaptest15 slapd[30485]: connection_get(22)
Mar 1 10:44:37 ldaptest15 slapd[30485]: connection_get(22): got connid=8
Mar 1 10:44:37 ldaptest15 slapd[30485]: connection_read(22): checking for input on id=8
Mar 1 10:44:37 ldaptest15 slapd[30485]: ber_get_next on fd 22 failed errno=0 (Success)
Mar 1 10:44:37 ldaptest15 slapd[30485]: do_unbind
Mar 1 10:44:37 ldaptest15 slapd[30485]: connection_closing: readying conn=8 sd=22 for close
Mar 1 10:44:37 ldaptest15 slapd[30485]: connection_close: deferring conn=8 sd=-1
Mar 1 10:44:37 ldaptest15 slapd[30485]: connection_resched: attempting closing conn=8 sd=22
Mar 1 10:44:37 ldaptest15 slapd[30485]: connection_close: conn=8 sd=-1



Any help to fix this issue is appreciated.


Thanks in advance,

Regards,
-Shashank
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Can't access NRM via http or https - SLES10 SP2/OES2 SP1 StupidNewbie Linux - Server 2 06-21-2011 12:17 PM
OpenLDAP2.4.16 incompatible with Berkeley DB 4.7.25 slast Linux - Newbie 14 12-08-2009 05:04 PM
webDAV problem on SLES10 chickenminnie Linux - Newbie 0 12-07-2009 09:11 AM
SLES10 with GA-8IPXDR-E mknirsch Linux - Hardware 2 06-24-2008 04:12 PM
freeRADIUS1.0.1-1 Auth against openLDAP2.0.27-17 ignores LDAP pswd Expire attribute tmolise Linux - Networking 0 09-06-2006 11:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration