#include "includes.h"
#include "ads.h"
+#include "idmap.h"
#include "idmap_adex.h"
#include "nss_info.h"
#include "secrets.h"
it will be dropped from the idmap backend list.
*******************************************************************/
-static NTSTATUS _idmap_adex_init(struct idmap_domain *dom,
- const char *params)
+static NTSTATUS _idmap_adex_init(struct idmap_domain *dom)
{
ADS_STRUCT *ads = NULL;
ADS_STATUS status;
ids[i]->status = ID_UNKNOWN;
}
- nt_status = _idmap_adex_init(dom, NULL);
+ nt_status = _idmap_adex_init(dom);
if (!NT_STATUS_IS_OK(nt_status))
return nt_status;
ids[i]->status = ID_UNKNOWN;
}
- nt_status = _idmap_adex_init(dom, NULL);
+ nt_status = _idmap_adex_init(dom);
if (!NT_STATUS_IS_OK(nt_status))
return nt_status;
return NT_STATUS_OK;
}
-/**********************************************************************
- *********************************************************************/
-
-static NTSTATUS _idmap_adex_set_mapping(struct
- idmap_domain
- *dom, const struct
- id_map *map)
-{
- DEBUG(0, ("_idmap_adex_set_mapping: not implemented\n"));
- return NT_STATUS_NOT_IMPLEMENTED;
-}
-
-/**********************************************************************
- *********************************************************************/
-
-static NTSTATUS _idmap_adex_remove_mapping(struct
- idmap_domain
- *dom, const
- struct
- id_map
- *map)
-{
- DEBUG(0, ("_idmap_adex_remove_mapping: not implemented\n"));
- return NT_STATUS_NOT_IMPLEMENTED;
-}
-
-/**********************************************************************
- *********************************************************************/
-
-static NTSTATUS _idmap_adex_dump(struct idmap_domain
- *dom, struct id_map **maps, int *num_map)
-{
- return NT_STATUS_NOT_IMPLEMENTED;
-}
-
-/**********************************************************************
- *********************************************************************/
-
-static NTSTATUS _idmap_adex_close(struct idmap_domain
- *dom)
-{
- /* FIXME! need to do cleanup here */
-
- return NT_STATUS_OK;
-}
-
/*
* IdMap NSS plugin
*/
static NTSTATUS _nss_adex_init(struct nss_domain_entry
*e)
{
- return _idmap_adex_init(NULL, NULL);
+ return _idmap_adex_init(NULL);
}
/**********************************************************************
nss_domain_entry *e,
const struct dom_sid * sid,
TALLOC_CTX * ctx,
- ADS_STRUCT * ads,
- LDAPMessage * msg,
const char **homedir,
const char **shell,
const char **gecos, gid_t * p_gid)
NTSTATUS nt_status;
struct likewise_cell *cell;
- nt_status = _idmap_adex_init(NULL, NULL);
+ nt_status = _idmap_adex_init(NULL);
if (!NT_STATUS_IS_OK(nt_status))
return nt_status;
NTSTATUS nt_status = NT_STATUS_UNSUCCESSFUL;
struct likewise_cell *cell = NULL;
- nt_status = _idmap_adex_init(NULL, NULL);
+ nt_status = _idmap_adex_init(NULL);
BAIL_ON_NTSTATUS_ERROR(nt_status);
if ((cell = cell_list_head()) == NULL) {
NTSTATUS nt_status = NT_STATUS_UNSUCCESSFUL;
struct likewise_cell *cell = NULL;
- nt_status = _idmap_adex_init(NULL, NULL);
+ nt_status = _idmap_adex_init(NULL);
BAIL_ON_NTSTATUS_ERROR(nt_status);
if ((cell = cell_list_head()) == NULL) {
.init = _idmap_adex_init,
.unixids_to_sids = _idmap_adex_get_sid_from_id,
.sids_to_unixids = _idmap_adex_get_id_from_sid,
- .set_mapping = _idmap_adex_set_mapping,
- .remove_mapping = _idmap_adex_remove_mapping,
- .dump_data = _idmap_adex_dump,
- .close_fn = _idmap_adex_close
};
static struct nss_info_methods adex_nss_methods = {
.init = _nss_adex_init,
against the idmap and nss_info interfaces being in a half-registered
state.
**********************************************************************/
-NTSTATUS idmap_adex_init(void)
+NTSTATUS samba_init_module(void)
{
static NTSTATUS idmap_status = NT_STATUS_UNSUCCESSFUL;
static NTSTATUS nss_status = NT_STATUS_UNSUCCESSFUL;
return NT_STATUS_OK;
}
-
-static NTSTATUS nss_info_adex_init(void)
-{
- return idmap_adex_init();
-}