Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Robert Verkerk
B2SAFE Core
Commits
6208eafe
Commit
6208eafe
authored
Nov 19, 2018
by
Claudio Cacciari
Browse files
added support for http endpoints and OAuth2 PAM configuration
parent
32b78434
Changes
1
Hide whitespace changes
Inline
Side-by-side
cmd/pam_user_reader.py
0 → 100755
View file @
6208eafe
#!/usr/bin/env python
#
# * use 4 spaces!!! not tabs
# * See PEP-8 Python style guide http://www.python.org/dev/peps/pep-0008/
# * use pylint
#
import
json
user_map_file
=
"/etc/irods/user_map.json"
def
parseUserMap
():
"""Parse the user map file"""
with
open
(
user_map_file
,
'r'
)
as
f
:
user_map
=
json
.
load
(
f
)
jstr
=
json
.
dumps
(
user_map
,
ensure_ascii
=
True
,
indent
=
4
)
print
(
jstr
)
if
__name__
==
"__main__"
:
parseUserMap
()
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