Solved

Get Authenticated user? (with Indy)

Posted on 2004-04-09
2
381 Views
Last Modified: 2010-04-04
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
Comment
Question by:jontebgood
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 17

Accepted Solution

by:
mokule earned 500 total points
ID: 10795112
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
 

Author Comment

by:jontebgood
ID: 10795927
Thanks Dude

You saved my day!!

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

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Downloading email attachments 2 93
Tembedded WB animatid gifs not animated on some pcs 2 91
how to change, disabled button color FMX ? 1 63
shape, triangle, dbctrlgrid 3 43
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question