|
Scenario:
One application domain with one IIS, one Active Directory, one MS Exchange Server
One portal startpage which uses certificate authentication via smartcards, mapping the certificate to a user account in the domains Active Directory.
The user puts his smart-card in his reader and accesses the portal-startpage over the internet. After successfull authentication the portalpage is shown in his browser. This page contains for instance a link called "mail" which will take the user to a page where outlook web access has been capsulated into a webcontrol and presented on the mail-page.
Question: Will he automaticly be logged in and shown his personal inbox (SSO)?
According to my own research on the web the way I understand it is that when he gets logged on to the portal a session-key containing all his credentials from the information in Active Directory will be created by IIS. This key will live throughout the whole session and automaticly be used in further functionality-requests by the user. In other words, once hes logged in to the portal SSO will work.
Is this correct? If not, how can this type of functionality be reached?
thanks for your time
/Rickard
|
|
|
|
|
Is there an object that an User WebControl (DLL Type) to get to the session variables or response? I noticed an article that had to use more than 5 different classes to make this happen and I would really like a more simplified approach.
Thanks,
Leo T. Smith
|
|
|
|
|
Try HttpContext.Current.Request and HttpContext.Current.Response . Oh, and HttpContext.Current.Session . Just play around with HttpContext.Current . Lots of good stuff there.
|
|
|
|
|
Hi frndz,
Can anybody explain me why we use Acme prefix while creating user control and explain me in detail about creating and working with user controls??
Regards
Vijay.
|
|
|
|
|
Create a new web project. Then click on the project, and right click. Choose "Add User Control". Very easy.
|
|
|
|
|
Thanks, this looks like what I needed. At least the code compiles, now comes the testing.
Leo T. Smith
|
|
|
|
|
I have a serious issue that seems to be intermittent with
User.Identity.Name.
In an environment where about 100+ users are logging on to a site with
windows authentication, calling HttpContext.Current.User.Identity.Name
returns the correctly logged on user.
However, 10% of the time (I'm guessing under stress conditions or
simulataneous requests), the wrong user info is being returned.
The logic of this app:
1) Windows authentication is used in application.
2) Info of windows logged in user is picked by HttpContext.Current.User.Identity.Name
3) If info is matched is matched with the SQL DB, user is authenticated.
4) On all the pages the user visits, his/her info is shown via a call
to HttpContext.Current.User.Identity.Name
This works almost all the time. Any ideas why it might be failing from
time to time? i.e. at certain times HttpContext.Current.User.Identity.Name returns the incorrect user name.
Best Regards
Gaurav Gigras
|
|
|
|
|
Hi all,
how can we migrate ASP application in to ASP.NET/VB.NET Application?
thanks,
Rahi
If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
It's basically a rewrite.
|
|
|
|
|
u mean we have to write the code start from the begining? it means no compatability b/w ASP and ASP.NET? i tought that we have migrating tools available for this, using the migration tools we have to migrate the project with minimal coding.
thanks for the response,
Rahi
If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Think of it as a perfect opportunity to write it correctly, or enhance certain regions, etc.
|
|
|
|
|
thanks again. if any firm wants to migrate the existing ASP application, then it have to hire the developers again? i mean again they have to spend the money and time for the existing application?
thanks,
Rahi
If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
They also have the option of not migrating to .NET.
|
|
|
|
|
Hey Microsoft is providing a tool (A exe) to convert ASP to ASP.NET. Search in msdn2.microsoft.com. We deed that for a client.
|
|
|
|
|
iam doing a web application in VS.net 2003 in XP sp2 OS
the problem is,
i use imagebutton control and image control on my webform in VS.net 2003.
when i specify the image url property to some image in my web application directory then i can see the image on the webform and when i right click the webform and select "view in a browser" then also i can see the image in my page.
but when i run the application by pressing F5 i do got a problem...
iam using IE7 as my web browser, it is not displaying the image of the image button and image control that i had used in my application. instead it is displying a panel with the left top corner with a cross symbol ...
|
|
|
|
|
I assume you specified the static path for image url or you are using themes.
You need to give virtual path of the image.Virtual path is the path starts from the web server area.
Some thing Like.
imgButton.ImageUrl="../Images/Cancel.jpg";
|
|
|
|
|
thanks for ur reponse.......
i used the path like this
"file:///E:\aspwork\project 5\image buttons\p_links1.gif"
in which aspwork is the virtual directory and project 5 is the folder name
|
|
|
|
|
When you are accessing the Web Application the response will not come from file system it will come from the web server so you need to go the virtual web server path.
for ex:you deployed the application in the web server with name "myProject" then do you think the path what you have given will be available there! no it wont be there. so we will use a folder in our project which will reside in the web server and from that we will access all necessary things. And here your path starts from "images/imgcancel.gif".
|
|
|
|
|
thanks for u reply
i got my error ...........
|
|
|
|
|
Use a relative path, not a static path. That way it can be ported to other environments without headache.
|
|
|
|
|
thanks for u reply ....
i used this path
"file:///E:\aspwork\project 5\image buttons\p_links1.gif"
is u not the relative path
how can we specify a relative path..sir
can u keep one example what is a relative path is
|
|
|
|
|
If the project is in the "project 5" directory, it would be "image button/p_links1.gif"
|
|
|
|
|
yes it is in "image button/asdjf.gif"
can u clearly explain how can we use relative paths .....
|
|
|
|
|
Your relative path IS "image button/p_links1.gif"
Place that in the image's path/url
|
|
|
|
|
hey thanks for ur response.
i got it .....finally..
why is it happening .....
may i know the exact reason....sir....
|
|
|
|