s3:idmap: remove the set_mapping method from the idmap API
authorMichael Adam <obnox@samba.org>
Wed, 19 May 2010 08:20:08 +0000 (10:20 +0200)
committerMichael Adam <obnox@samba.org>
Sat, 14 Aug 2010 00:10:36 +0000 (02:10 +0200)
source3/include/idmap.h
source3/winbindd/idmap_adex/idmap_adex.c
source3/winbindd/idmap_ldap.c
source3/winbindd/idmap_tdb.c
source3/winbindd/idmap_tdb2.c

index 27e4f8d51a1605b096393aec1474c7339a1a2a6a..c8df61c53c7c6e4bc114cf39b2508fa0ae4172d8 100644 (file)
@@ -50,8 +50,6 @@ struct idmap_methods {
           and type and gets back a uid or gid. */
        NTSTATUS (*sids_to_unixids)(struct idmap_domain *dom, struct id_map **ids);
 
-       NTSTATUS (*set_mapping)(struct idmap_domain *dom, const struct id_map *map);
-
        /* Called when backend is unloaded */
        NTSTATUS (*close_fn)(struct idmap_domain *dom);
 };
index 05b517071824f49d5a8a1145ab36fb372512e0d7..5e55df357e6b311ea277dd74f69267d717dd1917 100644 (file)
@@ -253,18 +253,6 @@ static NTSTATUS _idmap_adex_get_id_from_sid(struct
        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;
-}
-
 /**********************************************************************
  *********************************************************************/
 
@@ -396,7 +384,6 @@ static struct idmap_methods adex_idmap_methods = {
        .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,
        .close_fn         = _idmap_adex_close
 };
 static struct nss_info_methods adex_nss_methods = {
index 32bcff9e615f0b487d4625d46f710bd24aea40e6..fec8c47a06b18e4d2cd2b58ce66f8e9a13bc7a31 100644 (file)
@@ -1294,7 +1294,6 @@ static struct idmap_methods idmap_ldap_methods = {
        .init = idmap_ldap_db_init,
        .unixids_to_sids = idmap_ldap_unixids_to_sids,
        .sids_to_unixids = idmap_ldap_sids_to_unixids,
-       .set_mapping = idmap_ldap_set_mapping,
        .close_fn = idmap_ldap_close
 };
 
index 095889f2550179f2fcd46c25c71f817718318e81..554fdd29aac2b5c6498be1f1aac153cdcf8e05b0 100644 (file)
@@ -921,7 +921,6 @@ static struct idmap_methods db_methods = {
        .init = idmap_tdb_db_init,
        .unixids_to_sids = idmap_tdb_unixids_to_sids,
        .sids_to_unixids = idmap_tdb_sids_to_unixids,
-       .set_mapping = idmap_tdb_set_mapping,
        .close_fn = idmap_tdb_close
 };
 
index 4576ed68f23f379ff02b42edc424dc4c43ecabaa..048955954fd521204110cf96cd1b9fc69f4dbabf 100644 (file)
@@ -879,7 +879,6 @@ static struct idmap_methods db_methods = {
        .init            = idmap_tdb2_db_init,
        .unixids_to_sids = idmap_tdb2_unixids_to_sids,
        .sids_to_unixids = idmap_tdb2_sids_to_unixids,
-       .set_mapping     = idmap_tdb2_set_mapping,
        .close_fn        = idmap_tdb2_close
 };