URL: https://github.com/SSSD/sssd/pull/136
Title: #136: Tlog integration
pbrezina commented:
"""
You can obtain name of the primary group by calling `sysdb_getgrgid` on
`SYSDB_GIDNUMBER` attribute of the user. You can introduce new function to
sysdb that will do this, e.g. `sysdb_get_primary_group`.
If we hit the branch that returns EAGAIN, we issue the request without
post-process function in the caller:
```
dp_get_account_info_handler:
if ((data->entry_type & BE_REQ_TYPE_MASK) == BE_REQ_INITGROUPS) {
ret = dp_initgroups(sbus_req, dp_cli, key, dp_flags, data);
if (ret != EAGAIN) {
goto done;
}
}
dp_req_with_reply(dp_cli, domain, "Account", key,
sbus_req, DPT_ID, DPM_ACCOUNT_HANDLER, dp_flags, data,
dp_req_reply_std, struct dp_reply_std);
```
"""
See the full comment at
https://github.com/SSSD/sssd/pull/136#issuecomment-293520669
_______________________________________________
sssd-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]