Sudo schema in samba directory

NethServer Version: NS8
Module: Samba

I was wondering if there was a supported way of installing the sudo schema into the Samba directory? I would like to store sudo entries in the directory.

Thanks,
Richard

1 Like

Hi Richard,

welcome to NethServer Community!

I think it could be possible as NS8 Samba is customizable, see Smb.conf in ns8 - #2 by mrmarkuz and Howto manage or customize NS8 podman containers

Could you please share some links/information about the sudo schema and its implementation?
I just found group policies and older tutorials.

Hi @mrmarkus,

Thanks for your reply. The idea is to store the equivalent of /etc/sudoers data in ldap. Most of the configuration is on the client side (not in nethserver), but directory objects need to be created that conform to the defined schema for sudo in ldap. There are a few different schemas available that are fine-tuned for different directory servers. I assume for Samba, we’d need to use this one: https://raw.githubusercontent.com/sudo-project/sudo/refs/heads/main/docs/schema.ActiveDirectory

I have never tried this with Samba, as I’ve previously just used OpenLDAP as my directory server. So I’m not entirely sure how to import a schema into the Samba managed directory. Any suggestions would be gratefully received.

The official documentation for this is here: Sudoers LDAP Manual | Sudo

1 Like