switch (field) {
case AP_MIN_PASSWORD_LEN:
return "min password length";
- break;
case AP_PASSWORD_HISTORY:
return "password history";
- break;
case AP_USER_MUST_LOGON_TO_CHG_PASS:
return "user must logon to change password";
- break;
case AP_MAX_PASSWORD_AGE:
return "maximum password age";
- break;
case AP_MIN_PASSWORD_AGE:
return "minimum password age";
- break;
case AP_LOCK_ACCOUNT_DURATION:
return "lockout duration";
- break;
case AP_RESET_COUNT_TIME:
return "reset count minutes";
- break;
case AP_BAD_ATTEMPT_LOCKOUT:
return "bad lockout attempt";
- break;
case AP_TIME_TO_LOGOUT:
return "disconnect time";
- break;
default:
return "undefined value";
- break;
}
}
break;
case E2BIG:
goto convert;
- break;
case EILSEQ:
reason="Illegal myltibyte sequence";
break;
return False;
if (get_group_map_from_sid(*psid, &map, MAPPING_WITHOUT_PRIV)) {
-
+
/* the SID is in the mapping table but not mapped */
if (map.gid==-1)
return False;
- sid_peek_rid(&map.sid, pgid);
+ sid_peek_rid(&map.sid, &rid);
+ *pgid = rid;
*name_type = map.sid_name_use;
} else {
*pgid = pdb_group_rid_to_gid(rid);
BOOL pdb_set_pass_changed_now (SAM_ACCOUNT *sampass)
{
- time_t expire;
+ uint32 expire;
if (!sampass)
return False;
if (!pdb_set_pass_last_set_time (sampass, time(NULL)))
return False;
- account_policy_get(AP_MAX_PASSWORD_AGE, (int *)&expire);
+ account_policy_get(AP_MAX_PASSWORD_AGE, &expire);
- if (expire==-1) {
+ if (expire==(uint32)-1) {
if (!pdb_set_pass_must_change_time (sampass, 0))
return False;
} else {
********************************************************************/
void init_q_srv_pwset(NET_Q_SRV_PWSET *q_s, char *logon_srv, char *sess_key, char *acct_name,
- uint16 sec_chan, char *comp_name, DOM_CRED *cred, char hashed_mach_pwd[16])
+ uint16 sec_chan, char *comp_name, DOM_CRED *cred, uchar hashed_mach_pwd[16])
{
unsigned char nt_cypher[16];
}
if (tailer != rec.rec_len + sizeof(rec)) {
- printf("ERROR: tailer does not match record! tailer=%u totalsize=%u\n", tailer, rec.rec_len + sizeof(rec));
+ printf("ERROR: tailer does not match record! tailer=%u totalsize=%u\n",
+ (unsigned)tailer, (unsigned)(rec.rec_len + sizeof(rec)));
}
return rec.next;
}