const DATA_BLOB *challenge,
const DATA_BLOB *lm_response,
const DATA_BLOB *nt_response,
- const DATA_BLOB *lm_interactive_pwd,
- const DATA_BLOB *nt_interactive_pwd,
+ const DATA_BLOB *lm_interactive_password,
+ const DATA_BLOB *nt_interactive_password,
const char *username,
const char *client_username,
const char *client_domain,
username));
}
- if (nt_interactive_pwd && nt_interactive_pwd->length && nt_pw) {
- if (nt_interactive_pwd->length != 16) {
- DEBUG(3,("ntlm_password_check: Interactive logon: Invalid NT password length (%d) supplied for user %s\n", (int)nt_interactive_pwd->length,
+ if (nt_interactive_password && nt_interactive_password->length && nt_pw) {
+ if (nt_interactive_password->length != 16) {
+ DEBUG(3,("ntlm_password_check: Interactive logon: Invalid NT password length (%d) supplied for user %s\n", (int)nt_interactive_password->length,
username));
return NT_STATUS_WRONG_PASSWORD;
}
- if (memcmp(nt_interactive_pwd->data, nt_pw, 16) == 0) {
+ if (memcmp(nt_interactive_password->data, nt_pw, 16) == 0) {
if (user_sess_key) {
*user_sess_key = data_blob(NULL, 16);
SMBsesskeygen_ntv1(nt_pw, user_sess_key->data);
return NT_STATUS_WRONG_PASSWORD;
}
- } else if (lm_interactive_pwd && lm_interactive_pwd->length && lm_pw) {
- if (lm_interactive_pwd->length != 16) {
- DEBUG(3,("ntlm_password_check: Interactive logon: Invalid LANMAN password length (%d) supplied for user %s\n", (int)lm_interactive_pwd->length,
+ } else if (lm_interactive_password && lm_interactive_password->length && lm_pw) {
+ if (lm_interactive_password->length != 16) {
+ DEBUG(3,("ntlm_password_check: Interactive logon: Invalid LANMAN password length (%d) supplied for user %s\n", (int)lm_interactive_password->length,
username));
return NT_STATUS_WRONG_PASSWORD;
}
return NT_STATUS_WRONG_PASSWORD;
}
- if (memcmp(lm_interactive_pwd->data, lm_pw, 16) == 0) {
+ if (memcmp(lm_interactive_password->data, lm_pw, 16) == 0) {
return NT_STATUS_OK;
} else {
DEBUG(3,("ntlm_password_check: Interactive logon: LANMAN password check failed for user %s\n",
break;
case 12:
- QUERY_STRING(msg, info12.profile.name, "profilePath");
+ QUERY_STRING(msg, info12.profile_path.name, "profilePath");
break;
case 13:
QUERY_NTTIME(msg, info21.last_logoff, "lastLogoff");
QUERY_NTTIME(msg, info21.last_password_change, "pwdLastSet");
QUERY_NTTIME(msg, info21.acct_expiry, "accountExpires");
- QUERY_APASSC(msg, info21.allow_password_change, "pwdLastSet");
- QUERY_FPASSC(msg, info21.force_password_change, "pwdLastSet");
- QUERY_STRING(msg, info21.account_name.name, "sAMAccountName");
+ QUERY_APASSC(msg, info21.allow_password_change,"pwdLastSet");
+ QUERY_FPASSC(msg, info21.force_password_change,"pwdLastSet");
+ QUERY_STRING(msg, info21.account_name.name, "sAMAccountName");
QUERY_STRING(msg, info21.full_name.name, "displayName");
QUERY_STRING(msg, info21.home_directory.name, "homeDirectory");
QUERY_STRING(msg, info21.home_drive.name, "homeDrive");
QUERY_STRING(msg, info21.logon_script.name, "scriptPath");
- QUERY_STRING(msg, info21.profile.name, "profilePath");
+ QUERY_STRING(msg, info21.profile_path.name, "profilePath");
QUERY_STRING(msg, info21.description.name, "description");
QUERY_STRING(msg, info21.workstations.name, "userWorkstations");
QUERY_STRING(msg, info21.comment.name, "comment");
break;
case 12:
- SET_STRING(msg, info12.profile.name, "profilePath");
+ SET_STRING(msg, info12.profile_path.name, "profilePath");
break;
case 13:
SET_STRING(msg, info21.comment.name, "comment");
IFSET(SAMR_FIELD_LOGON_SCRIPT)
SET_STRING(msg, info21.logon_script.name, "scriptPath");
- IFSET(SAMR_FIELD_PROFILE)
- SET_STRING(msg, info21.profile.name, "profilePath");
+ IFSET(SAMR_FIELD_PROFILE_PATH)
+ SET_STRING(msg, info21.profile_path.name, "profilePath");
IFSET(SAMR_FIELD_WORKSTATION)
SET_STRING(msg, info21.workstations.name, "userWorkstations");
IFSET(SAMR_FIELD_LOGON_HOURS)
SET_STRING(msg, info23.info.comment.name, "comment");
IFSET(SAMR_FIELD_LOGON_SCRIPT)
SET_STRING(msg, info23.info.logon_script.name, "scriptPath");
- IFSET(SAMR_FIELD_PROFILE)
- SET_STRING(msg, info23.info.profile.name, "profilePath");
+ IFSET(SAMR_FIELD_PROFILE_PATH)
+ SET_STRING(msg, info23.info.profile_path.name, "profilePath");
IFSET(SAMR_FIELD_WORKSTATION)
SET_STRING(msg, info23.info.workstations.name, "userWorkstations");
IFSET(SAMR_FIELD_LOGON_HOURS)
SET_STRING(msg, info25.info.comment.name, "comment");
IFSET(SAMR_FIELD_LOGON_SCRIPT)
SET_STRING(msg, info25.info.logon_script.name, "scriptPath");
- IFSET(SAMR_FIELD_PROFILE)
- SET_STRING(msg, info25.info.profile.name, "profilePath");
+ IFSET(SAMR_FIELD_PROFILE_PATH)
+ SET_STRING(msg, info25.info.profile_path.name, "profilePath");
IFSET(SAMR_FIELD_WORKSTATION)
SET_STRING(msg, info25.info.workstations.name, "userWorkstations");
IFSET(SAMR_FIELD_LOGON_HOURS)