fix commit
authorSimo Sorce <idra@samba.org>
Sun, 6 Apr 2003 16:01:18 +0000 (16:01 +0000)
committerSimo Sorce <idra@samba.org>
Sun, 6 Apr 2003 16:01:18 +0000 (16:01 +0000)
(This used to be commit ad1a2ab0d6330a0b0fbce7b30ec5f6f502133921)

source3/include/idmap.h
source3/sam/idmap.c

index a7cab741496fd42bc6c53029a867836e0405f7a1..1e56519453ab381a87494617066bf3e5c7cab81e 100644 (file)
@@ -45,7 +45,7 @@ struct idmap_methods {
 
        NTSTATUS (*get_sid_from_id)(DOM_SID *sid, unid_t id, int id_type);
        NTSTATUS (*get_id_from_sid)(unid_t *id, int *id_type, const DOM_SID *sid);
-       NTSTATUS (*set_mapping)(DOM_SID *sid, unid_t id, int id_type);
+       NTSTATUS (*set_mapping)(const DOM_SID *sid, unid_t id, int id_type);
 
        /* Called when backend is unloaded */
        NTSTATUS (*close)(void);
index 0e55ca51412149d70442f41c14df6fdfc3575457..00b45565bb01bd449ee8e6b38b36dd678ce9b612 100644 (file)
@@ -67,7 +67,7 @@ BOOL idmap_init(const char *remote_backend)
 {
        if (!local_map) {
                idmap_reg_tdb(&local_map);
-               local_map->init("idmap.tdb");
+               local_map->init();
        }
        
        if (!remote_map && remote_backend && *remote_backend != 0) {
@@ -78,7 +78,7 @@ BOOL idmap_init(const char *remote_backend)
                        DEBUG(0, ("load_methods: could not load remote backend '%s'\n", remote_backend));
                        return False;
                }
-               remote_map->init("");
+               remote_map->init();
        }
 
        return True;