mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-01-24 07:16:52 -06:00
Fixed 'No password supplied' error occurring on auto-detected servers.
This commit is contained in:
parent
c8a2057410
commit
b7c0914f33
@ -1362,7 +1362,8 @@ class ServerNode(PGChildNodeView):
|
||||
except Exception as e:
|
||||
current_app.logger.exception(e)
|
||||
return internal_server_error(errormsg=str(e))
|
||||
if 'password' not in data and server.kerberos_conn is False:
|
||||
if 'password' not in data and (server.kerberos_conn is False or
|
||||
server.kerberos_conn is None):
|
||||
conn_passwd = getattr(conn, 'password', None)
|
||||
if conn_passwd is None and not server.save_password and \
|
||||
server.passfile is None and server.service is None:
|
||||
|
@ -184,7 +184,7 @@ class Server(db.Model):
|
||||
tunnel_identity_file = db.Column(db.String(64), nullable=True)
|
||||
tunnel_password = db.Column(db.String(64), nullable=True)
|
||||
shared = db.Column(db.Boolean(), nullable=False)
|
||||
kerberos_conn = db.Column(db.Boolean(), nullable=False)
|
||||
kerberos_conn = db.Column(db.Boolean(), nullable=False, default=0)
|
||||
|
||||
@property
|
||||
def serialize(self):
|
||||
|
Loading…
Reference in New Issue
Block a user