Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
feudalAdapterLDF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
13
Issues
13
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
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
feudal
feudalAdapterLDF
Commits
16030239
Commit
16030239
authored
May 18, 2020
by
marcus.hardt
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'deactivate-deregister' into 'master'
Deregister instead of Deactivate See merge request
!24
parents
59a53bb5
0d1ac8ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
ldf_adapter/backend/bwidm.py
ldf_adapter/backend/bwidm.py
+8
-1
No files found.
ldf_adapter/backend/bwidm.py
View file @
16030239
...
...
@@ -182,7 +182,14 @@ class User:
self
.
credentials
[
'ssh_user'
],
self
.
credentials
[
'ssh_host'
])
def
delete
(
self
):
"""Only deactivate, don't delete (deletion is not supported by BWIDM)."""
"""Deregister the user from the given service in BWIDM."""
BWIDM
.
get
(
'external-user'
,
'deregister'
,
'externalId'
,
self
.
info
.
unique_id
,
\
'ssn'
,
CONFIG
[
'backend.bwidm.service'
][
'name'
])
def
deactivate
(
self
):
"""Deactivate the user, this does not delete from BWIDM, but sets
the status to ON_HOLD, thereby disabling the user from ALL
services."""
BWIDM
.
get
(
'external-user'
,
'deactivate'
,
'externalId'
,
self
.
info
.
unique_id
)
def
mod
(
self
,
supplementary_groups
=
None
):
...
...
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