The Samba-Bugzilla – Attachment 114 Details for
Bug 305
Authentication fails for mixed-mode DC w/ transitive trusts
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Always use lp_realm() for our realm.
winbind-correct-realm.patch (text/plain), 1.19 KB, created by
Andrew Bartlett
on 2003-08-29 23:09:24 UTC
(
hide
)
Description:
Always use lp_realm() for our realm.
Filename:
MIME Type:
Creator:
Andrew Bartlett
Created:
2003-08-29 23:09:24 UTC
Size:
1.19 KB
patch
obsolete
>Index: nsswitch/winbindd_ads.c >=================================================================== >RCS file: /home/cvs/samba/source/nsswitch/winbindd_ads.c,v >retrieving revision 1.43.2.18 >diff -u -r1.43.2.18 winbindd_ads.c >--- nsswitch/winbindd_ads.c 15 Aug 2003 04:42:03 -0000 1.43.2.18 >+++ nsswitch/winbindd_ads.c 30 Aug 2003 06:08:02 -0000 >@@ -28,10 +28,6 @@ > #undef DBGC_CLASS > #define DBGC_CLASS DBGC_WINBIND > >-/* the realm of our primary LDAP server */ >-static char *primary_realm; >- >- > /* > return our ads connections structure for a domain. We keep the connection > open to make things faster >@@ -58,10 +54,8 @@ > SAFE_FREE(ads->auth.password); > ads->auth.password = secrets_fetch_machine_password(lp_workgroup(), NULL, NULL); > >- if (primary_realm) { >- SAFE_FREE(ads->auth.realm); >- ads->auth.realm = strdup(primary_realm); >- } >+ SAFE_FREE(ads->auth.realm); >+ ads->auth.realm = strdup(lp_realm()); > > status = ads_connect(ads); > if (!ADS_ERR_OK(status) || !ads->config.realm) { >@@ -82,11 +76,6 @@ > } > } > return NULL; >- } >- >- /* remember our primary realm for trusted domain support */ >- if (!primary_realm) { >- primary_realm = strdup(ads->config.realm); > } > > domain->private = (void *)ads;
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 Raw
Actions:
View
Attachments on
bug 305
: 114