diff options
author | Rob Crittenden <rcritten@redhat.com> | 2008-03-31 18:27:42 -0400 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2008-03-31 18:27:42 -0400 |
commit | 98f8a313201cdf2c7a2cb573c6e74de18281e2d5 (patch) | |
tree | e0128b6d3881cb1e35d6b6b58b4f15f907dd3c9a /ipa-server | |
parent | af50f341adea4a10b5b6aa8e43193231ea5d7c59 (diff) | |
download | freeipa-98f8a313201cdf2c7a2cb573c6e74de18281e2d5.tar.gz freeipa-98f8a313201cdf2c7a2cb573c6e74de18281e2d5.tar.xz freeipa-98f8a313201cdf2c7a2cb573c6e74de18281e2d5.zip |
No need to use a regular expression to find the replication host
430015
Diffstat (limited to 'ipa-server')
-rw-r--r-- | ipa-server/ipa-install/ipa-replica-manage | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ipa-server/ipa-install/ipa-replica-manage b/ipa-server/ipa-install/ipa-replica-manage index 6761a0e53..dd58907c5 100644 --- a/ipa-server/ipa-install/ipa-replica-manage +++ b/ipa-server/ipa-install/ipa-replica-manage @@ -57,9 +57,7 @@ def list_masters(replman, verbose): for dn in dns: entry = replman.conn.search_s(dn, ldap.SCOPE_SUBTREE)[0] - cn = entry.cn - other = re.search("meTo([a-zA-Z\.]*)[0-9]*", cn).groups()[0] - print other + print entry.getValue('nsds5replicahost') if verbose: print " last init status: %s" % entry.nsds5replicalastinitstatus |