]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:lib: add winbind_lookup_name_ex() fallback for --without-winbind
authorStefan Metzmacher <metze@samba.org>
Tue, 6 Aug 2024 15:20:38 +0000 (17:20 +0200)
committerVolker Lendecke <vl@samba.org>
Wed, 7 Aug 2024 06:18:31 +0000 (06:18 +0000)
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>
source3/lib/winbind_util.c

index 0852c3d02814889c978101e0538e7ef897758a82..ece0cbf2114aa500ff63fc7c47da3324ab64562a 100644 (file)
@@ -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,