[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 388
  • Last Modified:

Get Authenticated user? (with Indy)

Hi there,

Im trying to get at ftp server to work. I have used the indy component and use a ms sql databas to store all user acconts. anyway. when the user connects the ftp server gets all user acounts from the databas and put them into TIdUserManager.Accounts the ftp server then authenticates the user if it is in the accounts. but i want to know how to get WHITCH user is connected and  i have tried a lot but i never get it to work. can someone help me plz.

Excuse me for my bad english.

Regards'

JonteBgood
0
jontebgood
Asked:
jontebgood
1 Solution
 
mokuleCommented:
If You are using TIdFTPServer You've got all necessary information in an event OnAfterUserLogin

procedure TForm1.IdFTPServer1AfterUserLogin(ASender: TIdFTPServerThread);
begin
ASender.Username;
ASender.Password;
end;
0
 
jontebgoodAuthor Commented:
Thanks Dude

You saved my day!!

How if i need the username before the user login sas?
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now