uid_t uid;
/* password updated */
- if (!sid_to_uid(sampass, &uid)) {
- _log_err( LOG_NOTICE "Unable to get uid for user %s",
+ if (!sid_to_uid(pdb_get_user_sid(sampass), &uid)) {
+ _log_err( LOG_NOTICE, "Unable to get uid for user %s",
pdb_get_username(sampass));
_log_err( LOG_NOTICE, "password for (%s) changed by (%s/%d)",
user, uidtoname(getuid()), getuid());
int _smb_verify_password( pam_handle_t * pamh, SAM_ACCOUNT *sampass,
const char *p, unsigned int ctrl )
{
- uchar hash_pass[16];
uchar lm_pw[16];
uchar nt_pw[16];
int retval = PAM_AUTH_ERR;
pam_get_item( pamh, PAM_SERVICE, (const void **)&service );
if (data_name != NULL) {
- int type;
struct _pam_failed_auth *new = NULL;
const struct _pam_failed_auth *old = NULL;
service ? service : "**unknown**", name);
new->count = 1;
}
- if (!sid_to_uid(pdb_get_user_sid(sampass, &(new->id), &type))) {
+ if (!sid_to_uid(pdb_get_user_sid(sampass), &(new->id))) {
_log_err(LOG_NOTICE,
"failed auth request by %s for service %s as %s",
uidtoname(getuid()),