The Samba-Bugzilla – Attachment 305 Details for
Bug 445
Add user script is not called when kerberos authentication is used
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch.
look (text/plain), 1.08 KB, created by
Jeremy Allison
on 2003-12-05 18:32:48 UTC
(
hide
)
Description:
Proposed patch.
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2003-12-05 18:32:48 UTC
Size:
1.08 KB
patch
obsolete
>? .configure.swp >? client_oplocks.txt >? dosmode.patch >? macosxfs-integration.patch >? patch_tdbsam.diffs >Index: auth/auth_util.c >=================================================================== >RCS file: /data/cvs/samba/source/auth/auth_util.c,v >retrieving revision 1.39.2.49 >diff -u -r1.39.2.49 auth_util.c >--- auth/auth_util.c 22 Nov 2003 13:19:36 -0000 1.39.2.49 >+++ auth/auth_util.c 6 Dec 2003 02:31:25 -0000 >@@ -965,7 +965,7 @@ > > struct passwd *smb_getpwnam( char *domuser ) > { >- struct passwd *pw; >+ struct passwd *pw = NULL; > char *p; > fstring mapped_username; > >@@ -981,10 +981,20 @@ > p += 1; > fstrcpy( mapped_username, p ); > map_username( mapped_username ); >- return Get_Pwnam(mapped_username); >+ pw = Get_Pwnam(mapped_username); >+ if (!pw) { >+ /* Create local user if requested. */ >+ p = strchr( mapped_username, *lp_winbind_separator() ); >+ if (p) >+ p += 1; >+ else >+ p = mapped_username; >+ auth_add_user_script(NULL, p); >+ return Get_Pwnam(p); >+ } > } > >- return NULL; >+ return pw; > } > > /***************************************************************************
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 445
:
147
| 305