1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-07 17:18:11 +03:00
Commit Graph

13 Commits

Author SHA1 Message Date
Matthew Newton
2664d9070f Move wbc global variables into global context instead
There are some global variables in use in the libwbclient
library. Now that we have a context, move these into it so that
they are thread-safe when the wbcCtx* functions are used.

Signed-off-by: Matthew Newton <matthew-git@newtoncomputing.co.uk>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2015-03-10 00:50:10 +01:00
Matthew Newton
063c56dba5 Add context versions of wbclient functions
To make the libwbclient library thread-safe, all functions
that call through to wb_common winbindd_request_response need
to have context that they can use. This commit adds all the
necessary functions.

Signed-off-by: Matthew Newton <matthew-git@newtoncomputing.co.uk>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2015-03-10 00:50:10 +01:00
Volker Lendecke
7ffa7e4bca libwbclient: Use wbcSidToStringBuf 2011-03-05 14:29:32 +01:00
Volker Lendecke
a642cb5a92 libwbclient: Fix a division by zero
If wbinfo -r returns no groups, wbcAllocateMemory divides by zero
2010-11-27 19:11:03 +01:00
Andrew Tridgell
b04b8b5610 wbclient: gr_mem can be NULL
if the structure was partly created and an error occurred, then don't
crash

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-16 21:09:18 +10:00
Volker Lendecke
fc2cca5c28 libwbclient: Make wbcGetGroups not use talloc 2010-04-19 14:27:21 +02:00
Volker Lendecke
b75106b2ed libwbclient: Make copy_group_entry not use talloc 2010-04-19 14:27:16 +02:00
Volker Lendecke
041be88bd0 libwbclient: Make copy_passwd_entry not use talloc 2010-04-19 14:27:16 +02:00
Volker Lendecke
bbe07972e6 libwbclient: Both talloc_free and wbcFreeMemory deal with NULL
This is in line with the ANSI C standard definition of free(NULL)
2010-04-03 22:12:23 +02:00
Volker Lendecke
96b12e0d59 libwbclient: Use winbindd_free_response() 2010-01-24 14:52:33 +01:00
Kai Blin
5e67aa92f6 libwbclient: Attempt to fix build on AIX 2009-06-04 22:32:50 +02:00
Dan Sledz
aed8e9aa0a s3: Implement wbcGetpwsid
* Adds the plumbing required to lookup users by sid into winbind, wbinfo
  and smbd helper lib (winbind_util.c).
* Removes some double declarations of winbind_util.c functions.
* Bumps the winbind protocol version to 21 and the minor version of
  wbclient to 3.
2009-02-11 19:39:15 -08:00
Kai Blin
6821d898d7 nsswitch: Move source3 files to top level dir.
Don't move source4 files yet to not confuse git's rename tracking too much.
2008-12-16 13:02:45 +01:00