From: Volker Lendecke Date: Tue, 3 Jan 2017 12:32:07 +0000 (+0000) Subject: winbind: Remove nss_get_info() X-Git-Tag: samba-4.6.0rc1~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3081efb74f4082a4a4b25d2ddb6a0e339183184f;p=thirdparty%2Fsamba.git winbind: Remove nss_get_info() Signed-off-by: Volker Lendecke Reviewed-by: Uri Simchoni Reviewed-by: Andreas Schneider --- diff --git a/source3/include/nss_info.h b/source3/include/nss_info.h index f92937e990d..b3fb151739b 100644 --- a/source3/include/nss_info.h +++ b/source3/include/nss_info.h @@ -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 ); diff --git a/source3/winbindd/nss_info.c b/source3/winbindd/nss_info.c index d7306ed71ac..2c6bb01aded 100644 --- a/source3/winbindd/nss_info.c +++ b/source3/winbindd/nss_info.c @@ -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 ); -} - /******************************************************************** *******************************************************************/