From c427b795c7e649ae7f747cde11f47ad021406fb2 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 27 Feb 2011 19:09:28 +0100 Subject: [PATCH] s3: properly find our standard nss_info backends Right now, the nss_info backends are tied to the idmap backends (which is wrong IMHO). In the domain child we don't load the idmap backend anymore, so we don't have the nss info modules. This needs fixing properly. --- source3/winbindd/nss_info.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/source3/winbindd/nss_info.c b/source3/winbindd/nss_info.c index 67ffbf21cc..a243a03948 100644 --- a/source3/winbindd/nss_info.c +++ b/source3/winbindd/nss_info.c @@ -203,6 +203,19 @@ static NTSTATUS nss_init(const char **nss_list) /* validate the backend */ + nss_backend = nss_get_backend(backend); + if (nss_backend == NULL) { + /* + * This is a freaking hack. We don't have proper + * modules for nss_info backends. Right now we have + * our standard nss_info backends in the ad backend. + */ + status = smb_probe_module("idmap", "ad"); + if ( !NT_STATUS_IS_OK(status) ) { + continue; + } + } + nss_backend = nss_get_backend(backend); if (nss_backend == NULL) { /* attempt to register the backend */ -- 2.34.1