"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/providers/ldap/sdap_sudo_refresh.c" between
sssd-2.4.1.tar.gz and sssd-2.4.2.tar.gz

About: SSSD is a system daemon to manage identity, authentication and authorization for centrally-managed systems. It provides several interfaces, including NSS and PAM modules or a D-Bus interface.

sdap_sudo_refresh.c  (sssd-2.4.1):sdap_sudo_refresh.c  (sssd-2.4.2)
skipping to change at line 184 skipping to change at line 184
req = tevent_req_create(mem_ctx, &state, struct sdap_sudo_smart_refresh_stat e); req = tevent_req_create(mem_ctx, &state, struct sdap_sudo_smart_refresh_stat e);
if (req == NULL) { if (req == NULL) {
DEBUG(SSSDBG_CRIT_FAILURE, "tevent_req_create() failed\n"); DEBUG(SSSDBG_CRIT_FAILURE, "tevent_req_create() failed\n");
return NULL; return NULL;
} }
state->id_ctx = id_ctx; state->id_ctx = id_ctx;
state->sysdb = id_ctx->be->domain->sysdb; state->sysdb = id_ctx->be->domain->sysdb;
/* Download all rules from LDAP that are newer than usn */ /* Download all rules from LDAP that are newer than usn */
if (srv_opts == NULL || srv_opts->max_sudo_value == 0) { if (srv_opts == NULL || srv_opts->max_sudo_value == NULL
DEBUG(SSSDBG_TRACE_FUNC, "USN value is unknown, assuming zero.\n"); || strcmp(srv_opts->max_sudo_value, "0") == 0) {
DEBUG(SSSDBG_TRACE_FUNC, "USN value is unknown, assuming zero and "
"omitting it from the filter.\n");
usn = "0"; usn = "0";
search_filter = talloc_asprintf(state, "(%s=%s)", search_filter = talloc_asprintf(state, "(%s=%s)",
map[SDAP_AT_SUDO_OC].name, map[SDAP_AT_SUDO_OC].name,
map[SDAP_OC_SUDORULE].name); map[SDAP_OC_SUDORULE].name);
} else { } else {
usn = srv_opts->max_sudo_value; usn = srv_opts->max_sudo_value;
search_filter = talloc_asprintf(state, "(&(%s=%s)(%s>=%s))", search_filter = talloc_asprintf(state, "(&(%s=%s)(%s>=%s))",
map[SDAP_AT_SUDO_OC].name, map[SDAP_AT_SUDO_OC].name,
map[SDAP_OC_SUDORULE].name, map[SDAP_OC_SUDORULE].name,
map[SDAP_AT_SUDO_USN].name, usn); map[SDAP_AT_SUDO_USN].name, usn);
 End of changes. 1 change blocks. 
2 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)