Univention Bugzilla – Attachment 9536 Details for
Bug 47069
Logon failure in Password-Sync via DRS when not using Administrator
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
bug47069.patch
bug47069.patch (text/plain), 2.04 KB, created by
Arvid Requate
on 2018-05-24 16:47:19 CEST
(
hide
)
Description:
bug47069.patch
Filename:
MIME Type:
Creator:
Arvid Requate
Created:
2018-05-24 16:47:19 CEST
Size:
2.04 KB
patch
obsolete
>diff --git a/services/univention-ad-connector/modules/univention/connector/ad/__init__.py b/services/univention-ad-connector/modules/univention/connector/ad/__init__.py >index 02f1293f37..7358bdd4eb 100644 >--- a/services/univention-ad-connector/modules/univention/connector/ad/__init__.py >+++ b/services/univention-ad-connector/modules/univention/connector/ad/__init__.py >@@ -773,6 +773,16 @@ class ad(univention.connector.ucs): > > ud.debug(ud.LDAP, ud.PROCESS, 'Internal group membership cache was created') > >+ if self.lo_ad.binddn >+ try: >+ result = self.lo_ad.search(base=self.lo_ad.binddn, scope='base'): >+ self.ad_ldap_bind_username = result[0][1]['sAMAccountName'][0] >+ except Exception, msg: >+ print "Failed to get SID from AD: %s" % msg >+ sys.exit(1) >+ else: >+ self.ad_ldap_bind_username = self.baseConfig['%s/ad/ldap/binddn' % self.CONFIGBASENAME] >+ > try: > result = self.lo_ad.search(filter='(objectclass=domain)', > base=ad_ldap_base, scope='base', attr=['objectSid']) >@@ -803,18 +813,13 @@ class ad(univention.connector.ucs): > > def open_drs_connection(self): > >- if self.lo_ad.binddn: >- bind_username = explode_unicode_dn(self.lo_ad.binddn, 1)[0] >- else: >- bind_username = self.baseConfig['%s/ad/ldap/binddn' % self.CONFIGBASENAME] >- > lp = LoadParm() > net = Net(creds=None, lp=lp) > > repl_creds = Credentials() > repl_creds.guess(lp) > repl_creds.set_kerberos_state(DONT_USE_KERBEROS) >- repl_creds.set_username(bind_username) >+ repl_creds.set_username(self.ad_ldap_bind_username) > repl_creds.set_password(self.lo_ad.bindpw) > > binding_options = "seal,print" >@@ -845,12 +850,7 @@ class ad(univention.connector.ucs): > creds.guess(lp) > creds.set_kerberos_state(DONT_USE_KERBEROS) > >- if self.lo_ad.binddn: >- bind_username = explode_unicode_dn(self.lo_ad.binddn, 1)[0] >- else: >- bind_username = self.baseConfig['%s/ad/ldap/binddn' % self.CONFIGBASENAME] >- >- creds.set_username(bind_username) >+ creds.set_username(self.ad_ldap_bind_username) > creds.set_password(self.lo_ad.bindpw) > > binding_options = "\pipe\samr"
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 47069
:
9536
|
9537