Univention Bugzilla – Bug 51720
Licence Counting may be wrong -> SambaAcctFlags fixed sorting
Last modified: 2020-07-27 11:38:16 CEST
A customer reported, that our license_check counts deactivated users as it checks for sambaAcctFlags=[ULD ] In customers environment the flag has another order: sambaAcctFlags: [UDL ] Samba documentation says: "In fact, they can be set without problem in any order in the SambaAcctFlags record in the LDAP directory." If we count license by these Flags, we should have a clear order in our samba.
Any idea in which case the "other" order appears? Is it one of our implementations, was it a data migration, ...?
The search filtes in users/user are probably meant here. We should check if there is a ldap matching rule (or if we can implement one) so we can search for (&(sambaAcctFlags:$MATCHING-RULE:=D)(sambaAcctFlags:$MATCHING-RULE:=L)). Or just search for *D* & *L* …
(In reply to Ingo Steuwer from comment #1) > Any idea in which case the "other" order appears? Is it one of our > implementations, was it a data migration, ...? I don't know how this happened. I have spoken with Arvid; he suggested to open this bug to clean sort these flags in future. It was also new for him, that there is nor given order and you can order them on your own.