summaryrefslogtreecommitdiff
path: root/source4/auth/auth_unix.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-12-02 21:14:16 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:47:12 +0100
commit7e298580e06a5b9a0c1210937af47f277849080e (patch)
tree86966688d99fef76740411b9f70a0a1b5d7af850 /source4/auth/auth_unix.c
parent120ecdb5cb7dbd7c650f3e9fbcefb925f695e0f2 (diff)
downloadsamba-7e298580e06a5b9a0c1210937af47f277849080e.tar.gz
samba-7e298580e06a5b9a0c1210937af47f277849080e.tar.bz2
samba-7e298580e06a5b9a0c1210937af47f277849080e.zip
r26234: More global_loadparm fixes.
(This used to be commit 84892d030de6266fc0f3a699cade960dd5dc37bc)
Diffstat (limited to 'source4/auth/auth_unix.c')
-rw-r--r--source4/auth/auth_unix.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source4/auth/auth_unix.c b/source4/auth/auth_unix.c
index fac04fd735..62fb42935a 100644
--- a/source4/auth/auth_unix.c
+++ b/source4/auth/auth_unix.c
@@ -30,6 +30,7 @@
* except in case USER_INFO_DONT_CHECK_UNIX_ACCOUNT is set
*/
static NTSTATUS authunix_make_server_info(TALLOC_CTX *mem_ctx,
+ const char *netbios_name,
const struct auth_usersupplied_info *user_info,
struct passwd *pwd,
struct auth_serversupplied_info **_server_info)
@@ -39,7 +40,7 @@ static NTSTATUS authunix_make_server_info(TALLOC_CTX *mem_ctx,
/* This is a real, real hack */
if (pwd->pw_uid == 0) {
- status = auth_system_server_info(mem_ctx, &server_info);
+ status = auth_system_server_info(mem_ctx, netbios_name, &server_info);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -810,7 +811,8 @@ static NTSTATUS authunix_check_password(struct auth_method_context *ctx,
return nt_status;
}
- nt_status = authunix_make_server_info(mem_ctx, user_info, pwd, server_info);
+ nt_status = authunix_make_server_info(mem_ctx, lp_netbios_name(ctx->auth_ctx->lp_ctx),
+ user_info, pwd, server_info);
if (!NT_STATUS_IS_OK(nt_status)) {
talloc_free(check_ctx);
return nt_status;