linuxmuster / sophomorix4

sophomorix for Samba 4
GNU General Public License v3.0
7 stars 7 forks source link

Uniqueness of custom fields #161

Open kiarn opened 2 years ago

kiarn commented 2 years ago

Hello @jeffbeck

An user ask about a test of uniqueness of custom fields. It could be pretty convenient to handle e.g. emails for moodle an ensure all given emails are unique among teachers and students.

The begin of the discussion is here : https://github.com/linuxmuster/linuxmuster-webui7/issues/240

It would be great to add an option to sophomorix-user like :

sophomorix-user -u USER --custom1 --uniq students,teachers

Or maybe you have a better idea. What do you think about it ?

Thanks

Arnaud

PLanB2008 commented 2 years ago

We definetely have to implement this by ourselves if we want this ability, there is now trigger in LDAP / Samba we can set to make a field Unique.

We also have to keep in mind that our implementation could still be overwritten by other tools which are having write access to our custom fields.

If a field is unique or not should be configurable and not by any means be the default.

I assume this would be quite a bit of work.