external ldap: show proper error message on timeout

This commit is contained in:
Girish Ramakrishnan
2024-01-23 23:27:06 +01:00
parent 5240068f2f
commit 793ee38f79
3 changed files with 8 additions and 6 deletions

View File

@@ -265,6 +265,7 @@ angular.module('Application').controller('UserSettingsController', ['$scope', '$
if (error.statusCode === 424) {
if (error.code === 'SELF_SIGNED_CERT_IN_CHAIN') $scope.externalLdap.error.acceptSelfSignedCerts = true;
else $scope.externalLdap.error.url = true;
$scope.externalLdap.error.generic = error.message;
} else if (error.statusCode === 400 && error.message === 'invalid baseDn') {
$scope.externalLdap.error.baseDn = true;
} else if (error.statusCode === 400 && error.message === 'invalid filter') {