1
0
mirror of https://github.com/samba-team/samba.git synced 2025-10-21 03:33:16 +03:00

r23848: Thanks to derrell for pointing out that I had not finished my patch to

split out the auth methods.

This caused all SWAT logins to fail, except when using local system
authentication.

Andrew Bartlett
This commit is contained in:
Andrew Bartlett
2007-07-12 04:56:33 +00:00
committed by Gerald (Jerry) Carter
parent 9b8789a4b5
commit b5a9d507a3
2 changed files with 6 additions and 4 deletions

View File

@@ -55,7 +55,11 @@ static int ejs_doauth(MprVarHandle eid,
msg = messaging_client_init(tmp_ctx, ev);
}
nt_status = auth_context_create_methods(tmp_ctx, auth_types, ev, msg, &auth_context);
if (auth_types) {
nt_status = auth_context_create_methods(tmp_ctx, auth_types, ev, msg, &auth_context);
} else {
nt_status = auth_context_create(tmp_ctx, ev, msg, &auth_context);
}
if (!NT_STATUS_IS_OK(nt_status)) {
mprSetPropertyValue(auth, "result", mprCreateBoolVar(False));
mprSetPropertyValue(auth, "report", mprString("Auth System Failure"));
@@ -173,7 +177,7 @@ static int ejs_userAuth(MprVarHandle eid, int argc, struct MprVar **argv)
if (domain && (strcmp("SYSTEM USER", domain) == 0)) {
ejs_doauth(eid, tmp_ctx, &auth, username, password, domain, workstation, remote_host, auth_types_unix);
} else {
ejs_doauth(eid, tmp_ctx, &auth, username, password, domain, workstation, remote_host, lp_auth_methods());
ejs_doauth(eid, tmp_ctx, &auth, username, password, domain, workstation, remote_host, NULL);
}
mpr_Return(eid, auth);