Bug 55402 - provide methods how to fix problems detected by 901_ucsschool_import_counter diagnostics
provide methods how to fix problems detected by 901_ucsschool_import_counter ...
Status: NEW
Product: UCS@school
Classification: Unclassified
Component: General
UCS@school 5.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS@school maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2022-11-09 10:28 CET by Dirk Ahrnke
Modified: 2022-11-09 10:28 CET (History)
0 users

See Also:
What kind of report is it?: Feature Request
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?: Yes
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Ahrnke univentionstaff 2022-11-09 10:28:09 CET
Bug 50500 introduced the diagnostics module 901_ucsschool_import_counter

This will detect inconsistencies but doesnt tell how to fix them.

########################## Start 901_ucsschool_import_counter ##########################
## Check failed: 901_ucsschool_import_counter - UCS@school Import Counter Consistency ##
UCS@school stores internal counters for the next free username or mail address.
Inconsistencies in these counters can trigger erratic behaviour of the UCS@school import.

The following objects have faulty counter values:
  cn=weise.ric,cn=unique-usernames,cn=ucsschool,cn=univention,dc=training,dc=ucs
    - cn=weise.ric,cn=unique-usernames,cn=ucsschool,cn=univention,dc=training,dc=ucs: counter='1' but the value should be 2 or higher
    - cn=weise.ric,cn=unique-usernames,cn=ucsschool,cn=univention,dc=training,dc=ucs: usernames counter='1' but found user with uid weise.ric2
  cn=hoffmann.wil,cn=unique-usernames,cn=ucsschool,cn=univention,dc=training,dc=ucs
    - cn=hoffmann.wil,cn=unique-usernames,cn=ucsschool,cn=univention,dc=training,dc=ucs: usernames counter='3' but found user with uid hoffmann.wil3
########################### End 901_ucsschool_import_counter ###########################


This situation can happen if automatical assigment and manual administration are combined. 

At this time the knowledge how to fix the problem is only available internally and maybe limited to some persons. The methods vary by using ldapmodify/ldapvi or even some python-snippets. 

A diagnostics module should always show a supported way to fix a detected problem.