URL:
https://github.com/SSSD/sssd/pull/351
Title: #351: NSS: Look for name attribute also in nss_cmd_getsidbyid
pbrezina commented:
"""
```c
const char *
sss_get_name_from_msg(struct sss_domain_info *domain,
struct ldb_message *msg)
{
const char *name;
/* If domain has a view associated we return overridden name
* if possible. */
if (DOM_HAS_VIEWS(domain)) {
name = ldb_msg_find_attr_as_string(msg, OVERRIDE_PREFIX SYSDB_NAME,
NULL);
if (name != NULL) {
return name;
}
}
/* Otherwise we try to return name override from
* Default Truest View for trusted users. */
name = ldb_msg_find_attr_as_string(msg, SYSDB_DEFAULT_OVERRIDE_NAME, NULL);
if (name != NULL) {
return name;
}
/* If no override is found we return the original name. */
return ldb_msg_find_attr_as_string(msg, SYSDB_NAME, NULL);
}
```
I don't see `ORIGINALAD_PREFIX SYSDB_NAME` here...
However I thought that the override attributes are added automatically but they are not so
all three of these attributes need to be there.
"""
See the full comment at
https://github.com/SSSD/sssd/pull/351#issuecomment-327404156