I have one requirement ,when user access my web site I ll check the wheter that user is logging from active directory account , If yes i will have the account name to my session , If suppose a user is having active directory account but he is logging from
administrator account of his Machine , i ll redirect to login page , there they provide the active directory account username and password , that stage i ll check active directory credentials, if satisfied i have to assign
Context.User.Identity to Typed username in the login page. base this my all page will work. This same secianario have to work for
sign in different user concept. This cocept in not working , Can you give me solution for my requirment. Its very urgent please..
Thanks for your very valuable reply. I want to explain my requirment clearly, For example I having
XYZ account in my active directory and logging From my Machine of
XYZ, and i m accessing my web site , this time i m getting
context.user.identity.name is XYZ.. now i clicking sign in as diffenrent user link i have my login page , i m providing
ZYX user account name and password from XYZ Machine. At this i have to get on context.user.identity.name is
ZYX but i m getting still XYZ this account name. Is is possible to do with you example?.
Now i can be change the context.user.identity.name in the Login page , but i when it goes to other page its getting empty, How to maintain context.user.identity.name through all page in the web site.
skkasi
Member
122 Points
96 Posts
How to Overwirte the context.user.identity.name in asp,net
Jun 25, 2011 06:02 PM|LINK
Hi,
I have one requirement ,when user access my web site I ll check the wheter that user is logging from active directory account , If yes i will have the account name to my session , If suppose a user is having active directory account but he is logging from administrator account of his Machine , i ll redirect to login page , there they provide the active directory account username and password , that stage i ll check active directory credentials, if satisfied i have to assign Context.User.Identity to Typed username in the login page. base this my all page will work. This same secianario have to work for sign in different user concept. This cocept in not working , Can you give me solution for my requirment. Its very urgent please..
active ldap authentication
princeG
Star
9612 Points
1602 Posts
Re: How to Overwirte the context.user.identity.name in asp,net
Jun 25, 2011 06:13 PM|LINK
Here... you can find same scenario. Try to solve you problem with this example
skkasi
Member
122 Points
96 Posts
Re: How to Overwirte the context.user.identity.name in asp,net
Jun 25, 2011 06:56 PM|LINK
Hi ,
Thanks for your very valuable reply. I want to explain my requirment clearly, For example I having XYZ account in my active directory and logging From my Machine of XYZ, and i m accessing my web site , this time i m getting context.user.identity.name is XYZ.. now i clicking sign in as diffenrent user link i have my login page , i m providing ZYX user account name and password from XYZ Machine. At this i have to get on context.user.identity.name is ZYX but i m getting still XYZ this account name. Is is possible to do with you example?.
skkasi
Member
122 Points
96 Posts
Re: How to Overwirte the context.user.identity.name in asp,net
Jun 26, 2011 03:15 PM|LINK
Hi,
Now i can be change the context.user.identity.name in the Login page , but i when it goes to other page its getting empty, How to maintain context.user.identity.name through all page in the web site.
smirnov
All-Star
23694 Points
4053 Posts
Re: How to Overwirte the context.user.identity.name in asp,net
Jun 27, 2011 09:12 PM|LINK
Take a look here: http://support.microsoft.com/kb/326340