mirror of https://github.com/tp4a/teleport
解决普通用户无法使用私钥进行远程SSH连接的问题(手误)。
parent
4ae6d4c5b5
commit
98172db2f8
|
@ -730,7 +730,7 @@ def get_auth_info(auth_id):
|
||||||
elif db_item.c_auth_mode == 2:
|
elif db_item.c_auth_mode == 2:
|
||||||
cert_id = db_item.c_cert_id
|
cert_id = db_item.c_cert_id
|
||||||
|
|
||||||
sql = 'SELECT `cert_pri` FROM `{}key` WHERE `cert_id`={}'.format(int(cert_id))
|
sql = 'SELECT `cert_pri` FROM `{}key` WHERE `cert_id`={}'.format(db.table_prefix, int(cert_id))
|
||||||
db_ret = db.query(sql)
|
db_ret = db.query(sql)
|
||||||
if db_ret is None or len(db_ret) > 1:
|
if db_ret is None or len(db_ret) > 1:
|
||||||
return None
|
return None
|
||||||
|
|
Loading…
Reference in New Issue