[X2Go-Commits] [x2gobroker] 01/01: If we received an SSH public key from a broker client, mark it as ACCEPTED after we deployed it, so that the client knows that it can its corresponding private key.

git-admin at x2go.org git-admin at x2go.org
Wed Mar 19 15:43:15 CET 2014


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository x2gobroker.

commit b264b5e6ac8713d247fdb0c02637865b7e9a70df
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Wed Mar 19 15:30:21 2014 +0100

    If we received an SSH public key from a broker client, mark it as ACCEPTED after we deployed it, so that the client knows that it can its corresponding private key.
---
 debian/changelog                  |    3 +++
 x2gobroker/brokers/base_broker.py |    3 +++
 2 files changed, 6 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index a866d42..a0812e4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -107,6 +107,9 @@ x2gobroker (0.0.3.0-0x2go1) UNRELEASED; urgency=low
       broker agents.
     - Support adding remote broker agent's host keys via the
       x2gobroker-testagent tool.
+    - If we received an SSH public key from a broker client, mark it as
+      ACCEPTED after we deployed it, so that the client knows that it can
+      its corresponding private key.
   * debian/control:
     + Replace LDAP support with session brokerage support in LONG_DESCRIPTION.
     + Fix SYNOPSIS texts.
diff --git a/x2gobroker/brokers/base_broker.py b/x2gobroker/brokers/base_broker.py
index 9b52aef..dd69189 100644
--- a/x2gobroker/brokers/base_broker.py
+++ b/x2gobroker/brokers/base_broker.py
@@ -1125,6 +1125,9 @@ class X2GoBroker(object):
                                                     query_mode=agent_query_mode,
                                                     remote_agent=remote_agent,
                 ),
+                selected_session.update({
+                    'authentication_pubkey': 'ACCEPTED',
+                })
                 x2gobroker.agent.delete_authorized_key(username=username,
                                                        pubkey_hash=pubkey,
                                                        authorized_keys_file=self.get_authorized_keys_file(profile_id),

--
Alioth's /srv/git/_hooks_/post-receive-email on /srv/git/code.x2go.org/x2gobroker.git



More information about the x2go-commits mailing list