lib: modules: Change XXX_init interface from XXX_init(void) to XXX_init(TALLOC_CTX *)
[samba.git] / source3 / winbindd / nss_info.c
index d7306ed71acaf92fa4f194873e60add37e5e70c0..9ef7e20b987a7579aa73c88af089489d9a42533e 100644 (file)
@@ -173,7 +173,7 @@ static NTSTATUS nss_init(const char **nss_list)
 
        nss_backend = nss_get_backend("template");
        if (nss_backend == NULL) {
-               static_init_nss_info;
+               static_init_nss_info(NULL);
        }
 
        /* Create the list of nss_domains (loading any shared plugins
@@ -303,32 +303,6 @@ static struct nss_domain_entry *find_nss_domain( const char *domain )
        return p;
 }
 
-/********************************************************************
- *******************************************************************/
-
-NTSTATUS nss_get_info( const char *domain, const struct dom_sid *user_sid,
-                      TALLOC_CTX *ctx,
-                      const char **homedir, const char **shell,
-                      const char **gecos, gid_t *p_gid)
-{
-       struct nss_domain_entry *p;
-       struct nss_info_methods *m;
-
-       DEBUG(10, ("nss_get_info called for sid [%s] in domain '%s'\n",
-                  sid_string_dbg(user_sid), domain?domain:"NULL"));
-
-       if ( (p = find_nss_domain( domain )) == NULL ) {
-               DEBUG(4,("nss_get_info: Failed to find nss domain pointer for %s\n",
-                        domain ));
-               return NT_STATUS_NOT_FOUND;
-       }
-
-       m = p->backend->methods;
-
-       return m->get_nss_info( p, user_sid, ctx,
-                               homedir, shell, gecos, p_gid );
-}
-
 /********************************************************************
  *******************************************************************/