Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Novell USERID -- how do I capture it
Message
De
10/04/2003 13:31:20
 
 
À
10/04/2003 12:28:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00776186
Message ID:
00776223
Vues:
29
This message has been marked as the solution to the initial question of the thread.
Hi Margaret,
I have numerous VFP apps out there that capture the Novell login for Novell 4.x-6.x. Sometimes I pass the novell username to the app and sometimes I pull it from GETENV(). Here is what I use:
PUBLIC logname
IF VARTYPE(logname)<>"C" .or. LEN(ALLTRIM(logname))<6
        *this.logname is property of application object
        *if you do not have a property just store it to a variable
	this.logname=GETENV('LOGIN')  && Novell login name
	logname=this.logname
ENDIF
IF LEN(ALLTRIM(logname))<6
	store "UNKNOWN" TO logname
ENDIF
>How do I capture the Novell Userid of a person logged onto our network? I don't want the Windows UserID, just the Novell UserID. This is for a VFP7 application. TIA.
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform