Event Manager variables

Here you can submit your bug reports.

Event Manager variables

Postby niqbert » Wed Nov 21, 2012 8:50 am

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
niqbert
 
posts 14
 
joined Mon Jul 11, 2011 1:06 pm

Re: Event Manager variables

Postby FTP » Wed Nov 21, 2012 11:06 am

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.
FTP
Site Admin
 
posts 1212
 
joined Tue Sep 29, 2009 6:09 am

Re: Event Manager variables

Postby niqbert » Wed Nov 21, 2012 1:06 pm

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
niqbert
 
posts 14
 
joined Mon Jul 11, 2011 1:06 pm

Re: Event Manager variables

Postby FTP » Thu Nov 22, 2012 4:31 pm

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>".
FTP
Site Admin
 
posts 1212
 
joined Tue Sep 29, 2009 6:09 am


Return to Bug Reports

Who is online

Users browsing this forum: No registered users and 2 guests

cron