Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Integrating Security with Windows Active Directory
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00955014
Message ID:
00955394
Views:
16
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
Previous
Reply
Map
View

Click here to load this message in the networking platform