Author: abartlet Date: 2005-11-01 13:32:09 +0000 (Tue, 01 Nov 2005) New Revision: 11439
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=11439 Log: Make presedence on strcmp comparison clear, and fill in logon_parameters for the auth subsystem. Andrew Bartlett Modified: branches/SAMBA_4_0/source/scripting/ejs/smbcalls_auth.c Changeset: Modified: branches/SAMBA_4_0/source/scripting/ejs/smbcalls_auth.c =================================================================== --- branches/SAMBA_4_0/source/scripting/ejs/smbcalls_auth.c 2005-11-01 13:30:09 UTC (rev 11438) +++ branches/SAMBA_4_0/source/scripting/ejs/smbcalls_auth.c 2005-11-01 13:32:09 UTC (rev 11439) @@ -72,6 +72,8 @@ user_info->flags = USER_INFO_CASE_INSENSITIVE_USERNAME | USER_INFO_DONT_CHECK_UNIX_ACCOUNT; + user_info->logon_parameters = 0; + nt_status = auth_check_password(auth_context, tmp_ctx, user_info, &server_info); if (!NT_STATUS_IS_OK(nt_status)) { mprSetPropertyValue(auth, "result", mprCreateBoolVar(False)); @@ -135,7 +137,7 @@ auth = mprObject("auth"); - if (domain && strcmp("System User", domain) == 0) { + if (domain && (strcmp("System User", domain) == 0)) { ejs_doauth(tmp_ctx, &auth, username, password, domain, remote_host, "unix"); } else { ejs_doauth(tmp_ctx, &auth, username, password, domain, remote_host, "sam");
