[Samba] Lookup sid with libsmbclient (invoked from c# on mono)

Vincent Le Toux vincent.letoux at gmail.com
Mon Oct 12 11:57:17 UTC 2020

Thanks Aurélien

Can you point to me how I can start LDAP connection using winbind ?
I'm using ldap_simple_bind so far so there is no use of winbind in it.

I'll be happy also if you can point me to the winbind API where you can
input login / password


Le lun. 12 oct. 2020 à 11:37, Aurélien Aptel <aaptel at suse.com> a écrit :

> Hi Vincent,
> If you want to lookup a SID from a remote Linux client I believe you
> will have to authenticate to the server. Assuming the client is joined
> to the domain and has winbind running, you can use libwbclient
> https://gitlab.com/samba-team/devel/samba/blob/master/nsswitch/libwbclient/wbclient.h
> * wbcLookupName() will do domain/name => SID
> * wbcLookupSid() will do SID => domain/name
> If you are not joined or don't have the winbind daemon configured and
> running, I guess there might be a solution by passing credentials,
> doing NTLM authentication and some direct RPC calls, but I'm not
> familiar with this part of samba.
> Cheers,
> --
> Aurélien Aptel / SUSE Labs Samba Team
> GPG: 1839 CB5F 9F5B FB9B AA97  8C99 03C8 A49B 521B D5D3
> SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nürnberg, DE
> GF: Felix Imendörffer, Mary Higgins, Sri Rasiah HRB 247165 (AG München)


More information about the samba mailing list