Bug#815042: re: #815042: POSTREMOVE hook fails when removing GOsa user templates
Hi Holger
On Sat Jun 4 13:03:52 2016 GMT+0200, Holger Levsen wrote:
> control: tags -1 + moreinfo
> control: severity -1 normal
> thanks
>
> Hi Mike,
>
> back in Februar 2016 when you filed this bug you forgot to describe the
> actual effects of the bug, could you please do so now?
>
> Also, maybe it was fixed due to fixes in gosa?
>
>
> --
> cheers,
> Holger
>
In GOsa, we have hooks for all sorts of object actions. One hook is the user account postremove hook.
This hook gets called when a user gets removed from LDAP. Everything fine around this.
By design, this hook also gets called whenever a user template object gets removed. A user template is a user-like LDAP object, that acts as a template for account generation.
Those user template object do not have a home dir, neither do they have Kerberos data.
Debian Edu comes with two such user templates, at our customers we add several more (for itstaff, wifionlyusers, ...). I had to remove such a template back then and the removal threw up an error.
The cause of the error message was that the postremove hook tried to remove the home dir of a user template. User templates do not have home dirs by design.
In the gosa-remove script, we simply need to check the LDAP object being processed and skip all actions if that LDAP object has object class gosaAccountTemplate (IRC).
Does that help as info??
Greets,
Mike
Sent from my Jolla
Reply to: