winbind: Remove nss_get_info()
authorVolker Lendecke <vl@samba.org>
Tue, 3 Jan 2017 12:32:07 +0000 (12:32 +0000)
committerVolker Lendecke <vl@samba.org>
Wed, 4 Jan 2017 11:22:13 +0000 (12:22 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Uri Simchoni <uri@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/include/nss_info.h
source3/winbindd/nss_info.c

index f92937e990de119d8aa3ab77b1c334512c128d42..b3fb151739b29c2203a37c431e390d5c556cc320 100644 (file)
@@ -82,11 +82,6 @@ NTSTATUS smb_register_idmap_nss(int version,
                                const char *name, 
                                struct nss_info_methods *methods);
 
-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);
-
 NTSTATUS nss_map_to_alias( TALLOC_CTX *mem_ctx, const char *domain,
                           const char *name, char **alias );
 
index d7306ed71acaf92fa4f194873e60add37e5e70c0..2c6bb01aded2e81f417c0761ac0dc270363344dc 100644 (file)
@@ -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 );
-}
-
 /********************************************************************
  *******************************************************************/