diff options
author | Martin Basti <mbasti@redhat.com> | 2014-08-27 15:06:42 +0200 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2014-09-26 13:21:15 +0200 |
commit | 29ba9d9d26b92498902d40d71adae193308b5c92 (patch) | |
tree | 9b188a66b8ff28869102fe2263dd5902916d0204 /install/tools/ipa-adtrust-install | |
parent | dea825fd9cdd36a6fa371b2a5e1d1f35c177c6ef (diff) | |
download | freeipa-29ba9d9d26b92498902d40d71adae193308b5c92.tar.gz freeipa-29ba9d9d26b92498902d40d71adae193308b5c92.tar.xz freeipa-29ba9d9d26b92498902d40d71adae193308b5c92.zip |
Refactoring of autobind, object_exists
Required to prevent code duplications
ipaldap.IPAdmin now has method do_bind, which tries several bind methods
ipaldap.IPAClient now has method object_exists(dn)
Reviewed-By: Jan Cholasta <jcholast@redhat.com>
Diffstat (limited to 'install/tools/ipa-adtrust-install')
-rwxr-xr-x | install/tools/ipa-adtrust-install | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/install/tools/ipa-adtrust-install b/install/tools/ipa-adtrust-install index 7b616c1b6..6e55bbe3e 100755 --- a/install/tools/ipa-adtrust-install +++ b/install/tools/ipa-adtrust-install @@ -25,7 +25,7 @@ from ipaserver.install import adtrustinstance from ipaserver.install.installutils import * from ipaserver.install import service from ipapython import version -from ipapython import ipautil, sysrestore +from ipapython import ipautil, sysrestore, ipaldap from ipalib import api, errors, util from ipapython.config import IPAOptionParser import krbV @@ -405,7 +405,7 @@ def main(): smb = adtrustinstance.ADTRUSTInstance(fstore) smb.realm = api.env.realm - smb.autobind = service.ENABLED + smb.autobind = ipaldap.AUTOBIND_ENABLED smb.setup(api.env.host, ip_address, api.env.realm, api.env.domain, netbios_name, reset_netbios_name, options.rid_base, options.secondary_rid_base, |