yordysv Posted May 16, 2017 Share Posted May 16, 2017 Hello everyone, I created an application in which i have to get the user connected to machine (client side) in order to log on the user to the applicacion, but instead it is returning the User of the Server. This is the function that i am using to get the user connected. function GetCurrentUserName : String; var dwI : DWord; begin dwI := 1024; SetLength (Result, dwI + 1); if GetUserName(PChar(Result), dwI)then SetLength (Result, dwI-1) else SetLength (Result, 0); end; I'd really appreciate your help. Kind Regards Yordys Valenzuela Quote Link to comment Share on other sites More sharing options...
rencarnacion Posted May 16, 2017 Share Posted May 16, 2017 Remember that the browse can't access all client resources, I guess that there are JS library for to get the active directory Users Here something that I guess can Help you http://idprogramming.blogspot.com/2011/06/how-to-get-user-data-from-active.html Quote Link to comment Share on other sites More sharing options...
yordysv Posted May 16, 2017 Author Share Posted May 16, 2017 Muchisimas gracias Ronny, lamentablementa no tengo mucho conocimiento con JS y su implementacion en Delphi. Podrias guiarme por favor? En cual ExtEvents debo colocar el codigo? Como invocarlo? gracias. Quote Link to comment Share on other sites More sharing options...
ikaurov Posted May 17, 2017 Share Posted May 17, 2017 ADSISearch.pas for Delphi works good for Unigui. Quote Link to comment Share on other sites More sharing options...
IRWANTO82 Posted May 26, 2017 Share Posted May 26, 2017 ADSISearch.pas for Delphi works good for Unigui. what is ADSISearch.pas unit ? Quote Link to comment Share on other sites More sharing options...
IRWANTO82 Posted May 26, 2017 Share Posted May 26, 2017 Remember that the browse can't access all client resources, I guess that there are JS library for to get the active directory Users Here something that I guess can Help you http://idprogramming.blogspot.com/2011/06/how-to-get-user-data-from-active.html This javascript unfortunately working only in IE anyone still use IE ? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.