FTP login proces

Please post here if you have problems in using Wing FTP Server.
Post Reply
StenAaboHansen
Posts: 40
Joined: Mon Feb 09, 2015 8:50 pm

FTP login proces

Post by StenAaboHansen »

Where in the login proces are the before login event fired ? is it before doing the AD login.
FTP
Site Admin
Posts: 2072
Joined: Tue Sep 29, 2009 6:09 am

Re: FTP login proces

Post by FTP »

Yes, the event "BeforeUserLoggedIn" will be triggered before doing AD login, and here is an example for self-authentication:

Code: Select all

local USER = "%Name"
local PASS = "%Password"

if string.match(USER,"^.*@xxx.com$") then
  if c_TestSMTP("SMTP_CHECK", USER, USER, 1, "smtp.office365.com", 587, USER, PASS, 0) then
    bSelfAuthenticated = true
  end
end
Post Reply