Page 1 of 1

FTP login proces

Posted: Wed Apr 27, 2022 12:25 pm
by StenAaboHansen
Where in the login proces are the before login event fired ? is it before doing the AD login.

Re: FTP login proces

Posted: Thu Apr 28, 2022 2:44 am
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