The result is:
modifying entry cn=replication_netscaperoot,cn=replica,cn="o=Netsc aperoot",cn=mapping tree,cn=config
modify complete
Then, the error in the console is:
invalid credentials
in 'status' tab, 'replication status'.
I can confirm that the credentials are OK because I used the same file repluser.ldif in both servers.
Also, when I try to open the console in SERVER2, I got this error:
Cannot connect to the Admin Server "http://SERVER2:9830/"
The URL is not correct or the server is not running.
I restarted the SERVER2 without success.
Thanks
From: benetage@hotmail.com
To: fedora-directory-users@redhat.com
Date: Wed, 13 Aug 2008 15:47:33 -0400
Subject: [Fedora-directory-users] (no subject)
> Rich Megginson wrote:
>> Mister Anonyme wrote:
>> Hi,
>> I tried to follow the guidelines here:
>> http://www.redhat.com/docs/manuals/dir-server/ag/8.0/Managing_Replication-Replicating-ADS-for-Failover.html
>> And it doesn't work.
>
>Can you be more specific?
There you go...
SERVER1 is first server, SERVER2 is second server (failover)
========================================
First step (from the doc):* Install and configure the first Directory Server instance.
========================================
******
file.inf
******
FullMachineName = SERVER1
AdminDomain = MY DOMAIN NAME
SuiteSpotUserID = nobody
SuiteSpotGroup = nobody
ConfigDirectoryLdapURL = ldap://SERVER1:389/o=NetscapeRoot
ConfigDirectoryAdminID = admin
ConfigDirectoryAdminPwd = MY PASSWORD
[admin]
ServerAdminID = admin
ServerAdminPwd = MY PASSWORD
SysUser = nobody
ServerIpAddress = MY SERVER IP ADDRESS
Port = 9830
Here's the log:
[...]
+Processing repluser.ldif ...
+++check_and_add_entry: Entry not found cn=replication manager,cn=config error No such object
+Entry cn=replication manager,cn=config is added
+Processing changelog.ldif ...
+++check_and_add_entry: Entry not found cn=changelog5,cn=config error No such object
+Entry cn=changelog5,cn=config is added
+Processing replica.ldif ...
+++check_and_add_entry: Entry not found cn=replica,cn="o=NetscapeRoot",cn=mapping tree,cn=config error No such object
+ERROR: adding an entry cn=replica,cn="o=NetscapeRoot",cn=mapping tree,cn=config failed, error: No such object
dn: cn=replica,cn="o=NetscapeRoot",cn=mapping tree,cn=config
objectclass: top
objectclass: nsds5replica
objectclass: extensibleObject
cn: replica
nsds5replicaroot: o=NetscapeRoot
nsds5replicaid: 1
nsds5replicatype: 3
nsds5flags: 1
nsds5replicapurgedelay: 604800
nsds5replicabinddn: cn=replication manager,cn=config
+ERROR: There was an error processing entry cn=replica,cn="o=NetscapeRoot",cn=mapping tree,cn=config
+Cannot continue processing entries.
So, I created another file (the documentation didn't mention this so I don't know if it's the 'good' procedure...):
I added just before the replica.ldif in the "file.inf", [slapd] section.
Then:
# /usr/sbin/setup-ds-admin -s -f file.inf
It works well until...:
[...]
+[13/Aug/2008:15:07:17 -0400] NSMMReplicationPlugin - _replica_configure_ruv: replication broken for entry (o=NetscapeRoot); LDAP error - 1
+[13/Aug/2008:15:07:17 -0400] NSMMReplicationPlugin - Unable to configure replica o=NetscapeRoot:
+[13/Aug/2008:15:07:17 -0400] - slapd started.* Listening on All Interfaces port 389 for LDAP requests
+Your new directory server has been started.
Your new DS instance 'INSTANCENAME' was successfully created.
Creating the configuration directory server . . .
The suffix 'o=NetscapeRoot' already exists.* Config entry DN 'cn="o=NetscapeRoot",cn=mapping tree,cn=config'.
Failed to create the configuration directory server
Exiting . . .
So, it won't process LDIF files that I created according to the documentation, but if I force the creation of NetscapeRoot so the replica.ldif can be processed, it won't continue because it already exists...
Great...*
I removed replica_1.ldif, replica.ldif, replagreement.ldif from file.inf and ran this agan:
# /usr/sbin/setup-ds-admin -s -f file.inf
[...]
The admin server was successfully started.
Admin server was successfully created, configured, and started.
Then, I manually created a replica and a replica agreement:
This is when I gave up and decided to create a NetscapeRoot's replication directly from the Java console.* I mean, I installed two LDAP servers with the second server that it uses the Configuration Server from the first server.*
The replication works very well between two servers (only if I setup from the Java console) but when I want to do the the step 4 from the doc (create local Administration Server), it doesn't work, the script 'register-ds-admin.pl' always fails.
Thank you very much for your help!
--
Fedora-directory-users mailing list
Fedora-directory-users@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-directory-users