Return the last rid from the end of a sid
*****************************************************************/
-BOOL sid_peek_rid(DOM_SID *sid, uint32 *rid)
+BOOL sid_peek_rid(const DOM_SID *sid, uint32 *rid)
{
if (!sid || !rid)
return False;
and check the sid against the exp_dom_sid
*****************************************************************/
-BOOL sid_peek_check_rid(DOM_SID *exp_dom_sid,DOM_SID *sid, uint32 *rid)
+BOOL sid_peek_check_rid(const DOM_SID *exp_dom_sid, const DOM_SID *sid, uint32 *rid)
{
if (!exp_dom_sid || !sid || !rid)
return False;
return False;
}
- return sid_peek_rid(sid,rid);
+ return sid_peek_rid(sid, rid);
}
/*****************************************************************
}
if (pdb_getsampwnam(sam_account, user)) {
- sid_copy(psid, (DOM_SID *) pdb_get_user_sid(sam_account));
+ sid_copy(psid, pdb_get_user_sid(sam_account));
*psid_name_use = SID_NAME_USER;
pdb_free_sam(&sam_account);
}
if (pdb_getsampwnam(sam_user, pass->pw_name)) {
- sid_copy(psid, (DOM_SID *) pdb_get_user_sid(sam_user));
+ sid_copy(psid, pdb_get_user_sid(sam_user));
} else {
sid_append_rid(psid, fallback_pdb_uid_to_user_rid(uid));
}
}
/* Get the user's SID */
- sid_copy(&sid, (DOM_SID *) pdb_get_user_sid(sam_pass));
+ sid_copy(&sid, pdb_get_user_sid(sam_pass));
/* associate the user's SID with the new handle. */
if ((info = get_samr_info_by_sid(&sid)) == NULL) {