NTSTATUS nt_status = NT_STATUS_UNSUCCESSFUL;
struct smbpasswd_privates *smbpasswd_state = (struct smbpasswd_privates*)my_methods->private_data;
struct smb_passwd *smb_pw;
+ struct dom_sid_buf buf;
FILE *fp = NULL;
uint32_t rid;
DEBUG(10, ("smbpasswd_getsampwrid: search by sid: %s\n",
- sid_string_dbg(sid)));
+ dom_sid_str_buf(sid, &buf)));
if (!sid_peek_check_rid(get_global_sam_sid(), sid, &rid))
return NT_STATUS_UNSUCCESSFUL;
/* build_sam_account might change the SID on us, if the name was for the guest account */
if (NT_STATUS_IS_OK(nt_status) && !dom_sid_equal(pdb_get_user_sid(sam_acct), sid)) {
+ struct dom_sid_buf buf1, buf2;
DEBUG(1, ("looking for user with sid %s instead returned %s "
- "for account %s!?!\n", sid_string_dbg(sid),
- sid_string_dbg(pdb_get_user_sid(sam_acct)),
+ "for account %s!?!\n",
+ dom_sid_str_buf(sid, &buf1),
+ dom_sid_str_buf(pdb_get_user_sid(sam_acct), &buf2),
pdb_get_username(sam_acct)));
return NT_STATUS_NO_SUCH_USER;
}