Commit 16030239 authored by marcus.hardt's avatar marcus.hardt

Merge branch 'deactivate-deregister' into 'master'

Deregister instead of Deactivate

See merge request !24
parents 59a53bb5 0d1ac8ae
......@@ -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):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment