Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xavier Thompson
slapos.core
Commits
8c1eb769
Commit
8c1eb769
authored
Jul 07, 2017
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auth machine: Certificate Login reference is now the serial
parent
17ad921a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
master/product/SlapOS/SlapOSMachineAuthenticationPlugin.py
master/product/SlapOS/SlapOSMachineAuthenticationPlugin.py
+1
-2
No files found.
master/product/SlapOS/SlapOSMachineAuthenticationPlugin.py
View file @
8c1eb769
...
@@ -132,8 +132,7 @@ class SlapOSMachineAuthenticationPlugin(BasePlugin):
...
@@ -132,8 +132,7 @@ class SlapOSMachineAuthenticationPlugin(BasePlugin):
# search for user linked to this serial
# search for user linked to this serial
certificate_login_list
=
self
.
portal_catalog
.
unrestrictedSearchResults
(
certificate_login_list
=
self
.
portal_catalog
.
unrestrictedSearchResults
(
portal_type
=
self
.
certificate_portal_type
,
portal_type
=
self
.
certificate_portal_type
,
# XXX - reference should not contain '.crt.pem' here
reference
=
serial
.
lower
(),
reference
=
serial
.
lower
()
+
'.crt.pem'
,
validation_state
=
'validated'
)
validation_state
=
'validated'
)
creds
[
'machine_login'
]
=
None
creds
[
'machine_login'
]
=
None
if
len
(
certificate_login_list
)
!=
0
:
if
len
(
certificate_login_list
)
!=
0
:
...
...
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