ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Pavel Stoliarov <mylinux02@mail.ru>
To: community@altlinux.ru
Subject: [Comm] OpenLdap и реплика
Date: Thu, 17 Oct 2002 10:51:47 +0500
Message-ID: <200210171051.47537.mylinux02@mail.ru> (raw)

 Привет всем !
 У кого-нибудь работает реплицирование между ldap - серверами ?
 у меня както некорректно работает :
    Master - server , slapd.conf :
.................................
................................
#######################################################################
# ldbm database definitions
#######################################################################

database        ldbm
suffix          "dc=tzto,dc=rus"
rootdn          "cn=Manager,dc=tzto,dc=rus"

replica host=gate.tzto.rus:389
        binddn="cn=Manager,dc=tzto,dc=rus"
        suffix="dc=tzto,dc=rus"
        bindmethod=simple credentials=passwd
replogfile /var/log/ldap/rpl.log
..................................
................................
   Slave server, slapd.conf:
.................................
.................................
#######################################################################
# ldbm database definitions
#######################################################################

database        ldbm
suffix          "dc=tzto,dc=rus"
rootdn          "cn=Manager,dc=tzto,dc=rus"

updatedn="cn=Manager,dc=tzto,dc=rus";
................................
................................

добавляю на мастер - сервере следующую запись :
dn: uid=Ivanov, ou=Users, dc=tzto, dc=rus
cn: Ivanov
sn: Ivanov
objectClass: inetOrgPerson
mail: ivanov@tzto.rus

Все проходит нормально - на slave появляется такая же запись 

пробую добавить следующее :

dn: uid=Ivanov, ou=Users, dc=tzto, dc=rus
cn: Ivanov
sn: Ivanov
objectClass: inetOrgPerson
objectClass: account
mail: ivanov@tzto.rus
uid: Ivanov

В результате запись добавляется только на мастер-сервере 
на slave в логах читаю:
 Oct 17 10:47:58 gate slapd[20482]: connection_get(15): got connid=1
Oct 17 10:47:58 gate slapd[20482]: connection_read(15): checking for input on 
id=1
Oct 17 10:47:58 gate slapd[20487]: do_add
Oct 17 10:47:58 gate slapd[20487]: do_add: ndn 
(UID=IVANOV,OU=USERS,DC=TZTO,DC=RUS)
Oct 17 10:47:58 gate slapd[20487]: => get_ctrls
Oct 17 10:47:58 gate slapd[20487]: => get_ctrls: oid="2.16.840.1.113730.3.4.2" 
(noncritical)
Oct 17 10:47:58 gate slapd[20482]: ber_get_next on fd 15 failed errno=11 
(Resource temporarily unavailable)
Oct 17 10:47:58 gate slapd[20487]: <= get_ctrls: 1 0
Oct 17 10:47:58 gate slapd[20482]: daemon: select: listen=6 active_threads=1 
tvp=NULL
Oct 17 10:47:58 gate slapd[20487]: conn=1 op=55 ADD 
dn="UID=IVANOV,OU=USERS,DC=TZTO,DC=RUS"
Oct 17 10:47:58 gate slapd[20482]: daemon: select: listen=7 active_threads=1 
tvp=NULL
Oct 17 10:47:58 gate slapd[20487]: send_ldap_result: conn=1 op=55 p=3
Oct 17 10:47:58 gate slapd[20487]: send_ldap_result: 20::attribute provided 
more than once
Oct 17 10:47:58 gate slapd[20487]: send_ldap_response: msgid=56 tag=105 err=20
Oct 17 10:47:58 gate slapd[20487]: conn=1 op=55 RESULT tag=105 err=20 
text=attribute provided more than once


Подскажите пожалуйста в чем тут проблема ?

Если вышеприведенный LDIF файл вручную добавить на slave- сервере с помощью 
команды ldapadd то запись добавляется корректно 
    
-- 
Best regards 
Pavel



             reply	other threads:[~2002-10-17  5:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-17  5:51 Pavel Stoliarov [this message]
2002-10-17 10:17 ` Pavel Stoliarov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200210171051.47537.mylinux02@mail.ru \
    --to=mylinux02@mail.ru \
    --cc=community@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git