X-Git-Url: https://arthur.barton.de/gitweb/?p=netatalk.git;a=blobdiff_plain;f=etc%2Fafpd%2Fauth.c;fp=etc%2Fafpd%2Fauth.c;h=7a7c41e5cd8a79104ba8a704350d342a167757bb;hp=8011b56b6fbabe68c0d2f71e935e4f6921637cb1;hb=ab6e6f8ed24667ced438afe4df5997469a2ff53b;hpb=471d63120ea3d21bd9d6eb3b220d1e3eec419f68 diff --git a/etc/afpd/auth.c b/etc/afpd/auth.c index 8011b56b..7a7c41e5 100644 --- a/etc/afpd/auth.c +++ b/etc/afpd/auth.c @@ -39,6 +39,7 @@ extern void afp_get_cmdline( int *ac, char ***av ); #include #include #include +#include #include #include @@ -313,6 +314,9 @@ static int login(AFPObj *obj, struct passwd *pwd, void (*logout)(void), int expi /* Some PAM module might have reset our signal handlers and timer, so we need to reestablish them */ afp_over_dsi_sighandlers(obj); + /* Send FCE login event */ + fce_register(obj, FCE_LOGIN, "", NULL); + return( AFP_OK ); } @@ -831,6 +835,10 @@ int afp_logout(AFPObj *obj, char *ibuf _U_, size_t ibuflen _U_, char *rbuf _U_ close_all_vol(obj); dsi->flags = DSI_AFP_LOGGED_OUT; *rbuflen = 0; + + /* Send FCE login event */ + fce_register(obj, FCE_LOGOUT, "", NULL); + return AFP_OK; }