Showing posts with label intranet. Show all posts
Showing posts with label intranet. Show all posts

Saturday, March 31, 2012

Strange Authentication Issue

I'm trying to get the User.Identity.Name with my intranet application. I'm looking to get the Domain\User. Now, at first this simply did not work...User.Identity.Name would return nada. So then I poked around IIS a bit and I managed to switch the authentication methods. I checked off "Anonymous Access" and checked "Integrated Windows Authentication". After doing so, I was able to retrieve the Domain\user.

Great, dandy, fanny-tastic. Now comes the strange part. Certain users have access to re-open issues, so the powers that be created a new group on the server just for these users. When one of the users that belongs to this group accesses the site, they are prompted for a username and password from windows. Just those users in the group.

I don't have any code on page load that checks what role they're in, so what could I be missing here? I would like to get rid of the logon.

Thanks.

I was having the same problem and I fixed it. First of all I hope thereis some admin folder or the folder which special users are trying tovisit. That folder can have confidential files that are only viewableby special users. Go to IIS and view your project folder. right clickon the Admin folder and select properties and than select directorysecurity tab and uncheck windows authentication and check the Anonymousauthentication . Refresh your page and It should work fine now.


azamsharp wrote:

I was having the same problem and I fixed it. First of all I hope there is some admin folder or the folder which special users are trying to visit. That folder can have confidential files that are only viewable by special users. Go to IIS and view your project folder. right click on the Admin folder and select properties and than select directory security tab and uncheck windows authentication and check the Anonymous authentication . Refresh your page and It should work fine now.

The thing is, I had it set up for Anonymous at first. When it was set up that way, I couldn't retreive the Domain\User with User.Identity.Name. It would return nothing.


Yeah you are right. Strange thing is when I try to view restrictedpages using my University Wireless network I dont see the pop upmessage for the username and password. But when I use my dial upaccount at home I see the pop up.

azamsharp wrote:

Yeah you are right. Strange thing is when I try to view restricted pages using my University Wireless network I dont see the pop up message for the username and password. But when I use my dial up account at home I see the pop up.

Interesting. Sounds like your issue is similar to mine. I figured it out. (Well, my manager really did)

We were navigating to the site using the the full url of the domain, instead of the shorter version. Something like:

http://domain.blah.com/dir

When all we had to do was:

http://domain.blah/dir

So I guess using the .com appeared as if we were outside of the network, and therefore it promted for a username/password.

Thanks for your help and interest in my matter!


Thanks for sharing the solution.

Thursday, March 22, 2012

Strange IIS Problem

I am working on WinXP Pro (SP2) & use IIS5.1 as the intranet server to
run ASP applications. I connect to the Internet using a LAN
connection. My PC is a standalone machine.
Of late, what I find is if I am not connected to the Internet, it
takes quite some time for local intranet ASP pages (that physically
reside in my PC) to get downloaded completely but if I am connected to
the Internet, then the same ASP pages get downloaded in a jiffy. Since
last 2-3 days, I have been noticing this strange problem. Earlier
local intranet ASP pages would get downloaded within no time
irrespective of whether I was connected to the Internet or not.
What could be the probable cause of this eccentricity & how do I
resolve it?
Please note that I have been working with the same setup (i.e. same IP
address to connect to the Internet, same ports etc.) since last 3-4
years but this is the first time I am encountering this problem.
Another petty discrepancy - usually whenever IE is opened (assuming
that the home page is set to 'about:blank'), the right-hand side of
the Status Bar shows the text 'Internet'. When a ASP page on the local
intranet is accessed, the text on the right-hand side of the Status
Bar in IE changes from 'Internet' to 'Local Intranet' but now I find
that even if a ASP page on the local intranet is accessed in IE, the
text on the right-hand side of the Status Bar still remains
'Internet'; it doesn't change to 'Local Intranet'!On Mar 1, 3:19 am, r...@.rediffmail.com wrote:
> I am working on WinXP Pro (SP2) & use IIS5.1 as the intranet server to
> run ASP applications. I connect to the Internet using a LAN
> connection. My PC is a standalone machine.
> Of late, what I find is if I am not connected to the Internet, it
> takes quite some time for local intranet ASP pages (that physically
> reside in my PC) to get downloaded completely but if I am connected to
> the Internet, then the same ASP pages get downloaded in a jiffy. Since
> last 2-3 days, I have been noticing this strange problem. Earlier
> local intranet ASP pages would get downloaded within no time
> irrespective of whether I was connected to the Internet or not.
> What could be the probable cause of this eccentricity & how do I
> resolve it?
> Please note that I have been working with the same setup (i.e. same IP
> address to connect to the Internet, same ports etc.) since last 3-4
> years but this is the first time I am encountering this problem.
> Another petty discrepancy - usually whenever IE is opened (assuming
> that the home page is set to 'about :blank'), the right-hand side of
> the Status Bar shows the text 'Internet'. When a ASP page on the local
> intranet is accessed, the text on the right-hand side of the Status
> Bar in IE changes from 'Internet' to 'Local Intranet' but now I find
> that even if a ASP page on the local intranet is accessed in IE, the
> text on the right-hand side of the Status Bar still remains
> 'Internet'; it doesn't change to 'Local Intranet'!
let's assume that it's not related to ASP.NET :-)
It seems that you need to check LAN Settings in IE - Tools - Internet
Options. I think you should bypass proxy for local sites and except
the local addresses (for example 10.* if your intranet IP starts from
10.*)

