Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Fri Nov 7 16:06:50 UTC 2025 on atb-devel-224
ok = ads_pull_uint32(ads, msg, "sAMAccountType", &atype);
if (!ok) {
ok = ads_pull_uint32(ads, msg, "sAMAccountType", &atype);
if (!ok) {
- DBG_INFO("Object lacks sAMAccountType attribute\n");
+ char *dn = ads_get_dn(ads, talloc_tos(), msg);
+ DBG_INFO("Object %s lacks sAMAccountType attribute\n",
+ dn == NULL ? "(null)" : dn);
+ TALLOC_FREE(dn);
continue;
}
if (ds_atype_map(atype) != SID_NAME_USER) {
continue;
}
if (ds_atype_map(atype) != SID_NAME_USER) {
- DBG_INFO("Not a user account? atype=0x%x\n", atype);
+ char *dn = ads_get_dn(ads, talloc_tos(), msg);
+ DBG_INFO("Object %s not a user account? atype=0x%x\n",
+ dn == NULL ? "(null)" : dn, atype);
+ TALLOC_FREE(dn);
continue;
}
if (!ads_pull_sid(ads, msg, "objectSid", &user_sid)) {
char *dn = ads_get_dn(ads, talloc_tos(), msg);
continue;
}
if (!ads_pull_sid(ads, msg, "objectSid", &user_sid)) {
char *dn = ads_get_dn(ads, talloc_tos(), msg);
- DBG_INFO("No sid for %s !?\n", dn);
+ DBG_INFO("No sid for %s !?\n",
+ dn == NULL ? "(null)" : dn);
TALLOC_FREE(dn);
continue;
}
TALLOC_FREE(dn);
continue;
}