Page 1 of 1

Event Manager variables

Posted: Wed Nov 21, 2012 8:50 am
by niqbert
Im trying to set an FTP and SSH Event. (Domain>Event Manager)
Purpose is to get the following details by mail, when an Event triggers:

%IP
%Name
%UserEmail
%ClientVersion

I tried this on OnIPIsBanned and OnExeedUSERPASS both for FTP and SSH.
Only the IP address is shown in the email.

I would like to see the usernames which people use by email when they get a failed login. But %Name isn't working
I tried %Name %NAME '%Name' and "%Name" in a clean message (no extra text or html code), none worked.

v4.1.1
RedHat 64bit 6.3

Re: Event Manager variables

Posted: Wed Nov 21, 2012 11:06 am
by FTP
I think it is not a bug, the event "OnIPIsBanned" will be triggered when the IP is banned, of course you can't get the user name or other information at that time.

Re: Event Manager variables

Posted: Wed Nov 21, 2012 1:06 pm
by niqbert
The session in the Domain log shows an user id associated with the login with banned IP attempt:

[02] Wed, 21 Nov 2012 14:02:09 (0001206) Connected from 111.111.111.111 (local address 122.122.122.122, port 21)
[04] Wed, 21 Nov 2012 14:02:09 (0001206) 220 Wing FTP Server ready...
[03] Wed, 21 Nov 2012 14:02:09 (0001206) USER niq
[04] Wed, 21 Nov 2012 14:02:09 (0001206) 331 Password required for niq
[03] Wed, 21 Nov 2012 14:02:09 (0001206) PASS **********
[04] Wed, 21 Nov 2012 14:02:09 (0001206) 530 Not logged in,unauthorized IP address.
[02] Wed, 21 Nov 2012 14:02:09 (0001206) Closed session,disconnected from 111.111.111.111

Re: Event Manager variables

Posted: Thu Nov 22, 2012 4:31 pm
by FTP
Yes, it will happen when you add some IP access rules for that user account, and when the event "OnIPIsBanned" is triggered, no session is created, so the user name will be "<not logged in>".