If RID is “S-1-5-21-1614895754-854245398-1368107171-500”, RID means
“Administrator”.
And, If RID is “S-1-5-21-1614895754-854245398-1368107171-1002”, RID means
“OTHER USER”(eg, susan).
Then, How can i convert relative identifier(RID) to user-name?
Up to now, I converted binary SIDs to string SIDs, using
RtlConvertSidToUnicodeString function.
Chang,
you wrote on Wednesday, October 9, 2002, 13:31:56:
CSJ> Then, How can i convert relative identifier(RID) to user-name?
LookupAccountSid()
Ralf.
> Then, How can i convert relative identifier(RID) to user-name?
This is LookupAccountName, and it requires RPC calls to domain
controllers.
Max
Thanks for your advice!
My target-mode is kernel-mode(not user-mode).
So, I use DDK.
In kernel-mode, It seems that “LookupAccountSid function” is not
available.
How can i convert RID to user-name in kernel-mode DDK.
Chang Sung. Jung.
> In kernel-mode, It seems that “LookupAccountSid function” is not
available.
Surely not, it is user-mode function from Advapi32.dll
How can i convert RID to user-name in kernel-mode DDK.
You do not need any user names in kernel mode. Add an helper user-mode
code.
Max