[Samba] Getting a Windows username from an SID with Samba/Winbind
samba at asktoby.com
samba at asktoby.com
Thu Oct 8 04:32:01 MDT 2009
That looks perfect.
How do I tell it which server to use? At the moment I think it's assuming
localhost and just giving:
$ wbinfo -s S-1-5-21-484763869-1275210071-682003330-23849
Could not lookup sid S-1-5-21-484763869-1275210071-682003330-23849
The other (Windows) tools I've used need an SID and an IP of a server, but
I can't see the option in the manpage for wbinfo for a server.
Toby
On Thu, 8 Oct 2009, Alexander Födisch wrote:
> 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
>
>
More information about the samba
mailing list