Skip to content

Commit

Permalink
Only print out user authorized message if the ldap module is actually…
Browse files Browse the repository at this point in the history
… being used for user authorization
  • Loading branch information
arr2036 committed Oct 15, 2012
1 parent 9bd94fb commit f45bf93
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/modules/rlm_ldap/rlm_ldap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1811,8 +1811,9 @@ static int ldap_authorize(void *instance, REQUEST * request)
RDEBUG("Setting Auth-Type = %s", inst->auth_type);
}

RDEBUG("user %s authorized to use remote access",
request->username->vp_strvalue);
if (inst->access_attr)
RDEBUG("user %s authorized to use remote access",
request->username->vp_strvalue);
ldap_msgfree(result);
ldap_release_conn(conn_id,inst);

Expand Down

0 comments on commit f45bf93

Please sign in to comment.