int is_url;
int chase_referrals;
int rebind;
+ int expect_password;
char *login;
char *password;
char *filter;
offsetof(ldap_instance,port), NULL, "389"},
{"password", PW_TYPE_STRING_PTR,
offsetof(ldap_instance,password), NULL, ""},
+ {"expect_password", PW_TYPE_BOOLEAN,
+ offsetof(ldap_instance,expect_password), NULL, "yes"},
{"identity", PW_TYPE_STRING_PTR,
offsetof(ldap_instance,login), NULL, ""},
* More warning messages for people who can't be bothered
* to read the documentation.
*/
- if (debug_flag > 1) {
+ if (inst->expect_password && (debug_flag > 1)) {
if (!pairfind(request->config_items, PW_CLEARTEXT_PASSWORD) &&
!pairfind(request->config_items, PW_NT_PASSWORD) &&
!pairfind(request->config_items, PW_USER_PASSWORD) &&