Toby Newman
2009-Oct-08 09:22 UTC
[Samba] Getting a Windows username from an SID with Samba/Winbind
I am running Linux in a corporate windows environment. I need to convert user's Active Directory security identifiers (SIDs) to usernames, for example S-1-5-21-484763869-1275210071-682003330-34567 to mydomain\jbloggs. There are a few Windows tools that do this like SIDDecode and SidToName, but they don't work under wine. I've been reading about Winbind and Samba and it seems it may be possible to achieve this with those. Does anyone here know how? Many thanks, Toby Newman
Alexander Födisch
2009-Oct-08 10:12 UTC
[Samba] Getting a Windows username from an SID with Samba/Winbind
wbinfo -s <SID> is what you are looking for. Best Toby Newman schrieb:> > I am running Linux in a corporate windows environment. > > I need to convert user's Active Directory security identifiers (SIDs) to > usernames, for example S-1-5-21-484763869-1275210071-682003330-34567 to > mydomain\jbloggs. > > There are a few Windows tools that do this like SIDDecode and SidToName, > but they don't work under wine. > > I've been reading about Winbind and Samba and it seems it may be > possible to achieve this with those. Does anyone here know how? > > Many thanks, > Toby Newman-------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 5905 bytes Desc: S/MIME Cryptographic Signature URL: <http://lists.samba.org/pipermail/samba/attachments/20091008/c063ec6b/attachment.bin>