[X2Go-User] X2Go-User Non-Digest, Vol 38, Issue 26

Mike Gabriel mike.gabriel at das-netzwerkteam.de
Fri Nov 1 14:27:33 CET 2013


Hi Ted,

On  Fr 01 Nov 2013 14:04:49 CET, Ted Barnes wrote:

> [...]

The problem is your authentication service's socket file...

x2gobroker and x2gobroker-authservice do talk to each other.  
x2gobroker sends username + password to the authservice via a socket  
and receives True or False back from the auth service.

The socket file on Debian wheezy normall is in  
/var/run/x2gobroker/x2gobroker-authservice.socket, on wheezy it is in  
/run/x2gobroker/x2gobroker-authservice.

The path of the authservice must be configured in  
/etc/defaults/python-x2gobroker. The configuration you make there does  
apply to all parts of the x2gobroker code.

However, obviously you found a bug here. See below...

> *authservice.log
> 2013-11-01 08:25:13,324 - authservice - INFO - X2Go Session Broker  
> (0.0.3.0), written by Mike Gabriel (X2Go Project)  
> <mike.gabriel at das-netzwerkteam.de>
> 2013-11-01 08:25:13,325 - authservice - INFO - Setting up the PAM  
> authentication service's environment...
> 2013-11-01 08:25:13,325 - authservice - INFO -   X2GOBROKER_DEBUG: False
> 2013-11-01 08:25:13,326 - authservice - INFO -


here...
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
> X2GOBROKER_AUTHSERVICE_SOCKET:  
> /var/run/x2gobroker/x2gobroker-authservice.socket

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

> *broker.log
> 2013-11-01 08:26:41,081 - broker - INFO - X2Go Session Broker (0.0.3.0),
> 2013-11-01 08:26:41,086 - broker - INFO -   written by Mike Gabriel  
> (X2Go Project) <mike.gabriel at das-netzwerkteam.de>
> 2013-11-01 08:26:41,086 - broker - INFO - Setting up the broker's  
> environment...
> 2013-11-01 08:26:41,086 - broker - INFO -   X2GOBROKER_DEBUG: False
> 2013-11-01 08:26:41,086 - broker - INFO -   X2GOBROKER_CONFIG:  
> /etc/x2go/x2gobroker.conf
> 2013-11-01 08:26:41,086 - broker - INFO -   X2GOBROKER_AGENT_CMD:  
> /usr/lib/x2go/x2gobroker-agent
> 2013-11-01 08:26:41,087 - broker - INFO -

and here...
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
> X2GOBROKER_AUTHSERVICE_SOCKET: /run/x2gobroker/x2gobroker-authservice.socket
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

> 2013-11-01 08:26:41,087 - broker - INFO -    
> X2GOBROKER_DEFAULT_BACKEND: zeroconf
> 2013-11-01 08:26:41,087 - broker - INFO -   X2GOBROKER_SSL_CERTFILE:
> 2013-11-01 08:26:41,087 - broker - INFO -   X2GOBROKER_SSL_KEYFILE:
> 2013-11-01 08:26:42,543 - broker - INFO - client address is xxx.xxx.xxx.xxx
> 2013-11-01 08:26:42,544 - broker - DEBUG - username: user, password:  
> XXXXX, task: listsessions, profile_id: , cookie:
> 2013-11-01 08:26:42,544 - broker - DEBUG -  
> base_broker.X2GoBroker.get_authentication_mechanism(): found  
> default-auth-mech in global config section: pam
> 2013-11-01 08:26:42,882 - broker - DEBUG -  
> base_broker.X2GoBroker._do_authenticate(): authenticating user=user  
> with password=<hidden> against backend=inifile.
> 2013-11-01 08:26:42,882 - broker - DEBUG - connecting to  
> authentication service socket  
> /run/x2gobroker/x2gobroker-authservice.socket
> 2013-11-01 08:26:44,842 - broker - DEBUG -  
> base_broker.X2GoBroker.check_access(): result of authentication  
> check is: False

> [...]

> * wsgi.log
> wsgilog.log: Fri, 01 Nov 2013 08:26:44 ERROR Server got itself in trouble
> Traceback (most recent call last):
>   File "/usr/lib/python2.6/dist-packages/wsgilog/__init__.py", line  
> 179, in __call__
>     return self.application(environ, start_response)
>   File "/usr/bin/x2gobroker", line 243, in _application
>     return _tornado_application(environ, start_response)
>   File "/usr/lib/python2.6/dist-packages/tornado/wsgi.py", line 94,  
> in __call__
>     assert handler._finished
> AssertionError

I am not sure about this one above, yet...

Greets,
Mike
-- 

DAS-NETZWERKTEAM
mike gabriel, herweg 7, 24357 fleckeby
fon: +49 (1520) 1976 148

GnuPG Key ID 0x25771B31
mail: mike.gabriel at das-netzwerkteam.de, http://das-netzwerkteam.de

freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-keys
Size: 7251 bytes
Desc: ?ffentlicher PGP-Schl?ssel
URL: <http://lists.x2go.org/pipermail/x2go-user/attachments/20131101/e0bb64ec/attachment.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digitale PGP-Signatur
URL: <http://lists.x2go.org/pipermail/x2go-user/attachments/20131101/e0bb64ec/attachment.pgp>


More information about the x2go-user mailing list