Solved

Get Authenticated user? (with Indy)

Posted on 2004-04-09
2
374 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
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

757 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now