-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Rob van der Linde edited this page Mar 28, 2024
·
10 revisions
Sambal is an experimental web interface using the new Samba models. Note that these models are really new, so running this now won't be very easy.
It requires compiling the lastest Samba master branch from source or Samba 4.21 when released.
Just a taste...
>>> from samba.domain.models import (User, Computer, Group, GroupManagedServiceAccount,
Site, Subnet, Person, OrganizationalPerson,
ClaimType, ValueType, AttributeSchema, ClassSchema,
AuthenticationSilo, AuthenticationPolicy)
>>> users = User.query(samdb)
>>> for user in users:
>>> print(f"{user.dn}: {user.account_name}")
>>> users = User.query(samdb, polymorphic=True)
>>> gmsa = GroupManagedServiceAccount.get(samdb, account_name="foo$")