Re: [SSSD] having trouble linking with libsamba-security (but only sometimes)

2014-04-09 Thread Yassir Elley
- Original Message - > On Fri, 2014-04-04 at 10:03 +0200, Jakub Hrozek wrote: > > On Fri, Apr 04, 2014 at 09:25:50AM +0200, Lukas Slebodnik wrote: > > > On (03/04/14 14:47), Yassir Elley wrote: > > > >Hi all, > > > > > > > >I have been using a samba function (string_to_sid) in my gpo code

Re: [SSSD] having trouble linking with libsamba-security (but only sometimes)

2014-04-04 Thread Simo Sorce
On Fri, 2014-04-04 at 10:03 +0200, Jakub Hrozek wrote: > On Fri, Apr 04, 2014 at 09:25:50AM +0200, Lukas Slebodnik wrote: > > On (03/04/14 14:47), Yassir Elley wrote: > > >Hi all, > > > > > >I have been using a samba function (string_to_sid) in my gpo code and have > > >had no trouble so far compil

Re: [SSSD] having trouble linking with libsamba-security (but only sometimes)

2014-04-04 Thread Günther Deschner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Yassir, linking a private library is not a good idea in general. You could use well documented and public calls ConvertSidToStringSid() and ConvertStringSidToSid() from netapi for example. See: http://msdn.microsoft.com/en-us/library/windows/des

Re: [SSSD] having trouble linking with libsamba-security (but only sometimes)

2014-04-04 Thread Sumit Bose
On Fri, Apr 04, 2014 at 11:16:01AM +0300, Alexander Bokovoy wrote: > On Fri, 04 Apr 2014, Jakub Hrozek wrote: > >>>* Presumably, the libsss_ad.so gpo code links successfully because it is > >>>pulling in a library (which is internally pulling in libsamba-security), > >>> but I'm not sure which libr

Re: [SSSD] having trouble linking with libsamba-security (but only sometimes)

2014-04-04 Thread Sumit Bose
On Thu, Apr 03, 2014 at 02:47:43PM -0400, Yassir Elley wrote: > Hi all, > > I have been using a samba function (string_to_sid) in my gpo code and have > had no trouble so far compiling and linking my libsss_ad.so gpo code. Please have a look at sss_idmap_sid_to_smb_sid() from libsss_idmap and se

Re: [SSSD] having trouble linking with libsamba-security (but only sometimes)

2014-04-04 Thread Alexander Bokovoy
On Fri, 04 Apr 2014, Jakub Hrozek wrote: >* Presumably, the libsss_ad.so gpo code links successfully because it is >pulling in a library (which is internally pulling in libsamba-security), > but I'm not sure which library that is. Any ideas? >* Is there a better solution for getting the gpo tests

Re: [SSSD] having trouble linking with libsamba-security (but only sometimes)

2014-04-04 Thread Jakub Hrozek
On Fri, Apr 04, 2014 at 09:25:50AM +0200, Lukas Slebodnik wrote: > On (03/04/14 14:47), Yassir Elley wrote: > >Hi all, > > > >I have been using a samba function (string_to_sid) in my gpo code and have > >had no trouble so far compiling and linking my libsss_ad.so gpo code. > > > >I simply needed to

Re: [SSSD] having trouble linking with libsamba-security (but only sometimes)

2014-04-04 Thread Lukas Slebodnik
On (03/04/14 14:47), Yassir Elley wrote: >Hi all, > >I have been using a samba function (string_to_sid) in my gpo code and have >had no trouble so far compiling and linking my libsss_ad.so gpo code. > >I simply needed to apply the following patches, which includes having >to declare the string_to_s

[SSSD] having trouble linking with libsamba-security (but only sometimes)

2014-04-03 Thread Yassir Elley
Hi all, I have been using a samba function (string_to_sid) in my gpo code and have had no trouble so far compiling and linking my libsss_ad.so gpo code. I simply needed to apply the following patches, which includes having to declare the string_to_sid function before it is used in the file. ---