when samba acting as a PDC.
I also removed a pdb_free_sam(sampass), because it sampass was never
initialized before...
Please abartlet can you check this patch is ok?
I feel like this was a bad check-in
return NT_STATUS_INVALID_INFO_CLASS;
} /* end switch */
+ become_root();
nt_status = check_password(&user_info, &server_info);
+ unbecome_root();
DEBUG(5, ("_net_logon_any: exited with status %d\n", nt_status));
/* Check account and password */
- if (status != NT_STATUS_NOPROBLEMO) {
- pdb_free_sam(sampass);
+ if (status != NT_STATUS_NOPROBLEMO)
return status;
- }
pdb_init_sam(&sampass);