Search found 49 matches: wnetgetuser

Return to advanced search

Re: Name of the user

Hi, Why don't you use this function : WNetGetUser() Good luck. I guess probably because he's looking for someone connected to the server or locking a file. You can use the following function to start working. FUNCTION TstUser()LOCAL ...
by ADutheil
Thu Dec 09, 2021 3:06 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Name of the user
Replies: 3
Views: 494

Re: Name of the user

Hi,

Why don't you use this function : WNetGetUser()

Good luck.
by driessen
Thu Dec 09, 2021 12:24 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Name of the user
Replies: 3
Views: 494

Re: current windows account

cnavarro wrote:WNetGetUser()

thanks
by Silvio.Falconi
Mon Oct 18, 2021 11:52 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: current windows account
Replies: 5
Views: 423

Re: current windows account

WNetGetUser()
by cnavarro
Mon Oct 18, 2021 10:00 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: current windows account
Replies: 5
Views: 423

Re: How do you handle User Access on your FW App

Validating a user is not difficult .. first of all I use the function WnetGetUser: xLOGIN := UPPER( WNetGetuser() )+space(15) // fivewin functionxLOGIN := SUBSTR(xLOGIN,1,15)  Take the results of xLogin and search your user table ...
by Rick Lipkin
Sat Aug 18, 2018 3:43 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How do you handle User Access on your FW App
Replies: 5
Views: 968

Re: Need IP adres from every user in my program

... there IP addresd ? Just my 2 cents here .. An external UserId and Password would be a better solution where ever you cannot enforce SSO with WNetGetUser(). If you really want to be creative .. you can implement a dual authentication process .. where upon a successful login .. you send the ...
by Rick Lipkin
Sun May 14, 2017 2:07 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Need IP adres from every user in my program
Replies: 2
Views: 621

Re: Password protected access to menu. Advice ?

James

You are correct .. WNetGetUser() returns the current 'logged in' profile Userid .. so I have two entries in my software depending on which machine or profile I currently am logged into .. one for 'Rick Lipkin' and one for 'LipkinRm'

Rick Lipkin
by Rick Lipkin
Sat May 13, 2017 7:47 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Password protected access to menu. Advice ?
Replies: 25
Views: 3510

Re: Password protected access to menu. Advice ?

Rick, So what does WNetGetUser() return when you log your personal computer into your corporate network? Does it stop returning "Rick Lipkin" and start returning "Lipkinrm"? If so, then it means that if you login ...
by James Bott
Sat May 13, 2017 2:31 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Password protected access to menu. Advice ?
Replies: 25
Views: 3510

Re: Password protected access to menu. Advice ?

James WNetGetUser() returns the Profile User Id ( or login name ) of the current user.. My Guess is your Profile name on your computer is ( just ) James. IN a network environment .. when a person first logs into a machine with ...
by Rick Lipkin
Fri May 12, 2017 5:11 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Password protected access to menu. Advice ?
Replies: 25
Views: 3510

Re: Password protected access to menu. Advice ?

Enrico,

Well, I did not know that! Thanks.

Rick,

I note that my WNetGetUser() returns only my first name. What happens if I attach to another network that already has someone with the same first name?

James
by James Bott
Fri May 12, 2017 2:30 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Password protected access to menu. Advice ?
Replies: 25
Views: 3510

Re: Password protected access to menu. Advice ?

To All I use the WNetGetUser() function to extract the logged in User Id on the workstation and save it to a Public variable xLogin .. I use xLogin to find the UserID stored in my security table to assign permissions as you saw earlier ...
by Rick Lipkin
Fri May 12, 2017 1:33 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Password protected access to menu. Advice ?
Replies: 25
Views: 3510

Re: WNetGetUser() y nombres de usuario

Gracias RSalazarU por tu ayuda, realmente con NetName() se consigue el nombre del usuario o lo que para el windows es el USERDOMAIN. Gracias también a ti Silvio.Falconi por el interesante enlace. Con todo y con eso, estoy estudiando una solución para poder cambiar el USERNAME de windows. Tan pronto ...
by GabrielMartin
Tue Mar 11, 2014 8:50 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: WNetGetUser() y nombres de usuario
Replies: 7
Views: 1219

Re: WNetGetUser() y nombres de usuario

Mira si puedes sacar algo de este post:
http://forums.fivetechsupport.com/viewt ... 21#p141189
Saludos.
by FranciscoA
Mon Mar 10, 2014 10:37 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: WNetGetUser() y nombres de usuario
Replies: 7
Views: 1219

Re: WNetGetUser() y nombres de usuario

Gabriel: Creo que deberias usar NetName() en vez de WNetGetUser() , esta funcion te da el nombre del equipo donde se esta corriendo la aplicacion. El nombre del equipo es unico en cada LAN, no puede haber duplicados, si los hay fallaria la conexion. ...
by RSalazarU
Mon Mar 10, 2014 8:05 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: WNetGetUser() y nombres de usuario
Replies: 7
Views: 1219
Next

Return to advanced search

cron