mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
netcmd: models: add object sid field to User model
Signed-off-by: Rob van der Linde <rob@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
This commit is contained in:
parent
bf37d538e6
commit
c5a2d57e5f
@ -24,7 +24,7 @@ from ldb import Dn
|
||||
|
||||
from samba.dsdb import DS_GUID_USERS_CONTAINER
|
||||
|
||||
from .fields import DnField, StringField
|
||||
from .fields import DnField, SIDField, StringField
|
||||
from .model import Model
|
||||
|
||||
|
||||
@ -32,6 +32,7 @@ class User(Model):
|
||||
username = StringField("sAMAccountName")
|
||||
assigned_policy = DnField("msDS-AssignedAuthNPolicy")
|
||||
assigned_silo = DnField("msDS-AssignedAuthNPolicySilo")
|
||||
object_sid = SIDField("objectSid")
|
||||
|
||||
def __str__(self):
|
||||
"""Return username rather than cn for User model."""
|
||||
|
Loading…
Reference in New Issue
Block a user