?
Solved

Get Authenticated user? (with Indy)

Posted on 2004-04-09
2
Medium Priority
?
386 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 2000 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses
Course of the Month12 days, 15 hours left to enroll

777 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