summaryrefslogtreecommitdiff
path: root/source3/smbd/password.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-06-16 09:38:11 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-06-16 09:38:11 +0000
commit36f7eaf32c40451d2e9cb9432491a1a03bf3780b (patch)
tree5ffbd0303ee71938b5b316870e92958e7c1f19dd /source3/smbd/password.c
parenta54afa45be41a46432470b6fa3f29050f09b47ba (diff)
downloadsamba-36f7eaf32c40451d2e9cb9432491a1a03bf3780b.tar.gz
samba-36f7eaf32c40451d2e9cb9432491a1a03bf3780b.tar.bz2
samba-36f7eaf32c40451d2e9cb9432491a1a03bf3780b.zip
Further updates to the service.c code. authorise_login() is now a bit simpiler
and we seem to have eliminated the segfault. Unfortunetly I'm still at a bit of a loss as to why it did segfault, but the patch is correct in any case. Andrew Bartlett (This used to be commit 70c16188c7a267f9f3f8de0b6830f66c9e68a2c7)
Diffstat (limited to 'source3/smbd/password.c')
-rw-r--r--source3/smbd/password.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/smbd/password.c b/source3/smbd/password.c
index 6eaa7b7fbb..f9bcad4154 100644
--- a/source3/smbd/password.c
+++ b/source3/smbd/password.c
@@ -474,7 +474,7 @@ static char *validate_group(char *group, DATA_BLOB password,int snum)
****************************************************************************/
BOOL authorise_login(int snum,char *user, DATA_BLOB password,
- BOOL *guest, BOOL *force)
+ BOOL *guest)
{
BOOL ok = False;
@@ -485,8 +485,6 @@ BOOL authorise_login(int snum,char *user, DATA_BLOB password,
*guest = False;
- if (GUEST_ONLY(snum))
- *force = True;
/* there are several possibilities:
1) login as the given user with given password
2) login as a previously registered username with the given password