On Wed, 19 Jan 2011 22:22:45 +0530 Aravind GV <[email protected]> wrote:
> Hi Simo, > > Thanks for responding to my email. I > updated /usr/lib/python2.7/site-packages/ipaserver/install/dsinstance.py > with the patch ie added extra line self.subject_base = None > > Now i am getting different error > > [root@dirsrv ~]# ipa-replica-manage connect --winsync --binddn > CN=agv,OU=Users,DC=bgkerb,DC=test02,DC=com --cacert /root/bgkerb.cer > bgkerb.test02.com --passsync asd312ASD --bindpw asd312ASD -v > Directory Manager password: > INFO:root:args=/sbin/service dirsrv stop > INFO:root:stdout=Shutting down dirsrv: > AGV-COM...[ OK ] > PKI-IPA...[ OK ] > > *INFO:root:stderr=* > *unexpected error: 'Env' object has no attribute 'ra_plugin'* > > > > Regards, > AGV > > On Wed, Jan 19, 2011 at 8:29 PM, Simo Sorce <[email protected]> wrote: > > > On Wed, 19 Jan 2011 09:28:45 -0500 > > Simo Sorce <[email protected]> wrote: > > > > > On Wed, 19 Jan 2011 12:52:54 +0530 > > > Aravind GV <[email protected]> wrote: > > > > > > > Hi All > > > > > > > > Please help me in adding a synchronization agreement. I > > > > followed ( > > > > > > http://freeipa.org/docs/2.0.0/Installation_Deployment_Guide/en-US/html/) > > > > but the example given in 4.4. Creating Synchronization > > > > Agreements is not correct. There is no more option add in > > > > ipa-replica-manage command. After googling they suggested me to > > > > use connect instead of add. This command worked but it stopped > > > > directory server and thorws following errors. Jakub Hrozek > > > > suggested me to get logs from /var/log/ipareplica-install.log. > > > > But this file is not at all created only ipaclient-install.log > > > > ipaserver-install.log are the two files in that there is no > > > > reference to ipa-replica-mange command. > > > > > > > > I have installed ipa v2 from http://jdennis.fedorapeople.org > > > > repo. > > > > > > > > [root@dirsrv ~]# ipa-replica-manage connect --winsync --binddn > > > > CN=agv,OU=Users,DC=bgkerb,DC=test02,DC=com --bindpw asd312ASD > > > > --cacert /root/bgkerb.cer 10.0.65.28 -v --passsync asd312ASD > > > > INFO:root:args=/sbin/service dirsrv stop > > > > INFO:root:stdout=Shutting down dirsrv: > > > > AGV-COM...[ OK ] > > > > PKI-IPA...[ OK ] > > > > > > > > INFO:root:stderr= > > > > unexpected error: DsInstance instance has no attribute > > > > 'subject_base' > > > > > > > > > I have opened ticket 807[1] to track this. > > > Would you be available to test a patch ? > > > > > > Simo. > > > > > > [1] https://fedorahosted.org/freeipa/ticket/807 > > > > > > > Can you test this patch and see if it solves your issue completely ? > > > > You should be able to manually fix it without having to redo the > > whole install by simplky editing the dsinstance.py file and adding > > the line you see in the patch. > > > > Simo. > > > > -- > > Simo Sorce * Red Hat, Inc * New York > > Attached a corrected patch that should fix this second problem too. Simo. -- Simo Sorce * Red Hat, Inc * New York
>From e61bc661f49470b6be509b6187313f70edfa09f9 Mon Sep 17 00:00:00 2001 From: Simo Sorce <[email protected]> Date: Wed, 19 Jan 2011 09:53:59 -0500 Subject: [PATCH] Fix ipa-replica-manage regressions with winsync Avoids ipa-replica-manage to throw up errors. Fixes: https://fedorahosted.org/freeipa/ticket/807 --- install/tools/ipa-replica-manage | 7 ++++++- ipaserver/install/dsinstance.py | 1 + 2 files changed, 7 insertions(+), 1 deletions(-) diff --git a/install/tools/ipa-replica-manage b/install/tools/ipa-replica-manage index 80974545761399cec46032c8ae2b6689aa4ff7fd..20eb93c26748c71e097a38f40cb58c0215a643e1 100755 --- a/install/tools/ipa-replica-manage +++ b/install/tools/ipa-replica-manage @@ -26,7 +26,7 @@ from ipapython import ipautil from ipaserver.install import replication, dsinstance, installutils from ipaserver import ipaldap from ipapython import version -from ipalib import errors, util +from ipalib import api, errors, util CACERT = "/etc/ipa/ca.crt" @@ -355,6 +355,11 @@ def force_sync(realm, thishost, fromhost, dirman_passwd): def main(): options, args = parse_options() + # Just initialize the environment. This is so the installer can have + # access to the plugin environment + api.bootstrap(in_server=True) + api.finalize() + dirman_passwd = None realm = krbV.default_context().default_realm diff --git a/ipaserver/install/dsinstance.py b/ipaserver/install/dsinstance.py index 859d5c8ff737dad3ba96b162e90c7d1bae4e0d11..4fd7a00279c73c5b41e2d7ad5999c1af91eefbf8 100644 --- a/ipaserver/install/dsinstance.py +++ b/ipaserver/install/dsinstance.py @@ -180,6 +180,7 @@ class DsInstance(service.Service): self.dercert = None self.idstart = None self.idmax = None + self.subject_base = None if realm_name: self.suffix = util.realm_to_suffix(self.realm_name) self.__setup_sub_dict() -- 1.7.3.4
_______________________________________________ Freeipa-users mailing list [email protected] https://www.redhat.com/mailman/listinfo/freeipa-users
