Skip to content
Rob van der Linde edited this page Mar 1, 2024 · 10 revisions

What is Sambal?

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.

Samba Models

Just a taste...

>>> from samba.netcmd.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$")

In time, hopefully we can get the import samba.netcmd.domain.models changed to samba.domain.models.

Clone this wiki locally