Skip to content
Snippets Groups Projects
Commit 12573302 authored by Chris Hines's avatar Chris Hines
Browse files

remove posix username validation ... I think it will work ok without it

parent 1def3a6d
No related branches found
No related tags found
2 merge requests!83was trying to get the tunnel based on the csrf-token header which is wrong. So...,!82was trying to get the tunnel based on the csrf-token header which is wrong. So...
Checking pipeline status
......@@ -193,7 +193,7 @@ class Ssh:
if sess.socket is None:
raise SshAgentException("No ssh-agent yet")
env['SSH_AUTH_SOCK'] = sess.socket
Ssh.validate_username(user)
#Ssh.validate_username(user)
Ssh.validate_hostname(host)
ctrlsocket = Ssh.get_ctrl_master_socket(sess, host, user, sshport)
sftpcmd = Ssh.SFTPCMDWITHOPTS.copy()
......@@ -239,7 +239,7 @@ class Ssh:
if sess.socket is None:
raise SshAgentException("No ssh-agent yet")
env['SSH_AUTH_SOCK'] = sess.socket
Ssh.validate_username(user)
#Ssh.validate_username(user)
Ssh.validate_hostname(host)
ctrlsocket = Ssh.get_ctrl_master_socket(sess, host, user, sshport)
if (path is None or path == ""):
......@@ -297,7 +297,7 @@ class Ssh:
host,sshport = host.split(':')
if bastion is not None and ":" in bastion:
bastion,bastionsshport = bastion.split(':')
Ssh.validate_username(user)
#Ssh.validate_username(user)
Ssh.validate_hostname(host)
Ssh.validate_command(cmd)
if bastion == None:
......@@ -403,7 +403,7 @@ class Ssh:
host,sshport = host.split(':')
Ssh.validate_port(port)
Ssh.validate_hostname(batchhost)
Ssh.validate_username(user)
#Ssh.validate_username(user)
Ssh.validate_hostname(host)
ctrlsocket = Ssh.get_ctrl_master_socket(sess, host, user, sshport)
localport = Ssh.get_free_port()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment