The Samba-Bugzilla – Attachment 187 Details for
Bug 406
no supplementary groups if winbind use default domain = True (ADS)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for 'winbind use default domain' & secondary groups
default_domain_2nd_groups.patch (text/plain), 1.56 KB, created by
Gerald (Jerry) Carter (dead mail address)
on 2003-10-07 09:21:00 UTC
(
hide
)
Description:
patch for 'winbind use default domain' & secondary groups
Filename:
MIME Type:
Creator:
Gerald (Jerry) Carter (dead mail address)
Created:
2003-10-07 09:21:00 UTC
Size:
1.56 KB
patch
obsolete
>Index: auth/auth_util.c >=================================================================== >RCS file: /data/cvs/samba/source/auth/auth_util.c,v >retrieving revision 1.39.2.44 >diff -u -r1.39.2.44 auth_util.c >--- auth/auth_util.c 15 Aug 2003 04:42:03 -0000 1.39.2.44 >+++ auth/auth_util.c 7 Oct 2003 16:15:39 -0000 >@@ -644,6 +644,9 @@ > * > * currently this is a hack, as there is no sam implementation that is capable > * of groups. >+ * >+ * NOTE!! This function will fail if you pass in a winbind user without >+ * the domain --jerry > ******************************************************************************/ > > static NTSTATUS get_user_groups(const char *username, uid_t uid, gid_t gid, >@@ -926,8 +929,10 @@ > with just 'username'. This is need for accessing the server > as a trust user that actually maps to a local account */ > >- if ( !passwd ) >- passwd = Get_Pwnam(username); >+ if ( !passwd ) { >+ fstrcpy( dom_user, username ); >+ passwd = Get_Pwnam( dom_user ); >+ } > > if (passwd == NULL) > return NT_STATUS_NO_SUCH_USER; >@@ -935,7 +940,13 @@ > *uid = passwd->pw_uid; > *gid = passwd->pw_gid; > >- *found_username = talloc_strdup(mem_ctx, passwd->pw_name); >+ /* This is pointless -- there is no suport for differeing >+ unix and windows names. Make sure to always store the >+ one we actuall looked up and succeeded. Have I mentioned >+ why I hate the 'winbind use default domain' parameter? >+ --jerry */ >+ >+ *found_username = talloc_strdup(mem_ctx, dom_user); > > return pdb_init_sam_pw(sam_account, passwd); > }
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 406
:
123
|
168
| 187