aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/js
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2015-05-08 17:15:29 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-05-18 18:14:05 +0200
commit5a563936579110bfa7d333ae8f32121cbc36cc7d (patch)
tree0d9b5c31e449fd8fcee9502583f2dda4ccb8c28a /apps/user_ldap/js
parentb9e53097577499b519f9fcdd053421cb1507bab3 (diff)
downloadnextcloud-server-5a563936579110bfa7d333ae8f32121cbc36cc7d.tar.gz
nextcloud-server-5a563936579110bfa7d333ae8f32121cbc36cc7d.zip
throw exception on LDAP error 1, which we usually do not see and is pretty generic. AD uses is for uses not enlisted in the RFC, like on issues with anonymous binds. we also try to guess this case and show a hint.
Diffstat (limited to 'apps/user_ldap/js')
-rw-r--r--apps/user_ldap/js/wizard/wizardTabGeneric.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/user_ldap/js/wizard/wizardTabGeneric.js b/apps/user_ldap/js/wizard/wizardTabGeneric.js
index c272df7e3cc..b755f3ca060 100644
--- a/apps/user_ldap/js/wizard/wizardTabGeneric.js
+++ b/apps/user_ldap/js/wizard/wizardTabGeneric.js
@@ -74,7 +74,13 @@ OCA = OCA || {};
&& !this.configModel.configuration.ldap_dn)
{
message = t('user_ldap', 'Anonymous bind is not allowed. Please provide a User DN and Password.');
+ } else if (message === 'LDAP Operations error'
+ && !this.configModel.configuration.ldap_dn
+ && !this.configModel.configuration.ldap_agent_password)
+ {
+ message = t('user_ldap', 'LDAP Operations error. Anonymous bind might not be allowed.');
}
+
return message;
},