View | Details | Raw Unified | Return to bug 20026
Collapse All | Expand All

(-)univention-python/modules/uldap.py (-2 / +4 lines)
 Lines 133-142    Link Here 
133
133
134
		self.port = port
134
		self.port = port
135
135
136
		if not self.port:
136
		if not self.port:	## if no explicit port is given
137
			ucr = ConfigRegistry()
137
			ucr = ConfigRegistry()
138
			ucr.load()
138
			ucr.load()
139
			self.port = int(ucr.get('ldap/server/port', 389))
139
			self.port = int(ucr.get('ldap/server/port', 7389))	## take UCR value
140
			if use_ldaps and self.port == "7389":				## adjust the standard port for ssl
141
					self.port = "7636"
140
142
141
		# http://www.openldap.org/faq/data/cache/605.html
143
		# http://www.openldap.org/faq/data/cache/605.html
142
		self.protocol = 'ldap'
144
		self.protocol = 'ldap'

Return to bug 20026