mirror of
https://github.com/samba-team/samba.git
synced 2025-11-01 16:23:49 +03:00
r8230: prevent authentication dying on a NULL domain
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
2ad02d5e09
commit
e1cfc6d032
@@ -149,7 +149,7 @@ static int ejs_userAuth(MprVarHandle eid, int argc, struct MprVar **argv)
|
||||
tmp_ctx = talloc_new(mprMemCtx());
|
||||
auth = mprCreateObjVar("auth", MPR_DEFAULT_HASH_SIZE);
|
||||
|
||||
if (strcmp("System User", domain) == 0) {
|
||||
if (domain && strcmp("System User", domain) == 0) {
|
||||
|
||||
ejs_systemAuth(tmp_ctx, &auth, username, password, domain, remote_host);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user