FTP login proces
-
StenAaboHansen
- Posts: 38
- 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.
-
FTP
- Site Admin
- Posts: 2179
- 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
Wing FTP Server
English
Deutsch
简体中文