Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > How can I display the name of the logged in user

Reply
Thread Tools

How can I display the name of the logged in user

 
 
Sam
Guest
Posts: n/a
 
      06-12-2007
Dear Sir,

Please; How can I display the name of the logged in user when I am using
windows integrated security in my Windows forms application?I used
My.User.Name but it displays the Login name only.

Thank you.

 
Reply With Quote
 
 
 
 
Henning Krause [MVP - Exchange]
Guest
Posts: n/a
 
      06-12-2007
Hello,

you'll have to look it up. In a domain environment, you'll have to look at
ActiveDirectory. You can do this either by performing LDAP query
(http://www.infinitec.de/articles/exc...ermultiad.aspx). Another
option is to bind to the user object directly by using Sid Binding (You'll
have to obtain the SID first. In .NET 2.0 you can use the
NTAccount(accountname).Translate(typeof(SecurityDe scriptor)), see
http://msdn2.microsoft.com/En-US/library/ms675562.aspx). And a third option
is calling the DsCrackNames function via Interop.

Best regards,
Henning Krause

"Sam" <> wrote in message
news:3B20289A-3075-4B70-80D1-...
> Dear Sir,
>
> Please; How can I display the name of the logged in user when I am using
> windows integrated security in my Windows forms application?I used
> My.User.Name but it displays the Login name only.
>
> Thank you.
>


 
Reply With Quote
 
 
 
 
Manish Bafna
Guest
Posts: n/a
 
      06-13-2007
Hi,
Below link provides solution to your query:
http://www.pardesifashions.com/Softo...rFullName.aspx
--
Hope this answers your question.
Thanks and Regards.
Manish Bafna.
MCP and MCTS.



"Sam" wrote:

> Dear Sir,
>
> Please; How can I display the name of the logged in user when I am using
> windows integrated security in my Windows forms application?I used
> My.User.Name but it displays the Login name only.
>
> Thank you.
>

 
Reply With Quote
 
Manish Bafna
Guest
Posts: n/a
 
      06-13-2007
Hi,
Also you would need to add reference to system.directoryservices.dll
--
Hope this helps.
Thanks and Regards.
Manish Bafna.
MCP and MCTS.



"Sam" wrote:

> Dear Sir,
>
> Please; How can I display the name of the logged in user when I am using
> windows integrated security in my Windows forms application?I used
> My.User.Name but it displays the Login name only.
>
> Thank you.
>

 
Reply With Quote
 
Sam
Guest
Posts: n/a
 
      06-13-2007
Dear Henning and Manish,

Thank you for your help and support. The information you provided was really
helpful to me.

Thank you.


"Manish Bafna" wrote:

> Hi,
> Also you would need to add reference to system.directoryservices.dll
> --
> Hope this helps.
> Thanks and Regards.
> Manish Bafna.
> MCP and MCTS.
>
>
>
> "Sam" wrote:
>
> > Dear Sir,
> >
> > Please; How can I display the name of the logged in user when I am using
> > windows integrated security in my Windows forms application?I used
> > My.User.Name but it displays the Login name only.
> >
> > Thank you.
> >

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Serious issue: parts of my page render as not logged in, parts as logged in. Help! pcloches@gmail.com ASP .Net 1 04-12-2007 12:50 AM
How do I display the name of the user who logged into site? Learner ASP .Net Security 0 03-07-2006 09:15 PM
LoginView does not show a logged in user as being logged in keithb ASP .Net 0 02-16-2006 05:20 PM
Can a web user can be logged on as an account other than IUSR_? steves@bmtech.co.uk ASP General 5 03-21-2005 08:47 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57