(unsigned int)uid,
expired ? " (expired)": ""));
if (expired && idmap_is_online()) {
- DEBUG(10, ("revalidating expired entry\n"));
+ DEBUG(2, ("revalidating expired entry for uid %u => %s\n",
+ (unsigned int)uid, sid_string_dbg(sid)));
goto backend;
}
if (is_null_sid(sid)) {
- DEBUG(10, ("Returning negative cache entry\n"));
+ DEBUG(2, ("Returning negative cache entry: for uid %u\n",
+ (unsigned int)uid));
return NT_STATUS_NONE_MAPPED;
}
DEBUG(10, ("Returning positive cache entry\n"));
ret = idmap_backends_unixid_to_sid(domname, &map);
if ( ! NT_STATUS_IS_OK(ret)) {
- DEBUG(10, ("error mapping uid [%lu]\n", (unsigned long)uid));
+ DEBUG(1, ("error mapping uid [%lu]\n", (unsigned long)uid));
return ret;
}
ZERO_STRUCT(null_sid);
idmap_cache_set_sid2uid(&null_sid, uid);
}
- DEBUG(10, ("uid [%lu] not mapped\n", (unsigned long)uid));
+ DEBUG(1, ("uid [%lu] not mapped\n", (unsigned long)uid));
return NT_STATUS_NONE_MAPPED;
}
(unsigned int)gid,
expired ? " (expired)": ""));
if (expired && idmap_is_online()) {
- DEBUG(10, ("revalidating expired entry\n"));
+ DEBUG(2, ("revalidating expired entry gid %u => %s\n",
+ (unsigned int)gid, sid_string_dbg(sid)));
goto backend;
}
if (is_null_sid(sid)) {
- DEBUG(10, ("Returning negative cache entry\n"));
+ DEBUG(2, ("Returning negative cache entry gid %u\n",
+ (unsigned int)gid));
return NT_STATUS_NONE_MAPPED;
}
DEBUG(10, ("Returning positive cache entry\n"));
ret = idmap_backends_unixid_to_sid(domname, &map);
if ( ! NT_STATUS_IS_OK(ret)) {
- DEBUG(10, ("error mapping gid [%lu]\n", (unsigned long)gid));
+ DEBUG(1, ("error mapping gid [%lu]\n", (unsigned long)gid));
return ret;
}
ZERO_STRUCT(null_sid);
idmap_cache_set_sid2gid(&null_sid, gid);
}
- DEBUG(10, ("gid [%lu] not mapped\n", (unsigned long)gid));
+ DEBUG(1, ("gid [%lu] not mapped\n", (unsigned long)gid));
return NT_STATUS_NONE_MAPPED;
}
DEBUG(10, ("idmap_cache_find_sid2uid found %d%s\n",
(int)(*uid), expired ? " (expired)": ""));
if (expired && idmap_is_online()) {
- DEBUG(10, ("revalidating expired entry\n"));
+ DEBUG(2, ("revalidating expired entry\n"));
goto backend;
}
if ((*uid) == -1) {
- DEBUG(10, ("Returning negative cache entry\n"));
+ DEBUG(2, ("Returning negative cache entry\n"));
return NT_STATUS_NONE_MAPPED;
}
DEBUG(10, ("Returning positive cache entry\n"));
}
if (map.status != ID_MAPPED) {
- DEBUG(10, ("sid [%s] is not mapped\n", sid_string_dbg(sid)));
+ DEBUG(1, ("sid [%s] is not mapped\n", sid_string_dbg(sid)));
if (winbindd_use_idmap_cache()) {
idmap_cache_set_sid2uid(sid, -1);
}
}
if (map.xid.type != ID_TYPE_UID) {
- DEBUG(10, ("sid [%s] not mapped to a uid "
+ DEBUG(1, ("sid [%s] not mapped to a uid "
"[%u,%u,%u]\n",
sid_string_dbg(sid),
map.status,
if (winbindd_use_idmap_cache()
&& idmap_cache_find_sid2gid(sid, gid, &expired)) {
- DEBUG(10, ("idmap_cache_find_sid2gid found %d%s\n",
+ DEBUG(10, ("idmap_cache_find_sid2gid %s found %d%s\n",
+ sid_string_dbg(sid),
(int)(*gid), expired ? " (expired)": ""));
if (expired && idmap_is_online()) {
- DEBUG(10, ("revalidating expired entry\n"));
+ DEBUG(2, ("revalidating expired entry\n"));
goto backend;
}
if ((*gid) == -1) {
ret = idmap_backends_sid_to_unixid(domname, &map);
if (!NT_STATUS_IS_OK(ret)) {
- DEBUG(10, ("idmap_backends_sid_to_unixid failed: %s\n",
- nt_errstr(ret)));
+ DEBUG(1, ("idmap_backends_sid_to_unixid failed for %s as GID: %s\n",
+ sid_string_dbg(sid), nt_errstr(ret)));
if (winbindd_use_idmap_cache()) {
idmap_cache_set_sid2gid(sid, -1);
}
}
if (map.status != ID_MAPPED) {
- DEBUG(10, ("sid [%s] is not mapped\n", sid_string_dbg(sid)));
+ DEBUG(1, ("sid [%s] is not mapped as GID\n", sid_string_dbg(sid)));
if (winbindd_use_idmap_cache()) {
idmap_cache_set_sid2gid(sid, -1);
}
}
if (map.xid.type != ID_TYPE_GID) {
- DEBUG(10, ("sid [%s] not mapped to a gid "
+ DEBUG(1, ("sid [%s] not mapped to a gid "
"[%u,%u,%u]\n",
sid_string_dbg(sid),
map.status,