summaryrefslogtreecommitdiff
path: root/source3/auth
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2001-11-11 11:00:38 +0000
committerAndrew Bartlett <abartlet@samba.org>2001-11-11 11:00:38 +0000
commite903a34b2ecf6bca515dbe57274f4186d7f3955e (patch)
tree1838d157f7b3a326d657302dede31d1d582e3723 /source3/auth
parente1cd19516093882dde0eefeeb629c53d48e64822 (diff)
downloadsamba-e903a34b2ecf6bca515dbe57274f4186d7f3955e.tar.gz
samba-e903a34b2ecf6bca515dbe57274f4186d7f3955e.tar.bz2
samba-e903a34b2ecf6bca515dbe57274f4186d7f3955e.zip
Minor updates. A small dose of const.
(This used to be commit 80667cb0dd1a2cdef17711c8580af9f524971cea)
Diffstat (limited to 'source3/auth')
-rw-r--r--source3/auth/auth.c2
-rw-r--r--source3/auth/auth_util.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/auth/auth.c b/source3/auth/auth.c
index 67f80afdda..95c97182b8 100644
--- a/source3/auth/auth.c
+++ b/source3/auth/auth.c
@@ -36,7 +36,7 @@ static BOOL check_domain_match(char *user, char *domain)
*/
if (!lp_allow_trusted_domains() &&
- !strequal(lp_workgroup(), domain) ) {
+ (!strequal(lp_workgroup(), domain) || strequal("", domain))) {
DEBUG(1, ("check_domain_match: Attempt to connect as user %s from domain %s denied.\n", user, domain));
return False;
} else {
diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c
index d442f73a93..3f03097de4 100644
--- a/source3/auth/auth_util.c
+++ b/source3/auth/auth_util.c
@@ -426,7 +426,7 @@ BOOL make_user_info_winbind(auth_usersupplied_info **user_info,
/* WATCH OUT. This doesn't work if the incoming password is incorrectly cased.
We might want to add a check here and only do an LM in that case */
- SMBNTencrypt((uchar *)password, chal, local_nt_response);
+ SMBNTencrypt((const uchar *)password, chal, local_nt_response);
local_lm_blob = data_blob(local_lm_response, sizeof(local_lm_response));
local_nt_blob = data_blob(local_nt_response, sizeof(local_nt_response));