From: miicha Date: Tue, 5 Nov 2013 10:51:53 +0000 (+0100) Subject: allows agent and password or neither agent nor password X-Git-Tag: v6.0.0beta3~6^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ef1183bf863795c03d15d03065bc6a3821640088;p=nextcloud-server.git allows agent and password or neither agent nor password this contribution is MIT licensed --- diff --git a/apps/user_ldap/js/settings.js b/apps/user_ldap/js/settings.js index 79d0176baa9..aeb4b9bff59 100644 --- a/apps/user_ldap/js/settings.js +++ b/apps/user_ldap/js/settings.js @@ -172,7 +172,7 @@ var LdapWizard = { pwd = $('#ldap_agent_password').val(); base = $('#ldap_base').val(); - if(host && port && base) { + if((host && port && base) && ((!agent && !pwd) || (agent && pwd))) { $('.ldap_action_continue').removeAttr('disabled'); $('#ldapSettings').tabs('option', 'disabled', []); } else {