NT Server Manager..
Luke Kenneth Casson Leighton
lkcl at switchboard.net
Fri Sep 25 14:34:49 GMT 1998
On Fri, 25 Sep 1998, Jeremy Allison wrote:
> Luke Kenneth Casson Leighton wrote:
> >
> > jeremy,
> >
> > the pdb_is_rid_user() function appears to be getting in the way, somehow.
> > i allocated a user rid in private/smbpasswd of "1001" to the user
> > "administrator". in rpc_server/samr.c, in the query_userinfo code, the
> > pdb_is_rid_user() gets "1001" and fails the call with
> > NT_STATUS_NO_SUCH_USER.
> >
>
> You can't allocate a user rid in private/smbpasswd because the
> numbers in there are UNIX userids - *NOT* rids.
exactly. that's what the bug i found was all about: some unix uids were
being returned instead of domain-relative rids, in rid fields. then, when
the pdb_is_rid_user(rid) failed, because it was actually being passed a
uid.
oops
> Rember - *UNIX KNOWS NOTHING ABOUT RIDS* !!
i know - i view samba as the gateway that must "know" about rids and must
also "know" about unix uids.
> pdb_rid_is_user(0x1001) will fail with NT_STATUS_NO_SUCH_USER
> as it takes a RID, which is a mapping of a UNIX userid.
More information about the samba-ntdom
mailing list