Strange IIS Problem

I am working on WinXP Pro (SP2) & use IIS5.1 as the intranet server to
run ASP applications. I connect to the Internet using a LAN
connection. My PC is a standalone machine.

Of late, what I find is if I am not connected to the Internet, it
takes quite some time for local intranet ASP pages (that physically
reside in my PC) to get downloaded completely but if I am connected to
the Internet, then the same ASP pages get downloaded in a jiffy. Since
last 2-3 days, I have been noticing this strange problem. Earlier
local intranet ASP pages would get downloaded within no time
irrespective of whether I was connected to the Internet or not.

What could be the probable cause of this eccentricity & how do I
resolve it?

Please note that I have been working with the same setup (i.e. same IP
address to connect to the Internet, same ports etc.) since last 3-4
years but this is the first time I am encountering this problem.

Another petty discrepancy - usually whenever IE is opened (assuming
that the home page is set to 'about:blank'), the right-hand side of
the Status Bar shows the text 'Internet'. When a ASP page on the local
intranet is accessed, the text on the right-hand side of the Status
Bar in IE changes from 'Internet' to 'Local Intranet' but now I find
that even if a ASP page on the local intranet is accessed in IE, the
text on the right-hand side of the Status Bar still remains
'Internet'; it doesn't change to 'Local Intranet'!On Mar 1, 3:19 am, r...@.rediffmail.com wrote:

Quote:

Originally Posted by

I am working on WinXP Pro (SP2) & use IIS5.1 as the intranet server to
run ASP applications. I connect to the Internet using a LAN
connection. My PC is a standalone machine.
>
Of late, what I find is if I am not connected to the Internet, it
takes quite some time for local intranet ASP pages (that physically
reside in my PC) to get downloaded completely but if I am connected to
the Internet, then the same ASP pages get downloaded in a jiffy. Since
last 2-3 days, I have been noticing this strange problem. Earlier
local intranet ASP pages would get downloaded within no time
irrespective of whether I was connected to the Internet or not.
>
What could be the probable cause of this eccentricity & how do I
resolve it?
>
Please note that I have been working with the same setup (i.e. same IP
address to connect to the Internet, same ports etc.) since last 3-4
years but this is the first time I am encountering this problem.
>
Another petty discrepancy - usually whenever IE is opened (assuming
that the home page is set to 'about:blank'), the right-hand side of
the Status Bar shows the text 'Internet'. When a ASP page on the local
intranet is accessed, the text on the right-hand side of the Status
Bar in IE changes from 'Internet' to 'Local Intranet' but now I find
that even if a ASP page on the local intranet is accessed in IE, the
text on the right-hand side of the Status Bar still remains
'Internet'; it doesn't change to 'Local Intranet'!


let's assume that it's not related to ASP.NET :-)

It seems that you need to check LAN Settings in IE - Tools - Internet
Options. I think you should bypass proxy for local sites and except
the local addresses (for example 10.* if your intranet IP starts from
10.*)
I've been getting the exact same problem myself...IIS 5.1 is dog slow to return a localhost page.

Also started in the last few days. I've been searching all over to find a solution but no luck..

Seems to be tied into display of images, as htm pages with no images come up quickly.

Hope somebody who has found an answer, sees this.

<rn5a@.rediffmail.comwrote in message news:1172715577.007290.38550@.z35g2000cwz.googlegro ups.com...

Quote:

Originally Posted by

>I am working on WinXP Pro (SP2) & use IIS5.1 as the intranet server to
run ASP applications. I connect to the Internet using a LAN
connection. My PC is a standalone machine.
>
Of late, what I find is if I am not connected to the Internet, it
takes quite some time for local intranet ASP pages (that physically
reside in my PC) to get downloaded completely but if I am connected to
the Internet, then the same ASP pages get downloaded in a jiffy. Since
last 2-3 days, I have been noticing this strange problem. Earlier
local intranet ASP pages would get downloaded within no time
irrespective of whether I was connected to the Internet or not.
>
What could be the probable cause of this eccentricity & how do I
resolve it?
>
Please note that I have been working with the same setup (i.e. same IP
address to connect to the Internet, same ports etc.) since last 3-4
years but this is the first time I am encountering this problem.
>
Another petty discrepancy - usually whenever IE is opened (assuming
that the home page is set to 'about:blank'), the right-hand side of
the Status Bar shows the text 'Internet'. When a ASP page on the local
intranet is accessed, the text on the right-hand side of the Status
Bar in IE changes from 'Internet' to 'Local Intranet' but now I find
that even if a ASP page on the local intranet is accessed in IE, the
text on the right-hand side of the Status Bar still remains
'Internet'; it doesn't change to 'Local Intranet'!
>