1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-08 04:58:40 +03:00

pdb_unix.c did not really expect group RIDs dictated by a PDC and looking

like user RIDs.

Volker
(This used to be commit 872c7d40454545108ec9e7eee12894af77b4adc3)
This commit is contained in:
Volker Lendecke 2002-10-21 20:31:59 +00:00
parent 534220da60
commit 2d19a6550b

View File

@ -48,7 +48,7 @@ static NTSTATUS unixsam_getsampwrid (struct pdb_methods *methods,
SAM_ACCOUNT *user, uint32 rid)
{
NTSTATUS nt_status = NT_STATUS_UNSUCCESSFUL;
struct passwd *pass;
struct passwd *pass = NULL;
const char *guest_account = lp_guestaccount();
if (!(guest_account && *guest_account)) {
DEBUG(1, ("NULL guest account!?!?\n"));
@ -68,7 +68,9 @@ static NTSTATUS unixsam_getsampwrid (struct pdb_methods *methods,
}
} else if (pdb_rid_is_user(rid)) {
pass = getpwuid_alloc(fallback_pdb_user_rid_to_uid (rid));
} else {
}
if (pass == NULL) {
return nt_status;
}