KEYCLOAK-13260 Fix "Test authentication" button for LDAP User Federation

This commit is contained in:
vmuzikar 2020-03-09 12:20:10 +01:00 committed by Stian Thorgersen
parent e4baef41d1
commit a840d6ff9a

View file

@ -1682,7 +1682,7 @@ module.controller('LDAPUserStorageCtrl', function($scope, $location, Notificatio
$scope.testAuthentication = function() {
console.log('LDAPCtrl: testAuthentication');
RealmLDAPConnectionTester.save(initConnectionTest("testAuthentication", $scope.instance.config), function() {
RealmLDAPConnectionTester.save({realm: realm.realm}, initConnectionTest("testAuthentication", $scope.instance.config), function() {
Notifications.success("LDAP authentication successful.");
}, function() {
Notifications.error("LDAP authentication failed. See server.log for details");