summaryrefslogtreecommitdiff
path: root/source3/winbindd/nss_info_template.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2017-01-03 12:35:15 +0000
committerVolker Lendecke <vl@samba.org>2017-01-04 12:22:13 +0100
commit319d60285c92bbf86bc0a3f872f9c9f9d0530129 (patch)
tree893922d05a0751551bf7dc6927d8dce42cc71309 /source3/winbindd/nss_info_template.c
parent3081efb74f4082a4a4b25d2ddb6a0e339183184f (diff)
downloadsamba-319d60285c92bbf86bc0a3f872f9c9f9d0530129.tar.gz
winbind: remove nss_get_info backend functions
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Uri Simchoni <uri@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source3/winbindd/nss_info_template.c')
-rw-r--r--source3/winbindd/nss_info_template.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/source3/winbindd/nss_info_template.c b/source3/winbindd/nss_info_template.c
index de93803064d..53159b6c02e 100644
--- a/source3/winbindd/nss_info_template.c
+++ b/source3/winbindd/nss_info_template.c
@@ -30,32 +30,6 @@ static NTSTATUS nss_template_init( struct nss_domain_entry *e )
return NT_STATUS_OK;
}
-/************************************************************************
- ***********************************************************************/
-
-static NTSTATUS nss_template_get_info( struct nss_domain_entry *e,
- const struct dom_sid *sid,
- TALLOC_CTX *ctx,
- const char **homedir,
- const char **shell,
- const char **gecos,
- gid_t *gid )
-{
- if ( !homedir || !shell || !gecos )
- return NT_STATUS_INVALID_PARAMETER;
-
- /* protect against home directories using whitespace in the
- username */
- *homedir = talloc_strdup( ctx, lp_template_homedir() );
- *shell = talloc_strdup( ctx, lp_template_shell() );
-
- if ( !*homedir || !*shell ) {
- return NT_STATUS_NO_MEMORY;
- }
-
- return NT_STATUS_OK;
-}
-
/**********************************************************************
*********************************************************************/
@@ -92,7 +66,6 @@ static NTSTATUS nss_template_close( void )
static struct nss_info_methods nss_template_methods = {
.init = nss_template_init,
- .get_nss_info = nss_template_get_info,
.map_to_alias = nss_template_map_to_alias,
.map_from_alias = nss_template_map_from_alias,
.close_fn = nss_template_close