[Samba] Getting a Windows username from an SID with Samba/Winbind

Toby Newman samba at asktoby.com
Thu Oct 8 04:55:28 MDT 2009

On Thu, 8 Oct 2009, Volker Lendecke wrote:
> On Thu, Oct 08, 2009 at 11:32:01AM +0100, samba at asktoby.com wrote:
>> 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.
> If you're a member of a domain, winbind will find that out
> itself. If you are not, you can't use wbinfo. Then you will
> need to use
> rpcclient <server-IP> -U user%pass -c "lookupsids <sid>"

That works perfectly. Thank you: You got me out of a bind today :)


More information about the samba mailing list