summaryrefslogtreecommitdiff
path: root/nsswitch/libwbclient/wbc_idmap.c
Commit message (Collapse)AuthorAgeFilesLines
* nsswitch/libwbclient: explicitly mark all wbc* symbols as _PUBLIC_Stefan Metzmacher2021-11-301-0/+26
| | | | | | | | | | | | | | | Some private functions from wbclient_internal.h already leaked into the ABI. With hide_symbols=True we make sure this doesn't happen again. Having wbcRequestResponse[Priv]() as part of the ABI helps us in order to hide winbindd_[priv_]request_response() soon. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14780 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* lib: relicense smb_strtoul(l) under LGPLv3Ralph Boehme2020-08-031-1/+1
| | | | | | | | | Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Swen Schillig <swen@linux.ibm.com> Reviewed-by: Volker Lendecke <vl@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Mon Aug 3 22:21:04 UTC 2020 on sn-devel-184
* nsswitch: Update all consumers of strtoul_err(), strtoull_err() to new APISwen Schillig2019-06-301-3/+15
| | | | | | Signed-off-by: Swen Schillig <swen@linux.ibm.com> Reviewed-by: Ralph Boehme <slow@samba.org> Reviewed-by: Christof Schmitt <cs@samba.org>
* libwbclient: Use wrapper for string to integer conversionSwen Schillig2019-03-011-4/+6
| | | | | | | | | | | | In order to detect an value overflow error during the string to integer conversion with strtoul/strtoull, the errno variable must be set to zero before the execution and checked after the conversion is performed. This is achieved by using the wrapper function strtoul_err and strtoull_err. Signed-off-by: Swen Schillig <swen@linux.ibm.com> Reviewed-by: Ralph Böhme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* libwbclient: Protect wbcCtxUnixIdsToSids against integer-wrapVolker Lendecke2019-02-281-1/+11
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Christof Schmitt <cs@samba.org>
* libwbclient: Use wbcCtxUnixIdsToSids in wbcCtxGidToSidVolker Lendecke2016-02-221-19/+16
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* libwbclient: Use wbcCtxUnixIdsToSids in wbcCtxUidToSidVolker Lendecke2016-02-221-19/+16
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* libwbclient: Use wbcCtxSidsToUnixIds in wbcCtxSidToGidVolker Lendecke2016-02-221-19/+12
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* libwbclient: Use wbcCtxSidsToUnixIds in wbcCtxSidToUidVolker Lendecke2016-02-221-19/+12
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* libwbclient: Implement wbc[Ctx]UnixIdsToSidsVolker Lendecke2016-02-221-0/+85
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* Add context versions of wbclient functionsMatthew Newton2015-03-101-15/+55
| | | | | | | | | | | 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>
* libwbclient: added support for WBC_ID_TYPE_BOTHAndrew Tridgell2011-09-231-0/+4
| | | | | | | | | | the Samba4 winbindd allows for a single SID to map to both a user and group id. This is used to support files with the owner_sid set to a group Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Michael Adam <obnox@samba.org>
* nsswitch: make the wbcSidsToUnixIds() parser more robustAndrew Tridgell2011-09-081-2/+2
| | | | | | this allows it to handle new types of responses Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* libwbclient: Add wbcSidsToUnixIdsVolker Lendecke2011-04-131-0/+93
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* libwbclient: Use wbcSidToStringBufVolker Lendecke2011-03-051-12/+2
|
* Revert "libwbclient: remove two unused defines"Michael Adam2011-02-101-0/+4
| | | | | | This reverts commit 58bf6f9ff0b29df14eee2900fb847b96ef28411f. Undo the library version bump.
* Revert "libwbclient: remove wbcSetUidMapping() - not implemented any more"Michael Adam2011-02-101-0/+6
| | | | | | This reverts commit 25a0dc44f7e180d96dcccb8701e9817ecfd54955. Undo the library version bump.
* Revert "libwbclient: remove wbcSetGidMapping() - not implemented any more"Michael Adam2011-02-101-0/+6
| | | | | | This reverts commit 52e1be2139d370bf0ce99371bc9ab73db41c6236. Undo the library version bump.
* Revert "libwbclient: remove wbcRemoveUidMapping() - not implemented any more"Michael Adam2011-02-101-0/+6
| | | | | | This reverts commit 1ed5961df2da73b61666a4565d0633e34f72d04d. Undo the library version bump.
* Revert "libwbclient: remove wbcRemoveGidMapping() - not implemented any more"Michael Adam2011-02-101-0/+6
| | | | | | This reverts commit 393c866c517636e94b48ca6030a57b712892d568. Undo the library version bump.
* Revert "libwbclient: remove wbcSetUidHwm() - not implemented any more"Michael Adam2011-02-101-0/+6
| | | | | | This reverts commit 6558323c84cdd929716c59ba66d2ae6b699931d2. Undo the library version bump.
* Revert "libwbclient: remove wbcSetGidHwm() - not implemented any more"Michael Adam2011-02-101-0/+6
| | | | | | This reverts commit 68a9b726be84aaaaa340f19e175da448409430b3. Undo the library version bump.
* libwbclient: remove wbcSetGidHwm() - not implemented any moreMichael Adam2011-01-271-6/+0
|
* libwbclient: remove wbcSetUidHwm() - not implemented any moreMichael Adam2011-01-271-6/+0
|
* libwbclient: remove wbcRemoveGidMapping() - not implemented any moreMichael Adam2011-01-271-6/+0
|
* libwbclient: remove wbcRemoveUidMapping() - not implemented any moreMichael Adam2011-01-271-6/+0
|
* libwbclient: remove wbcSetGidMapping() - not implemented any moreMichael Adam2011-01-271-6/+0
|
* libwbclient: remove wbcSetUidMapping() - not implemented any moreMichael Adam2011-01-271-6/+0
|
* libwbclient: remove two unused definesMichael Adam2011-01-271-4/+0
|
* libwbclient: unimplement wbcRemoveGidMapping()Michael Adam2010-08-141-33/+2
| | | | Michael
* libwbclient: unimplement wbcRemoveUidMapping()Michael Adam2010-08-141-33/+2
| | | | Michael
* libwbclient: unimplement wbcSetGidMapping()Michael Adam2010-08-141-33/+2
| | | | Michael
* libwbclient: unimplement wbcSetUidMapping()Michael Adam2010-08-141-33/+2
| | | | Michael
* libwbclient: unimplement wbcSetGidHwm()Michael Adam2010-08-141-21/+2
| | | | Michael
* libwbclient: unimplement wbcSetUidHwm()Michael Adam2010-08-141-21/+2
| | | | Michael
* libwbclient: Re-Fix a bug that was fixed with e5741e27c4cVolker Lendecke2010-04-131-16/+16
| | | | | | | | | | | | | | | | | > r21878: Fix a bug with smbd serving a windows terminal server: If winbind > decides smbd to be idle it might happen that smbd needs to do a winbind > operation (for example sid2name) as non-root. This then fails to get the > privileged pipe. When later on on the same connection another authentication > request comes in, we try to do the CRAP auth via the non-privileged pipe. > > This adds a winbindd_priv_request_response() request that kills the existing > winbind pipe connection if it's not privileged. The fix for this was lost during the conversion to libwbclient. Thanks to Ira Cooper <samba@ira.wakeful.net> for pointing this out! Volker
* libwbclient: Separate out the async functionsKai Blin2010-02-131-421/+0
|
* libwbclient: Implement wbcGidToSid_send/recvKai Blin2010-02-111-0/+111
|
* libwbclient: Implement wbcSidToGid_send/recvKai Blin2010-02-111-0/+101
|
* libwbclient: Implement wbcUidToSid_send/recvKai Blin2010-02-111-0/+110
|
* libwbclient: Implement wbcSidToUid_send/recvKai Blin2010-02-111-0/+100
|
* libwbclient: Attempt to fix build on AIXKai Blin2009-06-041-0/+1
|
* nsswitch: Move source3 files to top level dir.Kai Blin2008-12-161-0/+468
Don't move source4 files yet to not confuse git's rename tracking too much.