Univention Bugzilla – Attachment 10342 Details for
Bug 51182
ldap-group-to-file: huge performance loss by using ldap/server/addition
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
prefer local ldap server
51182_prefer_local_ldap_server.patch (text/plain), 917 bytes, created by
Daniel Tröder
on 2020-04-29 11:32:23 CEST
(
hide
)
Description:
prefer local ldap server
Filename:
MIME Type:
Creator:
Daniel Tröder
Created:
2020-04-29 11:32:23 CEST
Size:
917 bytes
patch
obsolete
>diff --git base/univention-python/modules/uldap.py base/univention-python/modules/uldap.py >index 272f5d194b..259b7de12e 100644 >--- base/univention-python/modules/uldap.py >+++ base/univention-python/modules/uldap.py >@@ -175,9 +175,10 @@ def getMachineConnection(start_tls=2, decode_ignorelist=[], ldap_master=True, se > # Connect to ldap/server/name > port = int(ucr.get('ldap/server/port', '7389')) > servers = [ucr.get('ldap/server/name')] >- servers += ucr.get('ldap/server/addition','').split() >+ additional_servers = ucr.get('ldap/server/addition', '').split() > if random_server: >- random.shuffle(servers) >+ random.shuffle(additional_servers) >+ servers.extend(additional_servers) > for server in servers: > try: > return access(host=server, port=port, base=ucr['ldap/base'], binddn=ucr['ldap/hostdn'], bindpw=bindpw, start_tls=start_tls, decode_ignorelist=decode_ignorelist, reconnect=reconnect)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 51182
: 10342