Solved

Get Authenticated user? (with Indy)

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

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

Suggested Solutions

Title # Comments Views Activity
Help on project with Soap 10 62
IdTCPClient and IdTCPServer exchanging data on desktops and not Android 11 164
CheckListBox usage 3 81
RESTRequest Parameter 4 53
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

763 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