diff --git a/management/univention-directory-manager-modules/modules/univention/admin/uldap.py b/management/univention-directory-manager-modules/modules/univention/admin/uldap.py index b43cf9d..1100483 100644 --- a/management/univention-directory-manager-modules/modules/univention/admin/uldap.py +++ b/management/univention-directory-manager-modules/modules/univention/admin/uldap.py @@ -228,6 +228,30 @@ def getPrintable_depth(self, short=1, long=0, trailingslash=1): class access: + @propery + def binddn(self): + return self.lo.binddn + + @propery + def bindpw(self): + return self.lo.bindpw + + @propery + def host(self): + return self.lo.host + + @propery + def port(self): + return self.lo.port + + @propery + def base(self): + return self.lo.base + + @propery + def start_tls(self): + return self.lo.start_tls + def __init__(self, host='localhost', port=None, base='', binddn='', bindpw='', start_tls=2, lo=None, follow_referral=False): if lo: self.lo = lo @@ -240,12 +264,6 @@ def __init__(self, host='localhost', port=None, base='', binddn='', bindpw='', s raise univention.admin.uexceptions.authFail(_("Authentication failed")) except ldap.UNWILLING_TO_PERFORM: raise univention.admin.uexceptions.authFail(_("Authentication failed")) - self.host = self.lo.host - self.port = self.lo.port - self.base = self.lo.base - self.binddn = self.lo.binddn - self.bindpw = self.lo.bindpw - self.start_tls = start_tls self.require_license = 0 self.allow_modify = 1 self.licensetypes = ['UCS']