Browse Source

-Add slash's code for ssh_host key support

-Add cli argument to request-server.py to let non interactive ssh session works
cmd_module
Cimbalo 9 years ago
parent
commit
c468869a7d
2 changed files with 12 additions and 1 deletions
  1. +7
    -0
      ca_manager.py
  2. +5
    -1
      request_server.py

+ 7
- 0
ca_manager.py View File

@ -215,6 +215,13 @@ class CAManager(object):
req_objs.append(
UserSSHRequest(
request_name, user_name, root_requested, key_data))
elif req['keyType'] == 'ssh_host':
host_name = req['hostName']
key_data = req['keyData']
req_objs.append(
HostSSHRequest(
request_name, host_name, key_data))
return req_objs


+ 5
- 1
request_server.py View File

@ -32,8 +32,12 @@ def main():
response = {}
try:
if (len(sys.argv) > 2):
request_data = sys.argv[2]
else:
request_data = sys.stdin.read(10000)
try:
metarequest = json.loads(request_data)
assert 'type' in metarequest
except:


Loading…
Cancel
Save