The Samba-Bugzilla – Attachment 20 Details for
Bug 130
cannot use homes alias
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Generic solution to the 'no [homes]' problem
homedir.patch (text/plain), 1.22 KB, created by
Andrew Bartlett
on 2003-06-06 04:20:22 UTC
(
hide
)
Description:
Generic solution to the 'no [homes]' problem
Filename:
MIME Type:
Creator:
Andrew Bartlett
Created:
2003-06-06 04:20:22 UTC
Size:
1.22 KB
patch
obsolete
>Index: smbd/password.c >=================================================================== >RCS file: /home/cvs/samba/source/smbd/password.c,v >retrieving revision 1.248.2.11 >diff -u -r1.248.2.11 password.c >--- smbd/password.c 13 May 2003 15:29:23 -0000 1.248.2.11 >+++ smbd/password.c 6 Jun 2003 09:52:54 -0000 >@@ -168,16 +168,24 @@ > { > /* Keep the homedir handy */ > const char *homedir = pdb_get_homedir(server_info->sam_account); >- const char *unix_homedir = pdb_get_unix_homedir(server_info->sam_account); > const char *logon_script = pdb_get_logon_script(server_info->sam_account); >+ >+ if (!IS_SAM_DEFAULT(server_info->sam_account, PDB_UNIXHOMEDIR)) { >+ const char *unix_homedir = pdb_get_unix_homedir(server_info->sam_account); >+ if (unix_homedir) { >+ vuser->unix_homedir = smb_xstrdup(unix_homedir); >+ } >+ } else { >+ struct passwd *passwd = getpwnam_alloc(vuser->user.unix_name); >+ if (passwd) { >+ vuser->unix_homedir = smb_xstrdup(passwd->pw_dir); >+ } >+ passwd_free(&passwd); >+ } >+ > if (homedir) { > vuser->homedir = smb_xstrdup(homedir); > } >- >- if (unix_homedir) { >- vuser->unix_homedir = smb_xstrdup(unix_homedir); >- } >- > if (logon_script) { > vuser->logon_script = smb_xstrdup(logon_script); > }
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 130
: 20