diff options
Diffstat (limited to 'source3/nsswitch')
-rw-r--r-- | source3/nsswitch/nss_info.c | 26 | ||||
-rw-r--r-- | source3/nsswitch/nss_info_template.c | 9 | ||||
-rw-r--r-- | source3/nsswitch/winbindd_ads.c | 4 |
3 files changed, 3 insertions, 36 deletions
diff --git a/source3/nsswitch/nss_info.c b/source3/nsswitch/nss_info.c index 747de4a2ba..0b0caeee02 100644 --- a/source3/nsswitch/nss_info.c +++ b/source3/nsswitch/nss_info.c @@ -20,8 +20,6 @@ Boston, MA 02111-1307, USA. */ -#ifdef WITH_ADS - #include "includes.h" #include "nss_info.h" @@ -266,27 +264,3 @@ static BOOL parse_nss_parm( const char *config, char **backend, char **domain ) return NT_STATUS_OK; } -/******************************************************************** - Invoke the init function for a given domain's backend - *******************************************************************/ - - NTSTATUS idmap_nss_init_domain( const char *domain ) -{ - struct nss_domain_entry *p; - - DEBUG(10,("idmap_nss_init_domain: Searching for %s's init() function\n", - domain)); - - for ( p=nss_domain_list; p; p=p->next ) { - if ( strequal( p->domain, domain ) ) { - DEBUG(10,("idmap_nss_init_domain: Calling init function for %s\n", - domain)); - return p->backend->methods->init( p ); - } - } - - return NT_STATUS_NO_SUCH_DOMAIN; -} - -#endif /* WITH_ADS */ - diff --git a/source3/nsswitch/nss_info_template.c b/source3/nsswitch/nss_info_template.c index 1b644d7b35..2a14428802 100644 --- a/source3/nsswitch/nss_info_template.c +++ b/source3/nsswitch/nss_info_template.c @@ -20,8 +20,6 @@ Boston, MA 02111-1307, USA. */ -#ifdef WITH_ADS - #include "includes.h" #include "nss_info.h" @@ -73,9 +71,9 @@ static NTSTATUS nss_template_close( void ) ***********************************************************************/ static struct nss_info_methods nss_template_methods = { - nss_template_init, - nss_template_get_info, - nss_template_close + .init = nss_template_init, + .get_nss_info = nss_template_get_info, + .close_fn = nss_template_close }; NTSTATUS nss_info_template_init( void ) @@ -85,4 +83,3 @@ NTSTATUS nss_info_template_init( void ) &nss_template_methods); } -#endif /* WITH_ADS */ diff --git a/source3/nsswitch/winbindd_ads.c b/source3/nsswitch/winbindd_ads.c index fc6308deed..f572dd08ff 100644 --- a/source3/nsswitch/winbindd_ads.c +++ b/source3/nsswitch/winbindd_ads.c @@ -125,10 +125,6 @@ static ADS_STRUCT *ads_cached_connection(struct winbindd_domain *domain) return NULL; } - /* initialize the nss backend for this domain */ - - idmap_nss_init_domain( domain->name ); - /* set the flag that says we don't own the memory even though we do so that ads_destroy() won't destroy the structure we pass back by reference */ |