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

Volker Lendecke Volker.Lendecke at SerNet.DE
Thu Oct 8 04:52:06 MDT 2009

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>"

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.samba.org/pipermail/samba/attachments/20091008/188fb6cf/attachment.pgp>

More information about the samba mailing list