nsswitch/nss_info_template.c

ソースコードを見る。

関数

static NTSTATUS nss_template_init (struct nss_domain_entry *e)
static NTSTATUS nss_template_get_info (struct nss_domain_entry *e, const DOM_SID *sid, TALLOC_CTX *ctx, ADS_STRUCT *ads, LDAPMessage *msg, char **homedir, char **shell, char **gecos, gid_t *gid)
static NTSTATUS nss_template_close (void)
NTSTATUS nss_info_template_init (void)

変数

static struct nss_info_methods nss_template_methods


関数

static NTSTATUS nss_template_init ( struct nss_domain_entry e  )  [static]

nss_info_template.c29 行で定義されています。

00030 {
00031         return NT_STATUS_OK;
00032 }

static NTSTATUS nss_template_get_info ( struct nss_domain_entry e,
const DOM_SID sid,
TALLOC_CTX ctx,
ADS_STRUCT ads,
LDAPMessage *  msg,
char **  homedir,
char **  shell,
char **  gecos,
gid_t *  gid 
) [static]

nss_info_template.c37 行で定義されています。

参照先 talloc_strdup().

00046 {     
00047         if ( !homedir || !shell || !gecos )
00048                 return NT_STATUS_INVALID_PARAMETER;
00049         
00050         *homedir = talloc_strdup( ctx, lp_template_homedir() );
00051         *shell   = talloc_strdup( ctx, lp_template_shell() );
00052         *gecos   = NULL;
00053 
00054         if ( !*homedir || !*shell ) {
00055                 return NT_STATUS_NO_MEMORY;
00056         }
00057         
00058         return NT_STATUS_OK;
00059 }

static NTSTATUS nss_template_close ( void   )  [static]

nss_info_template.c64 行で定義されています。

00065 {
00066         return NT_STATUS_OK;
00067 }

NTSTATUS nss_info_template_init ( void   ) 

nss_info_template.c79 行で定義されています。

参照先 nss_template_methodssmb_register_idmap_nss().

00080 {
00081         return smb_register_idmap_nss(SMB_NSS_INFO_INTERFACE_VERSION, 
00082                                       "template", 
00083                                       &nss_template_methods);   
00084 }


変数

struct nss_info_methods nss_template_methods [static]

初期値:

 {
        .init         = nss_template_init,
        .get_nss_info = nss_template_get_info,
        .close_fn     = nss_template_close
}

nss_info_template.c73 行で定義されています。

参照元 nss_info_template_init().


Sambaに対してSat Aug 29 21:23:54 2009に生成されました。  doxygen 1.4.7