diff options
author | miicha <pfitzner@physik.hu-berlin.de> | 2013-11-05 11:51:53 +0100 |
---|---|---|
committer | miicha <pfitzner@physik.hu-berlin.de> | 2013-11-05 11:51:53 +0100 |
commit | ef1183bf863795c03d15d03065bc6a3821640088 (patch) | |
tree | 0f7a45408fe75fac792d71778b6f0673c48f2e19 /apps/user_ldap/js | |
parent | 5b9bdaadaac4e2ff205d9428d4843e3eca40297f (diff) | |
download | nextcloud-server-ef1183bf863795c03d15d03065bc6a3821640088.tar.gz nextcloud-server-ef1183bf863795c03d15d03065bc6a3821640088.zip |
allows agent and password or neither agent nor password
this contribution is MIT licensed
Diffstat (limited to 'apps/user_ldap/js')
-rw-r--r-- | apps/user_ldap/js/settings.js | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |