/********************************************************************** Register with the idmap and idmap_nss subsystems. We have to protect against the idmap and nss_info interfaces being in a half-registered state. **********************************************************************/ NTSTATUS samba_module_init(void) { static NTSTATUS idmap_status = NT_STATUS_UNSUCCESSFUL; static NTSTATUS nss_status = NT_STATUS_UNSUCCESSFUL; if (!NT_STATUS_IS_OK(idmap_status)) { idmap_status = smb_register_idmap(SMB_IDMAP_INTERFACE_VERSION, "adex", &adex_idmap_methods); if (!NT_STATUS_IS_OK(idmap_status)) { DEBUG(0, ("idmap_centeris_init: Failed to register the adex" "idmap plugin.\n")); return idmap_status; } } if (!NT_STATUS_IS_OK(nss_status)) { nss_status = smb_register_idmap_nss(SMB_NSS_INFO_INTERFACE_VERSION, "adex", &adex_nss_methods); if (!NT_STATUS_IS_OK(nss_status)) { DEBUG(0, ("idmap_adex_init: Failed to register the adex" "nss plugin.\n")); return nss_status; } } return NT_STATUS_OK; }
NTSTATUS nss_info_template_init( void ) { return smb_register_idmap_nss(SMB_NSS_INFO_INTERFACE_VERSION, "template", &nss_template_methods); }