ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] OpenLdap и реплика
@ 2002-10-17  5:51 Pavel Stoliarov
  2002-10-17 10:17 ` Pavel Stoliarov
  0 siblings, 1 reply; 2+ messages in thread
From: Pavel Stoliarov @ 2002-10-17  5:51 UTC (permalink / raw)
  To: community

 Привет всем !
 У кого-нибудь работает реплицирование между 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



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Comm] OpenLdap и реплика
  2002-10-17  5:51 [Comm] OpenLdap и реплика Pavel Stoliarov
@ 2002-10-17 10:17 ` Pavel Stoliarov
  0 siblings, 0 replies; 2+ messages in thread
From: Pavel Stoliarov @ 2002-10-17 10:17 UTC (permalink / raw)
  To: community

17 Октябрь 2002 10:51, Pavel Stoliarov написал:
>  Привет всем !
>  У кого-нибудь работает реплицирование между 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";

  решил проблему ,  надо было написасть updatedn "cn=Manager,dc=tzto,dc=rus"  
без знака равно 

-- 
Best regards 
Pavel



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-10-17 10:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-17  5:51 [Comm] OpenLdap и реплика Pavel Stoliarov
2002-10-17 10:17 ` Pavel Stoliarov

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