Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Integrating Security with Windows Active Directory
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00955014
Message ID:
00955394
Vues:
17
Kevin,

That is great, thanks for the information.

Kind Regards,

Mat

>
>Yes...You can get the current user's name like this:
>
>
string Name = System.Security.Principal.WindowsIdentity.GetCurrent().Name;
>
>You could then use this information to read the user's record in your database and retrieve the user PK (you can subclass the mmUser class and add a GetUserByID(), for example).
>
>You can suppress the login form which is launched in your Main.cs file and simply call the Security Manager directly, like this:
>
>
mmAppBase.SecurityMgr.RegisterUser(<user PK>);
>
>Regards,
Matthew Kennedy
Decision Support Technology Inc.

"I try to take one day at a time, but sometimes several days attack me all at once." ~ Ashleigh Brilliant

New Jersey Dot Net User Group
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform