Skip to content

Commit

Permalink
Process attribute maps if we just have a generic attribute set
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Nov 26, 2013
1 parent 24b6e16 commit 3f72f74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/valuepair.c
Expand Up @@ -1813,7 +1813,7 @@ static VALUE_PAIR *pairmake_any(TALLOC_CTX *ctx,
* @param[in] ctx for talloc
* @param[in] vps list where the attribute will be added (optional)
* @param[in] attribute name.
* @param[in] value attribute value.
* @param[in] value attribute value (may be NULL if value will be set later).
* @param[in] op to assign to new VALUE_PAIR.
* @return a new VALUE_PAIR.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/modules/rlm_ldap/rlm_ldap.c
Expand Up @@ -1032,7 +1032,7 @@ static rlm_rcode_t mod_authorize(void *instance, REQUEST *request)
}
}

if (inst->user_map) {
if (inst->user_map || inst->valuepair_attr) {
rlm_ldap_map_do(inst, request, conn->handle, &expanded, entry);
rlm_ldap_check_reply(inst, request);
}
Expand Down

0 comments on commit 3f72f74

Please sign in to comment.