1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
Commit Graph

42 Commits

Author SHA1 Message Date
Ralph Boehme
2327471756 lib: relicense smb_strtoul(l) under LGPLv3
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
2020-08-03 22:21:02 +00:00
Swen Schillig
bf020a8c8d nsswitch: Update all consumers of strtoul_err(), strtoull_err() to new API
Signed-off-by: Swen Schillig <swen@linux.ibm.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Christof Schmitt <cs@samba.org>
2019-06-30 11:32:18 +00:00
Swen Schillig
ea7231dcc0 libwbclient: Use wrapper for string to integer conversion
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>
2019-03-01 00:32:11 +00:00
Volker Lendecke
d8a7caa5b0 libwbclient: Protect wbcCtxUnixIdsToSids against integer-wrap
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Christof Schmitt <cs@samba.org>
2019-02-28 12:57:23 +00:00
Volker Lendecke
148452b446 libwbclient: Use wbcCtxUnixIdsToSids in wbcCtxGidToSid
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
2016-02-22 20:29:16 +01:00
Volker Lendecke
1e4e215f2f libwbclient: Use wbcCtxUnixIdsToSids in wbcCtxUidToSid
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
2016-02-22 20:29:16 +01:00
Volker Lendecke
122b1a3650 libwbclient: Use wbcCtxSidsToUnixIds in wbcCtxSidToGid
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
2016-02-22 20:29:15 +01:00
Volker Lendecke
fbbe017820 libwbclient: Use wbcCtxSidsToUnixIds in wbcCtxSidToUid
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
2016-02-22 20:29:15 +01:00
Volker Lendecke
171931cf7d libwbclient: Implement wbc[Ctx]UnixIdsToSids
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
2016-02-22 20:29:15 +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
Andrew Tridgell
7945949177 libwbclient: added support for WBC_ID_TYPE_BOTH
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>
2011-09-23 00:16:41 +02:00
Andrew Tridgell
38198e8f3e nsswitch: make the wbcSidsToUnixIds() parser more robust
this allows it to handle new types of responses

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-09-08 15:09:54 +02:00
Volker Lendecke
a93c49d7e6 libwbclient: Add wbcSidsToUnixIds
Signed-off-by: Jeremy Allison <jra@samba.org>
2011-04-13 14:13:25 -07:00
Volker Lendecke
7ffa7e4bca libwbclient: Use wbcSidToStringBuf 2011-03-05 14:29:32 +01:00
Michael Adam
0def826ec5 Revert "libwbclient: remove two unused defines"
This reverts commit 58bf6f9ff0.

Undo the library version bump.
2011-02-10 13:57:32 +01:00
Michael Adam
7dca8bcbb9 Revert "libwbclient: remove wbcSetUidMapping() - not implemented any more"
This reverts commit 25a0dc44f7.

Undo the library version bump.
2011-02-10 13:57:32 +01:00
Michael Adam
1f4a06e64f Revert "libwbclient: remove wbcSetGidMapping() - not implemented any more"
This reverts commit 52e1be2139.

Undo the library version bump.
2011-02-10 13:57:32 +01:00
Michael Adam
ecbb223989 Revert "libwbclient: remove wbcRemoveUidMapping() - not implemented any more"
This reverts commit 1ed5961df2.

Undo the library version bump.
2011-02-10 13:57:32 +01:00
Michael Adam
75b2a2f999 Revert "libwbclient: remove wbcRemoveGidMapping() - not implemented any more"
This reverts commit 393c866c51.

Undo the library version bump.
2011-02-10 13:57:32 +01:00
Michael Adam
748cccde42 Revert "libwbclient: remove wbcSetUidHwm() - not implemented any more"
This reverts commit 6558323c84.

Undo the library version bump.
2011-02-10 13:57:32 +01:00
Michael Adam
7a3bc46e7b Revert "libwbclient: remove wbcSetGidHwm() - not implemented any more"
This reverts commit 68a9b726be.

Undo the library version bump.
2011-02-10 13:57:31 +01:00
Michael Adam
68a9b726be libwbclient: remove wbcSetGidHwm() - not implemented any more 2011-01-27 21:58:02 +01:00
Michael Adam
6558323c84 libwbclient: remove wbcSetUidHwm() - not implemented any more 2011-01-27 21:57:24 +01:00
Michael Adam
393c866c51 libwbclient: remove wbcRemoveGidMapping() - not implemented any more 2011-01-27 21:56:47 +01:00
Michael Adam
1ed5961df2 libwbclient: remove wbcRemoveUidMapping() - not implemented any more 2011-01-27 21:56:11 +01:00
Michael Adam
52e1be2139 libwbclient: remove wbcSetGidMapping() - not implemented any more 2011-01-27 21:55:42 +01:00
Michael Adam
25a0dc44f7 libwbclient: remove wbcSetUidMapping() - not implemented any more 2011-01-27 21:54:25 +01:00
Michael Adam
58bf6f9ff0 libwbclient: remove two unused defines 2011-01-27 21:46:12 +01:00
Michael Adam
1ac8bf4ea8 libwbclient: unimplement wbcRemoveGidMapping()
Michael
2010-08-14 02:10:33 +02:00
Michael Adam
89100cb509 libwbclient: unimplement wbcRemoveUidMapping()
Michael
2010-08-14 02:10:32 +02:00
Michael Adam
788123ec2e libwbclient: unimplement wbcSetGidMapping()
Michael
2010-08-14 02:10:32 +02:00
Michael Adam
2e65703508 libwbclient: unimplement wbcSetUidMapping()
Michael
2010-08-14 02:10:32 +02:00
Michael Adam
ec33a624a3 libwbclient: unimplement wbcSetGidHwm()
Michael
2010-08-14 02:10:31 +02:00
Michael Adam
e09a269bcc libwbclient: unimplement wbcSetUidHwm()
Michael
2010-08-14 02:10:31 +02:00
Volker Lendecke
be813ff2d4 libwbclient: Re-Fix a bug that was fixed with e5741e27c4
> 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
2010-04-13 13:30:53 +02:00
Kai Blin
b99d9f86e4 libwbclient: Separate out the async functions 2010-02-13 14:30:36 +01:00
Kai Blin
57886720bb libwbclient: Implement wbcGidToSid_send/recv 2010-02-11 23:56:34 +01:00
Kai Blin
ada6e26d5e libwbclient: Implement wbcSidToGid_send/recv 2010-02-11 23:56:34 +01:00
Kai Blin
446b4aa17c libwbclient: Implement wbcUidToSid_send/recv 2010-02-11 23:56:34 +01:00
Kai Blin
4ff1906357 libwbclient: Implement wbcSidToUid_send/recv 2010-02-11 23:56:34 +01:00
Kai Blin
5e67aa92f6 libwbclient: Attempt to fix build on AIX 2009-06-04 22:32:50 +02: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