Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
python-module-privacyidea-pam
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Eugene Omelyanovich
python-module-privacyidea-pam
Commits
eb1e743e
Commit
eb1e743e
authored
Mar 02, 2016
by
Brandon Smith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Print a message about interacting with U2F token
parent
3cfa8da6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
privacyidea_pam.py
privacyidea_pam.py
+4
-1
ssh-u2f.py
ssh-u2f.py
+3
-1
No files found.
privacyidea_pam.py
View file @
eb1e743e
...
...
@@ -147,7 +147,10 @@ class Authenticator(object):
----- BEGIN U2F CHALLENGE -----
%
s
%
s
----- END U2F CHALLENGE -----"""
%
(
self
.
URL
,
json
.
dumps
(
attributes
[
"u2fSignRequest"
]))
%
s
----- END U2F CHALLENGE -----"""
%
(
self
.
URL
,
json
.
dumps
(
attributes
[
"u2fSignRequest"
]),
str
(
detail
.
get
(
"message"
,
""
)))
if
transaction_id
:
if
challenge
:
rval
=
self
.
challenge_response
(
transaction_id
,
...
...
ssh-u2f.py
View file @
eb1e743e
...
...
@@ -69,7 +69,9 @@ while True:
elif
index
==
1
:
u2f_origin
=
ssh
.
readline
()
.
strip
()
u2f_challenge
=
ssh
.
readline
()
.
strip
()
ssh
.
expect
(
"----- END U2F CHALLENGE -----"
)
ssh
.
expect
(
"(.*)----- END U2F CHALLENGE -----"
)
message
=
ssh
.
match
.
group
(
1
)
.
strip
()
print
(
message
or
"Interact with your U2F token."
)
p
=
subprocess
.
Popen
([
"u2f-host"
,
"-aauthenticate"
,
"-o"
,
u2f_origin
],
stdin
=
subprocess
.
PIPE
,
stdout
=
subprocess
.
PIPE
)
out
,
err
=
p
.
communicate
(
u2f_challenge
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment