summaryrefslogtreecommitdiff
path: root/source3/smbd/uid.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
commit395aa946cd4fb9d5e07dd2fee418045a8064dfab (patch)
tree33514af6045d3bd11238dac5dd83a853abdbe35c /source3/smbd/uid.c
parent50093d3bbda60634b76a7ec14ab60c76a4b83a42 (diff)
downloadsamba-395aa946cd4fb9d5e07dd2fee418045a8064dfab.tar.gz
samba-395aa946cd4fb9d5e07dd2fee418045a8064dfab.tar.bz2
samba-395aa946cd4fb9d5e07dd2fee418045a8064dfab.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 (This used to be commit 8e708332eded210c1d1fe0cebca3c9c19f054b71)
Diffstat (limited to 'source3/smbd/uid.c')
-rw-r--r--source3/smbd/uid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/uid.c b/source3/smbd/uid.c
index e40b4707fc..4329e3fb76 100644
--- a/source3/smbd/uid.c
+++ b/source3/smbd/uid.c
@@ -36,7 +36,7 @@ BOOL change_to_guest(void)
static fstring guest_name;
if (!pass) {
- pass = Get_Pwnam(lp_guestaccount(-1));
+ pass = sys_getpwnam(lp_guestaccount());
if (!pass)
return(False);
guest_uid = pass->pw_uid;