FTP login proces
-
- Posts: 40
- Joined: Mon Feb 09, 2015 8:50 pm
FTP login proces
Where in the login proces are the before login event fired ? is it before doing the AD login.
-
- Site Admin
- Posts: 2083
- Joined: Tue Sep 29, 2009 6:09 am
Re: FTP login proces
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