summaryrefslogtreecommitdiffstats
path: root/source/smbd/sesssetup.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2001-11-09 11:16:06 +0000
committerAndrew Bartlett <abartlet@samba.org>2001-11-09 11:16:06 +0000
commit8e708332eded210c1d1fe0cebca3c9c19f054b71 (patch)
tree25967a4fb473f71e4469b7e318a3a6081bc52471 /source/smbd/sesssetup.c
parent72c1af6f8d9893dd5b8b4d105b301d8c621749c6 (diff)
downloadsamba-8e708332eded210c1d1fe0cebca3c9c19f054b71.tar.gz
samba-8e708332eded210c1d1fe0cebca3c9c19f054b71.tar.xz
samba-8e708332eded210c1d1fe0cebca3c9c19f054b71.zip
This change updates lp_guestaccount() to be a *global* paramater, rather than
per-share. I beleive that almost all the things that this could have done on a per-share basis can be done with other tools, like 'force user'. Almost all the user's of this paramater used it as a global anyway... While this is one step at a time, I hope it will allow me to considerably simplfy the make_connection() code, particularly for the user-level security case. This already removes an absolute truckload of extra attempted password lookups on the guest account. Andrew Bartlett
Diffstat (limited to 'source/smbd/sesssetup.c')
-rw-r--r--source/smbd/sesssetup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/smbd/sesssetup.c b/source/smbd/sesssetup.c
index 23d99d73526..e2edd5703ec 100644
--- a/source/smbd/sesssetup.c
+++ b/source/smbd/sesssetup.c
@@ -383,7 +383,7 @@ static int reply_spnego_anonymous(connection_struct *conn, char *inbuf, char *ou
nt_status = check_password(user_info, &server_info);
- sess_vuid = register_vuid(server_info, lp_guestaccount(-1));
+ sess_vuid = register_vuid(server_info, lp_guestaccount());
free_server_info(&server_info);
if (sess_vuid == -1) {
@@ -644,7 +644,7 @@ int reply_sesssetup_and_X(connection_struct *conn, char *inbuf,char *outbuf,
if (*user) {
pstrcpy(sub_user, user);
} else {
- pstrcpy(sub_user, lp_guestaccount(-1));
+ pstrcpy(sub_user, lp_guestaccount());
}
pstrcpy(current_user_info.smb_name,sub_user);