Papierkorb funktioniert nur bei neueren Konten

Hallo,

wir haben in unserer UCS@School Installation erst kürzlich den Papierkorb aktiviert, nach dieser Anleitung: 6.10. Papierkorb — Univention Corporate Server - Handbuch für Benutzer und Administratoren

Er funktioniert allerdings nur bei Konten die wir nach der Aktivierung angelegt haben. Ältere Konten werden nicht darin gesichert. Wir haben die beiden LDAP-Objekte miteinander verglichen. Es gibt nur einen strukturellen Unterschied, im Objekt vorher gibt es einen Eintrag “sambaPasswordHistory”, den es nach dem Neuanlegen nicht mehr gibt. Dafür gibt es jetzt einen Eintrag “pwhistory”. Sonst sehen beide Objekte gleich aus.

Ist das ein generelles Problem oder was kann ich tun, damit bei uns auch die vor der Aktivierung des Papierkorbs angelegten Konten darin landen?

Vielen Dank und beste Grüße!

Hi heri,

could we please switch to english so non native german speaker are involved?

Do you followed in detail the steps from the guide? It’s a UCS@school right? Could you describe in
rough steps what you configured?

Best Regards

Robert

Hey,

yes thank you, of course let’s switch to english.

It’s a UCS@school system and we followed the steps from the linked document above. Sorry, I don’t find an english version of it.

After activating the recycle bin and creating and deleting new users, works fine. Deleting users, which where created before the actviation of the recycle bin, these do not show up there.

Thanks for any hint!

Does anyone see similar behaviour?

Hi heri,

The cause is that the Recycle Bin listener module is deactivated by default. When it is activated later, existing users and groups are not associated with it in the listener cache, so their deletion is never passed to it. Objects created or modified after the activation work fine.

To fix this, run the following on the Primary Directory Node (with listener/module/recyclebin/deactivate=false already set):

univention-directory-listener-ctrl resync recyclebin

This restarts the Univention Directory Listener and re-initializes only the Recycle Bin module. It doesn’t change any LDAP objects or create Recycle Bin entries. While it runs, the listener on the Primary doesn’t process other changes; they’re handled afterwards. In large environments this can take a while, so doing this in a quiet time is preferable. You can check that it’s done with univention-directory-listener-ctrl status (module recyclebin shows state 3) or in /var/log/univention/listener.log.

Objects deleted before the resync can’t be recovered this way.

Best regards
Lars

Hey Lars,

thanks a lot for your explanation. It worked well.

This step would also be good to find in the documentation (in the German part under 6.10.2.). I gues a lot of people are activiating the recycle bin in existing environments.

Keep up your good work and have a nice day!

1 Like

Absolutely. We will adapt the documentation accordingly. Thanks for the pointer.

1 Like

I updated the documentation accordingly. You find more detailed instructions in the UCS Manual:

Best regards,
Nico

2 Likes