summaryrefslogtreecommitdiffstats
path: root/ipa-python/rpcclient.py
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2008-02-26 13:51:56 -0500
committerRob Crittenden <rcritten@redhat.com>2008-02-26 13:51:56 -0500
commitd6d12e9dc597d6637ae49057a44b51476ff876b0 (patch)
treeac52e58ef107c3e01addfd3060c8ef409d582a8b /ipa-python/rpcclient.py
parent111a475b1527cf08d664070db20a7cd155ff7cea (diff)
downloadfreeipa-d6d12e9dc597d6637ae49057a44b51476ff876b0.tar.gz
freeipa-d6d12e9dc597d6637ae49057a44b51476ff876b0.tar.xz
freeipa-d6d12e9dc597d6637ae49057a44b51476ff876b0.zip
Require that service principals resolve to a DNS A record.
There is a --force option for those who know what they are doing. 433483
Diffstat (limited to 'ipa-python/rpcclient.py')
-rw-r--r--ipa-python/rpcclient.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipa-python/rpcclient.py b/ipa-python/rpcclient.py
index 2359c5d6..c3835568 100644
--- a/ipa-python/rpcclient.py
+++ b/ipa-python/rpcclient.py
@@ -704,11 +704,11 @@ class RPCClient:
return ipautil.unwrap_binary_data(result)
- def add_service_principal(self, princ_name):
+ def add_service_principal(self, princ_name, force):
server = self.setup_server()
try:
- result = server.add_service_principal(princ_name)
+ result = server.add_service_principal(princ_name, force)
except xmlrpclib.Fault, fault:
raise ipaerror.gen_exception(fault.faultCode, fault.faultString)
except socket.error, (value, msg):