]> source.dussan.org Git - nextcloud-server.git/commitdiff
allows agent and password or neither agent nor password
authormiicha <pfitzner@physik.hu-berlin.de>
Tue, 5 Nov 2013 10:51:53 +0000 (11:51 +0100)
committermiicha <pfitzner@physik.hu-berlin.de>
Tue, 5 Nov 2013 10:51:53 +0000 (11:51 +0100)
this contribution is MIT licensed

apps/user_ldap/js/settings.js

index 79d0176baa9bf3cfc41638aeee13b30a2257dde8..aeb4b9bff59a580624387aeb5add80627969b1b5 100644 (file)
@@ -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 {