関数 | |
| 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] |
| 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.c の 37 行で定義されています。
参照先 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] |
| NTSTATUS nss_info_template_init | ( | void | ) |
nss_info_template.c の 79 行で定義されています。
参照先 nss_template_methods・smb_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.c の 73 行で定義されています。
1.4.7