From: Stefan Metzmacher Date: Tue, 6 Aug 2024 15:20:38 +0000 (+0200) Subject: s3:lib: add winbind_lookup_name_ex() fallback for --without-winbind X-Git-Tag: tdb-1.4.13~1400 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5b31b723c06a0b41f9d47e47ce79818e07d3b831;p=thirdparty%2Fsamba.git s3:lib: add winbind_lookup_name_ex() fallback for --without-winbind BUG: https://bugzilla.samba.org/show_bug.cgi?id=15687 Signed-off-by: Stefan Metzmacher Reviewed-by: Volker Lendecke --- diff --git a/source3/lib/winbind_util.c b/source3/lib/winbind_util.c index 0852c3d0281..ece0cbf2114 100644 --- a/source3/lib/winbind_util.c +++ b/source3/lib/winbind_util.c @@ -363,6 +363,17 @@ bool winbind_lookup_name(const char *dom_name, const char *name, struct dom_sid return false; } +_PRIVATE_ +NTSTATUS winbind_lookup_name_ex(const char *dom_name, + const char *name, + struct dom_sid *sid, + enum lsa_SidType *name_type) +{ + *name_type = SID_NAME_UNKNOWN; + ZERO_STRUCTP(sid); + return NT_STATUS_OK; +} + /* Call winbindd to convert sid to name */ bool winbind_lookup_sid(TALLOC_CTX *mem_ctx, const struct dom_sid *sid,