Skip to content

Commit

Permalink
Rename case_sensitivity to ldap_case_sensitivity for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
stevendanna committed Sep 25, 2015
1 parent 331fb26 commit 6116344
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/oc_erchef/apps/chef_objects/src/chef_user.erl
Original file line number Diff line number Diff line change
Expand Up @@ -468,13 +468,13 @@ is_indexed(_ObjectRec) ->

fetch(#chef_user{server_api_version = ApiVersion,
username = undefined, external_authentication_uid = AuthUid} = Record, CallbackFun) ->
fetch_user(external_auth_id_query(ApiVersion, case_sensitivity()), Record, AuthUid, CallbackFun);
fetch_user(external_auth_id_query(ApiVersion, ldap_case_sensitivity()), Record, AuthUid, CallbackFun);
fetch(#chef_user{server_api_version = ?API_v0, username = UserName} = Record, CallbackFun) ->
fetch_user(find_user_by_username_v0, Record, UserName, CallbackFun);
fetch(#chef_user{username = UserName} = Record, CallbackFun) ->
fetch_user(find_user_by_username, Record, UserName, CallbackFun).

case_sensitivity() ->
ldap_case_sensitivity() ->
LdapConfig = envy:get(oc_chef_wm, ldap, [], list),
proplists:get_value(case_sensitive_login_attribute, LdapConfig, false).

Expand Down

0 comments on commit 6116344

Please sign in to comment.