mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Revert "1) Added support for Kerberos authentication, using SPNEGO to forward the Kerberos tickets through a browser. Fixes #5457"
This reverts commit 6ead597b43.
This commit is contained in:
@@ -23,7 +23,6 @@ from .internal import BaseAuthentication
|
||||
from pgadmin.model import User, ServerGroup, db, Role
|
||||
from flask import current_app
|
||||
from pgadmin.tools.user_management import create_user
|
||||
from pgadmin.utils.constants import LDAP
|
||||
|
||||
|
||||
ERROR_SEARCHING_LDAP_DIRECTORY = "Error searching the LDAP directory: {}"
|
||||
@@ -32,9 +31,6 @@ ERROR_SEARCHING_LDAP_DIRECTORY = "Error searching the LDAP directory: {}"
|
||||
class LDAPAuthentication(BaseAuthentication):
|
||||
"""Ldap Authentication Class"""
|
||||
|
||||
def get_source_name(self):
|
||||
return LDAP
|
||||
|
||||
def get_friendly_name(self):
|
||||
return gettext("ldap")
|
||||
|
||||
@@ -155,7 +151,7 @@ class LDAPAuthentication(BaseAuthentication):
|
||||
'email': user_email,
|
||||
'role': 2,
|
||||
'active': True,
|
||||
'auth_source': LDAP
|
||||
'auth_source': 'ldap'
|
||||
})
|
||||
|
||||
return True, None
|
||||
|
||||
Reference in New Issue
Block a user