This is an automated email from the git hooks/post-receive script. x2go pushed a change to branch master in repository x2gobroker. from 12d564d debian/changelog: add entry for last change. new fbb5600 sbin/x2gobroker-authservice: adapt script to correctly use the newer python-pam module, which now exposes functionality in pam.pam with backwards compatibility. Fixes: #1056. new 5932f1e sbin/x2gobroker-authservice: refactor pam.pam section a bit. new d68ec35 x2gobroker/authmechs/pam_authmech.py: port pam.pam change to this file as well. The 3 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Summary of changes: debian/changelog | 10 ++++++++++ sbin/x2gobroker-authservice | 5 ++++- x2gobroker/authmechs/pam_authmech.py | 5 ++++- 3 files changed, 18 insertions(+), 2 deletions(-) -- Alioth's /srv/git/code.x2go.org/x2gobroker.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/x2gobroker.git
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch master in repository x2gobroker. commit fbb5600f7858d387e15ce289bcfd33158047c188 Author: Walid Moghrabi <w.moghrabi@servicemagic.eu> Date: Sun Jul 10 04:07:20 2016 +0200 sbin/x2gobroker-authservice: adapt script to correctly use the newer python-pam module, which now exposes functionality in pam.pam with backwards compatibility. Fixes: #1056. --- debian/changelog | 6 ++++++ sbin/x2gobroker-authservice | 6 +++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 91dae8d..466985c 100644 --- a/debian/changelog +++ b/debian/changelog @@ -17,6 +17,12 @@ x2gobroker (0.0.3.1-0x2go1) UNRELEASED; urgency=low - Uploaders: add myself. Also, force a rebuild due to the changed versioning. + [ Walid Moghrabi ] + * New upstream version (0.0.3.1): + - sbin/x2gobroker-authservice: adapt script to correctly use the newer + python-pam module, which now exposes functionality in pam.pam with + backwards compatibility. Fixes: #1056. + -- Mike Gabriel <mike.gabriel@das-netzwerkteam.de> Sun, 19 Jul 2015 21:58:43 +0200 x2gobroker (0.0.3.0-0x2go1) unstable; urgency=low diff --git a/sbin/x2gobroker-authservice b/sbin/x2gobroker-authservice index be6ea4b..bccbde2 100755 --- a/sbin/x2gobroker-authservice +++ b/sbin/x2gobroker-authservice @@ -78,7 +78,11 @@ class AuthClient(asyncore.dispatcher_with_send): self.send('bad\n') self.logger.warning('bad authentication data received') else: - if pam.authenticate(user, passwd, service): + if pam.pam: + opam = pam.pam() + else: + opam = pam + if opam.authenticate(user, passwd, service): self.send('ok\n') self.logger.info('successful authentication for \'{user}\' with password \'<hidden>\' against PAM service \'{service}\''.format(user=user, service=service)) else: -- Alioth's /srv/git/code.x2go.org/x2gobroker.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/x2gobroker.git
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch master in repository x2gobroker. commit 5932f1e7610439bf4f8f29f6bcc56d27f064f164 Author: Mihai Moldovan <ionic@ionic.de> Date: Sun Jul 10 04:27:00 2016 +0200 sbin/x2gobroker-authservice: refactor pam.pam section a bit. Always initialize opam with pam and only rewrite it with pam.pam if necessary. --- debian/changelog | 2 ++ sbin/x2gobroker-authservice | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 466985c..2c4ebe3 100644 --- a/debian/changelog +++ b/debian/changelog @@ -12,6 +12,8 @@ x2gobroker (0.0.3.1-0x2go1) UNRELEASED; urgency=low [ Mihai Moldovan ] * New upstream version (0.0.3.1): + - sbin/x2gobroker-authservice: refactor pam.pam section a bit. Always + initialize opam with pam and only rewrite it with pam.pam if necessary. * debian/control: - Maintainer change in package: X2Go Developers <x2go-dev@lists.x2go.org>. - Uploaders: add myself. Also, force a rebuild due to the changed diff --git a/sbin/x2gobroker-authservice b/sbin/x2gobroker-authservice index bccbde2..00decb1 100755 --- a/sbin/x2gobroker-authservice +++ b/sbin/x2gobroker-authservice @@ -78,10 +78,9 @@ class AuthClient(asyncore.dispatcher_with_send): self.send('bad\n') self.logger.warning('bad authentication data received') else: + opam = pam if pam.pam: opam = pam.pam() - else: - opam = pam if opam.authenticate(user, passwd, service): self.send('ok\n') self.logger.info('successful authentication for \'{user}\' with password \'<hidden>\' against PAM service \'{service}\''.format(user=user, service=service)) -- Alioth's /srv/git/code.x2go.org/x2gobroker.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/x2gobroker.git
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch master in repository x2gobroker. commit d68ec356ba142b9b5f127edf99e4fce1232098af Author: Mihai Moldovan <ionic@ionic.de> Date: Sun Jul 10 04:28:36 2016 +0200 x2gobroker/authmechs/pam_authmech.py: port pam.pam change to this file as well. --- debian/changelog | 2 ++ x2gobroker/authmechs/pam_authmech.py | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 2c4ebe3..41180fa 100644 --- a/debian/changelog +++ b/debian/changelog @@ -14,6 +14,8 @@ x2gobroker (0.0.3.1-0x2go1) UNRELEASED; urgency=low * New upstream version (0.0.3.1): - sbin/x2gobroker-authservice: refactor pam.pam section a bit. Always initialize opam with pam and only rewrite it with pam.pam if necessary. + - x2gobroker/authmechs/pam_authmech.py: port pam.pam change to this file + as well. * debian/control: - Maintainer change in package: X2Go Developers <x2go-dev@lists.x2go.org>. - Uploaders: add myself. Also, force a rebuild due to the changed diff --git a/x2gobroker/authmechs/pam_authmech.py b/x2gobroker/authmechs/pam_authmech.py index 9e992fa..038be70 100644 --- a/x2gobroker/authmechs/pam_authmech.py +++ b/x2gobroker/authmechs/pam_authmech.py @@ -40,7 +40,10 @@ class X2GoBrokerAuthMech(object): logger_error.error('Authentication against authentication service failed, trying direct PAM authentication (which is likely to fail on most PAM setups).') logger_error.error('Make sure the current user ({user}) is allowed to use the PAM authentication mechanism.'.format(user=getpass.getuser())) # fallback to direct PAM authentication against the PAM service ,,x2gobroker'' - if pam.authenticate(username, password, service="x2gobroker"): + opam = pam + if pam.pam: + opam = pam.pam() + if opam.authenticate(username, password, service="x2gobroker"): return True return False -- Alioth's /srv/git/code.x2go.org/x2gobroker.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/x2gobroker.git