Univention Bugzilla – Attachment 9086 Details for
Bug 45127
The transport connection is now disconnected
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
password_reconnect.patch.txt
password_reconnect.patch.txt (text/plain), 1.17 KB, created by
Stefan Gohmann
on 2017-08-03 07:03:57 CEST
(
hide
)
Description:
password_reconnect.patch.txt
Filename:
MIME Type:
Creator:
Stefan Gohmann
Created:
2017-08-03 07:03:57 CEST
Size:
1.17 KB
patch
obsolete
>Index: password.py >=================================================================== >--- password.py (Revision 79693) >+++ password.py (Arbeitskopie) >@@ -156,13 +156,13 @@ > return info > > >-def get_password_from_ad(connector, user_dn): >+def get_password_from_ad(connector, user_dn, reconnect=False): > _d = ud.function('ldap.ad.get_password_from_ad') > ud.debug(ud.LDAP, ud.INFO, "get_password_from_ad: Read password from AD: %s" % user_dn) > > nt_hash = None > >- if not connector.drs: >+ if not connector.drs or reconnect: > connector.open_drs_connection() > > req8 = drsuapi.DsGetNCChangesRequest8() >@@ -378,7 +378,10 @@ > ud.debug(ud.LDAP, ud.INFO, "password_sync: AD pwdlastset: %s (original (%s))" % (ad_password_last_set, pwdLastSet)) > ud.debug(ud.LDAP, ud.INFO, "password_sync: UCS pwdlastset: %s" % (sambaPwdLastSet)) > >- res = get_password_from_ad(connector, univention.connector.ad.compatible_modstring(object['dn'])) >+ try: >+ res = get_password_from_ad(connector, univention.connector.ad.compatible_modstring(object['dn'])) >+ except: >+ res = get_password_from_ad(connector, univention.connector.ad.compatible_modstring(object['dn']), reconnect=True) > > if res: > ntPwd_ucs = ''
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 45127
: 9086