ret = local_map->set_mapping(sid, id, id_type);
if (NT_STATUS_IS_ERR(ret)) {
DEBUG (0, ("idmap_set_mapping: Error, unable to modify local cache!\n"));
+ DEBUGADD(0, ("Error num. %d", NT_STATUS_V(ret)));
return ret;
}
remote_map->set_mapping(sid, id, id_type);
if (NT_STATUS_IS_ERR(ret)) {
DEBUG (0, ("idmap_set_mapping: Error, unable to modify remote cache!\n"));
+ DEBUGADD(0, ("Error num. %d", NT_STATUS_V(ret)));
}
}
ksid.dptr = ksidstr;
ksid.dsize = strlen(ksidstr) + 1;
- id_type &= ID_TYPEMASK;
if (id_type & ID_USERID) {
slprintf(kidstr, sizeof(kidstr), "UID %d", id.uid);
} else if (id_type & ID_GROUPID) {
kid.dsize = strlen(kidstr) + 1;
if (tdb_store(idmap_tdb, ksid, kid, TDB_INSERT) == -1) {
- /* TODO: print tdb error !! */
+ DEBUG(0, ("idb_set_mapping: tdb_store 1 error: %s", tdb_errorstr(idmap_tdb)));
return NT_STATUS_UNSUCCESSFUL;
}
if (tdb_store(idmap_tdb, kid, ksid, TDB_INSERT) == -1) {
- /* TODO: print tdb error !! */
+ DEBUG(0, ("idb_set_mapping: tdb_store 2 error: %s", tdb_errorstr(idmap_tdb)));
return NT_STATUS_UNSUCCESSFUL;
}
return NT_STATUS_OK;