summaryrefslogtreecommitdiff
path: root/source3/lib/winbind_util.c
AgeCommit message (Collapse)AuthorFilesLines
2024-08-07s3:lib: add winbind_lookup_name_ex() fallback for --without-winbindStefan Metzmacher1-0/+11
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15687 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
2024-07-26s3/passdb: add winbind_lookup_name_ex()Ralph Boehme1-0/+40
Differs from winbind_lookup_name() by - returning NTSTATUS instead of bool, so callers can distinguish between STATUS_NAME_NOT_FOUND lookup results and real errors. Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2019-03-06lib/winbind_util: Add winbind_xid_to_sid for --without-winbindChristof Schmitt1-0/+7
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13813 Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Mar 6 01:53:16 UTC 2019 on sn-devel-144
2019-03-06lib/winbind_util: Remove winbind_[gu]id_to_sidChristof Schmitt1-14/+0
Commit c906153cc7 removed these functions, now also remove them for the --without-winbind case. Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2019-03-06lib/winbind_util: Move include out of ifdefChristof Schmitt1-2/+2
This fixes compile errors about missing prototypes with --picky-developer and --without-winbind Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2019-02-28lib: Remove some unused codeVolker Lendecke1-34/+0
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Christof Schmitt <cs@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Thu Feb 28 13:53:41 UTC 2019 on sn-devel-144
2019-02-28lib: Introduce winbind_xid_to_sidVolker Lendecke1-0/+30
This does not merge a winbind communication error into "global_sid_NULL" (S-1-0-0), which by the way non-intuitively does not go along with is_null_sid(). Instead, this just touches the output sid when winbind returned success. This success might well be a negative mapping indicated by S-0-0, which *is* is_null_sid()... Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Christof Schmitt <cs@samba.org> Bug: https://bugzilla.samba.org/show_bug.cgi?id=13813
2018-12-20lib: Use dom_sid_str_bufVolker Lendecke1-1/+2
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
2017-03-28lib: Remove unused winbind_get_groups and _get_sid_aliasesVolker Lendecke1-83/+0
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2017-02-15lib: Fix some whitespaceVolker Lendecke1-21/+21
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2015-05-13Convert all uint32/16/8 to _t in source3/lib.Richard Sharpe1-2/+2
Signed-off-by: Richard Sharpe <rsharpe@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2014-05-16lib: Fix build --without-winbind by adding winbind_lookup_usersids dummyKai Blin1-0/+8
When building without winbind lib/winbind_util.c was missing a dummy function for winbind_lookup_usersids() Signed-off-by: Kai Blin <kai@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Autobuild-User(master): Kai Blin <kai@samba.org> Autobuild-Date(master): Fri May 16 17:19:18 CEST 2014 on sn-devel-104
2014-02-05s3-lib: Add winbind_lookup_usersids().Andreas Schneider1-0/+34
Pair-Programmed-With: Guenther Deschner <gd@samba.org> Signed-off-by: Guenther Deschner <gd@samba.org> Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2011-06-09s3-talloc Change TALLOC_ARRAY() to talloc_array()Andrew Bartlett1-5/+5
Using the standard macro makes it easier to move code into common, as TALLOC_ARRAY isn't standard talloc.
2011-05-05Fix many const compiler warnings.Jeremy Allison1-1/+1
2011-03-30s3-winbind: try to fix the build on hosts w/o winbind support.Günther Deschner1-1/+1
Guenther
2011-03-30s3-winbind: remove global inclusion of libwbclient.Günther Deschner1-0/+1
Guenther
2011-03-30lib/util/util_pw: share more code between lib/util/util_pw.c and ↵Günther Deschner1-0/+1
source3/lib/username.c Guenther
2010-10-12libcli/security Provide a common, top level libcli/security/security.hAndrew Bartlett1-0/+1
This will reduce the noise from merges of the rest of the libcli/security code, without this commit changing what code is actually used. This includes (along with other security headers) dom_sid.h and security_token.h Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Oct 12 05:54:10 UTC 2010 on sn-devel-104
2010-05-21s3:dom_sid Global replace of DOM_SID with struct dom_sidAndrew Bartlett1-23/+23
This matches the structure that new code is being written to, and removes one more of the old-style named structures, and the need to know that is is just an alias for struct dom_sid. Andrew Bartlett Signed-off-by: Günther Deschner <gd@samba.org>
2009-08-07Fix some nonempty blank linesVolker Lendecke1-13/+13
2009-03-19s3: Fix a free of an uninitialized variable in winbind_get_sid_aliasesDan Sledz1-1/+0
2009-02-17Fix warning about missmatch of uint32_t and size_t.Jeremy Allison1-1/+1
Jeremy.
2009-02-11s3: Implement wbcGetSidAliasesDan Sledz1-0/+84
* Adds wbcGetSidAliases that calls the lookup_useraliases function. * Updates wbinfo and winbind_util.c to call the new function. * Also added winbind_get_groups helper function.
2009-02-11s3: Implement wbcGetpwsidDan Sledz1-0/+47
* 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.
2008-01-14Fix crash in winbind clients: instead of talloc-based pointer we passed ↵Alexander Bokovoy1-1/+1
address of a local variable. (This used to be commit a861ff20917eeca303e2d36de71cd8614e937d5f)
2008-01-02use C99 bool return types (true & false).Gerald (Jerry) Carter1-17/+17
(This used to be commit f22c9d6296c754d472e8eab51caa058f55ef370e)
2008-01-02Make sure that wbcLookupSid() and wbcLookupRids() use talloc()'d memory.Gerald (Jerry) Carter1-7/+8
Follows existing convention that all returned memory should be freed with wbcFreeMemory() and not directly with free(). Noticed by Volker. Txs. (This used to be commit 39c2059f66ee9eb471a503b9c776807b91c2a8f8)
2007-12-23tiny simplificationVolker Lendecke1-4/+0
(This used to be commit 8bd248456205a82d57af21559a77a1030f4679b7)
2007-12-21Compile fix: Correct use of wbcDomainInfo() after function signature change.Gerald (Jerry) Carter1-4/+3
Also fixes a doxygen warngin about an undocumented parameter in the same function. (This used to be commit 290ab64e9e5fb2a28e14a5f344f22119d5304563)
2007-12-21De-couple smbd from staticly linking against winbindd client files.Gerald (Jerry) Carter1-0/+325
Implements a wrapper layer in winbind_util.c which are just stubs if compiled --without-winbind. When building with winbindd, it is now required to build the libwbclient DSO first (in the Makefile) and then either set LD_LIBRARY_PATH or /etc/ld.so.conf to pick up the library PATH. (This used to be commit 42787bccff4fcffafc7aae6a678e792604ecaaa5)