Event Manager variables

Here you can submit your bug reports.
Post Reply
niqbert
Posts: 18
Joined: Mon Jul 11, 2011 1:06 pm

Event Manager variables

Post 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
FTP
Site Admin
Posts: 2072
Joined: Tue Sep 29, 2009 6:09 am

Re: Event Manager variables

Post 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.
niqbert
Posts: 18
Joined: Mon Jul 11, 2011 1:06 pm

Re: Event Manager variables

Post 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
FTP
Site Admin
Posts: 2072
Joined: Tue Sep 29, 2009 6:09 am

Re: Event Manager variables

Post 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>".
Post Reply