473,698 Members | 2,432 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

AD wont let me in!

Hi guys

I've got a web application on a Win2k IIS5 server. I've been coding it using
anonymous access, and have just come to test the AD stuff - trouble is - all
i get is a 402.1 error ("not authorised to view this page").

I've set <deny users="?"> in my <authorisatio n> bit of web.config, and ive
got <authenticati on mode="Windows"> in there too.

I've got anonymous access disabled and "Integrated Windows Authentication"
checked in the Directory Security tab of the Application in IIS.

Still, it wont let me in as a normal user or as an administrator! What have
I missed?

Cheers
Dan
Nov 18 '05 #1
7 2238
Are u usiing Windows Authentication?
when do u get 402.1 error? do wan to do?
:Patrick
Wha

"dhnriversi de" <da*@musoswire. com> wrote in message
news:C8******** *************** ***********@mic rosoft.com...
Hi guys

I've got a web application on a Win2k IIS5 server. I've been coding it using anonymous access, and have just come to test the AD stuff - trouble is - all i get is a 402.1 error ("not authorised to view this page").

I've set <deny users="?"> in my <authorisatio n> bit of web.config, and ive
got <authenticati on mode="Windows"> in there too.

I've got anonymous access disabled and "Integrated Windows Authentication"
checked in the Directory Security tab of the Application in IIS.

Still, it wont let me in as a normal user or as an administrator! What have I missed?

Cheers
Dan

Nov 18 '05 #2
Hiya

Yeah... well, trying to. I want my site to recognise who is the logged in
Windows user. As I said I've got <deny users="?"> and
<authentication ="Windows> in web.config, and IWA set on the Application in
IIS. Is there something else I've missed?

The error comes when i try and view any page on the site, it just wont let
me in!

Cheers
Dan

"Patrick.O. Ige" wrote:
Are u usiing Windows Authentication?
when do u get 402.1 error? do wan to do?
:Patrick
Wha

"dhnriversi de" <da*@musoswire. com> wrote in message
news:C8******** *************** ***********@mic rosoft.com...
Hi guys

I've got a web application on a Win2k IIS5 server. I've been coding it

using
anonymous access, and have just come to test the AD stuff - trouble is -

all
i get is a 402.1 error ("not authorised to view this page").

I've set <deny users="?"> in my <authorisatio n> bit of web.config, and ive
got <authenticati on mode="Windows"> in there too.

I've got anonymous access disabled and "Integrated Windows Authentication"
checked in the Directory Security tab of the Application in IIS.

Still, it wont let me in as a normal user or as an administrator! What

have
I missed?

Cheers
Dan


Nov 18 '05 #3
Do u use a domain Acct Since you said you are testing against Active
Directory??
Becos it seems you don't have permission!!!
Check in ur IIS by going to your APPLICATION right click and see what is
configured!
Make sure u have right securities both on at ur application and your
directory level!
GDLUCK..
**And by the way do you have any security specification in you web.confg**
If you have pls paste ur web.config!!


"dhnriversi de" <da*@musoswire. com> wrote in message
news:FB******** *************** ***********@mic rosoft.com...
Hiya

Yeah... well, trying to. I want my site to recognise who is the logged in
Windows user. As I said I've got <deny users="?"> and
<authentication ="Windows> in web.config, and IWA set on the Application in
IIS. Is there something else I've missed?

The error comes when i try and view any page on the site, it just wont let
me in!

Cheers
Dan

"Patrick.O. Ige" wrote:
Are u usiing Windows Authentication?
when do u get 402.1 error? do wan to do?
:Patrick
Wha

"dhnriversi de" <da*@musoswire. com> wrote in message
news:C8******** *************** ***********@mic rosoft.com...
Hi guys

I've got a web application on a Win2k IIS5 server. I've been coding it

using
anonymous access, and have just come to test the AD stuff - trouble is -
all
i get is a 402.1 error ("not authorised to view this page").

I've set <deny users="?"> in my <authorisatio n> bit of web.config, and

ive got <authenticati on mode="Windows"> in there too.

I've got anonymous access disabled and "Integrated Windows Authentication" checked in the Directory Security tab of the Application in IIS.

Still, it wont let me in as a normal user or as an administrator! What

have
I missed?

Cheers
Dan


Nov 18 '05 #4
Hiya

Yep it would seem I dont have permission! I'm not sure about the domain
account. I'm logged into the computer as Administrator, and I have the domain
option on the login box at startup, which of course is set to my domain. AD
is setup to be a domain controller. Is that what you mean? If not, sorry, I'm
quite new to AD, so all help appreciated!

What do I need to set the directory up to work? I'm thinking that might be
the problem.

Web.Config wise, attached below

Cheers
Dan

<?xml version="1.0" encoding="utf-8" ?>
<configuratio n>

<system.web>
<compilation
defaultLanguage ="c#"
debug="false"
/>

<customErrors
mode="Off"
/>

<authenticati on mode="Windows" />

<authorizatio n>
<allow users="*" /> <!-- Deny unknown users -->
<!-- <allow users="[comma separated list of users]"
roles="[comma separated list of roles]"/>
<deny users="[comma separated list of users]"
roles="[comma separated list of roles]"/>
-->
</authorization>

<trace
enabled="false"
requestLimit="1 0"
pageOutput="fal se"
traceMode="Sort ByTime"
localOnly="fals e"
/>

<sessionState
mode="InProc"
stateConnection String="tcpip=1 27.0.0.1:42424"
sqlConnectionSt ring="data source=127.0.0. 1;Trusted_Conne ction=yes"
cookieless="fal se"
timeout="20"
/>

<globalizatio n
requestEncoding ="utf-8"
responseEncodin g="utf-8"
/>

</system.web>

<appSettings>
<!-- Application -->
<add key="Applicatio n_Name" value="myapp" />

<!-- System -->
<add key="System_Smt pServer" value="localhos t:3099" />
<add key="System_Act iveDirPath" value="my.com" />
<add key="System_Lib raryPath" value="mypath" />
<add key="System_Con nectionString"
value="server=m yserver;databas e=mydb;Trusted_ Connection=yes" />
<add key="System_Max ResultsLimit" value="20" />
</appSettings>

</configuration>
Nov 18 '05 #5
Hiya

Yep it would seem I dont have permission! I'm not sure about the domain
account. I'm logged into the computer as Administrator, and I have the domain
option on the login box at startup, which of course is set to my domain. AD
is setup to be a domain controller. Is that what you mean? If not, sorry, I'm
quite new to AD, so all help appreciated!

What do I need to set the directory up to work? I'm thinking that might be
the problem.

Web.Config wise, attached below

Cheers
Dan

<?xml version="1.0" encoding="utf-8" ?>
<configuratio n>

<system.web>
<compilation
defaultLanguage ="c#"
debug="false"
/>

<customErrors
mode="Off"
/>

<authenticati on mode="Windows" />

<authorizatio n>
<allow users="*" /> <!-- Deny unknown users -->
<!-- <allow users="[comma separated list of users]"
roles="[comma separated list of roles]"/>
<deny users="[comma separated list of users]"
roles="[comma separated list of roles]"/>
-->
</authorization>

<trace
enabled="false"
requestLimit="1 0"
pageOutput="fal se"
traceMode="Sort ByTime"
localOnly="fals e"
/>

<sessionState
mode="InProc"
stateConnection String="tcpip=1 27.0.0.1:42424"
sqlConnectionSt ring="data source=127.0.0. 1;Trusted_Conne ction=yes"
cookieless="fal se"
timeout="20"
/>

<globalizatio n
requestEncoding ="utf-8"
responseEncodin g="utf-8"
/>

</system.web>

<appSettings>
<!-- Application -->
<add key="Applicatio n_Name" value="myapp" />

<!-- System -->
<add key="System_Smt pServer" value="localhos t:3099" />
<add key="System_Act iveDirPath" value="my.com" />
<add key="System_Lib raryPath" value="mypath" />
<add key="System_Con nectionString"
value="server=m yserver;databas e=mydb;Trusted_ Connection=yes" />
<add key="System_Max ResultsLimit" value="20" />
</appSettings>

</configuration>
Nov 18 '05 #6
Hi

Just some more info on the problem.

I've now got the <authorisatio n> section of my web config like so...

<authorisatio n>
<deny users="?">
</authorisation>

I've tested this on the server by doing both "http://localhost/app" and
"http://10.0.0.254/app"

When I try the first option, using localhost, I don't get a popup box and I
get straight in to the site, and my site works with User.Identity etc.

However, i try with the IP (still on the server), I get a popup box, which i
put the credentials in and it works. Whys that then?

Finally, if I try and access http://10.0.0.254/app from any of the other
machines on the network (Win98, WinXP, both IE 6.0.2800), I dont get into the
site, I dont get a popup login box, I just get sent straight to the 401.2
error page.

What's going on!?!?

Any help appreciated!

Cheers
Dan

"dhnriversi de" wrote:
Hiya

Yep it would seem I dont have permission! I'm not sure about the domain
account. I'm logged into the computer as Administrator, and I have the domain
option on the login box at startup, which of course is set to my domain. AD
is setup to be a domain controller. Is that what you mean? If not, sorry, I'm
quite new to AD, so all help appreciated!

What do I need to set the directory up to work? I'm thinking that might be
the problem.

Web.Config wise, attached below

Cheers
Dan

<?xml version="1.0" encoding="utf-8" ?>
<configuratio n>

<system.web>
<compilation
defaultLanguage ="c#"
debug="false"
/>

<customErrors
mode="Off"
/>

<authenticati on mode="Windows" />

<authorizatio n>
<allow users="*" /> <!-- Deny unknown users -->
<!-- <allow users="[comma separated list of users]"
roles="[comma separated list of roles]"/>
<deny users="[comma separated list of users]"
roles="[comma separated list of roles]"/>
-->
</authorization>

<trace
enabled="false"
requestLimit="1 0"
pageOutput="fal se"
traceMode="Sort ByTime"
localOnly="fals e"
/>

<sessionState
mode="InProc"
stateConnection String="tcpip=1 27.0.0.1:42424"
sqlConnectionSt ring="data source=127.0.0. 1;Trusted_Conne ction=yes"
cookieless="fal se"
timeout="20"
/>

<globalizatio n
requestEncoding ="utf-8"
responseEncodin g="utf-8"
/>

</system.web>

<appSettings>
<!-- Application -->
<add key="Applicatio n_Name" value="myapp" />

<!-- System -->
<add key="System_Smt pServer" value="localhos t:3099" />
<add key="System_Act iveDirPath" value="my.com" />
<add key="System_Lib raryPath" value="mypath" />
<add key="System_Con nectionString"
value="server=m yserver;databas e=mydb;Trusted_ Connection=yes" />
<add key="System_Max ResultsLimit" value="20" />
</appSettings>

</configuration>

Nov 18 '05 #7
Possibly because IE thinks the server is in a different security zone.
You can see the indicator in the lower right. With localhost IE sends
credentials automaically - that is the default setting for the
Intranet zone. By IP IE possibly thinks it is in the Internet security
zone. This is configurable under Tools -> Options -> Security
settings.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Mon, 29 Nov 2004 03:57:03 -0800, dhnriverside <da*@musoswire. com>
wrote:
Hi

Just some more info on the problem.

I've now got the <authorisatio n> section of my web config like so...

<authorisation >
<deny users="?">
</authorisation>

I've tested this on the server by doing both "http://localhost/app" and
"http://10.0.0.254/app"

When I try the first option, using localhost, I don't get a popup box and I
get straight in to the site, and my site works with User.Identity etc.

However, i try with the IP (still on the server), I get a popup box, which i
put the credentials in and it works. Whys that then?

Finally, if I try and access http://10.0.0.254/app from any of the other
machines on the network (Win98, WinXP, both IE 6.0.2800), I dont get into the
site, I dont get a popup login box, I just get sent straight to the 401.2
error page.

What's going on!?!?

Any help appreciated!

Cheers
Dan

"dhnriversid e" wrote:
Hiya

Yep it would seem I dont have permission! I'm not sure about the domain
account. I'm logged into the computer as Administrator, and I have the domain
option on the login box at startup, which of course is set to my domain. AD
is setup to be a domain controller. Is that what you mean? If not, sorry, I'm
quite new to AD, so all help appreciated!

What do I need to set the directory up to work? I'm thinking that might be
the problem.

Web.Config wise, attached below

Cheers
Dan

<?xml version="1.0" encoding="utf-8" ?>
<configuratio n>

<system.web>
<compilation
defaultLanguage ="c#"
debug="false"
/>

<customErrors
mode="Off"
/>

<authenticati on mode="Windows" />

<authorizatio n>
<allow users="*" /> <!-- Deny unknown users -->
<!-- <allow users="[comma separated list of users]"
roles="[comma separated list of roles]"/>
<deny users="[comma separated list of users]"
roles="[comma separated list of roles]"/>
-->
</authorization>

<trace
enabled="false"
requestLimit="1 0"
pageOutput="fal se"
traceMode="Sort ByTime"
localOnly="fals e"
/>

<sessionState
mode="InProc"
stateConnection String="tcpip=1 27.0.0.1:42424"
sqlConnectionSt ring="data source=127.0.0. 1;Trusted_Conne ction=yes"
cookieless="fal se"
timeout="20"
/>

<globalizatio n
requestEncoding ="utf-8"
responseEncodin g="utf-8"
/>

</system.web>

<appSettings>
<!-- Application -->
<add key="Applicatio n_Name" value="myapp" />

<!-- System -->
<add key="System_Smt pServer" value="localhos t:3099" />
<add key="System_Act iveDirPath" value="my.com" />
<add key="System_Lib raryPath" value="mypath" />
<add key="System_Con nectionString"
value="server=m yserver;databas e=mydb;Trusted_ Connection=yes" />
<add key="System_Max ResultsLimit" value="20" />
</appSettings>

</configuration>


Nov 18 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
1794
by: Steve Westwood | last post by:
I have a WebForm button. Depending on calculation I wont to send a popup message to the web page. I am not sure of the approach. From the server side code I don't seem to be able to access the client side script. Can anyone help? I am using the VS .net C# environment
5
1920
by: manokumar | last post by:
hiye, i notice that some if not all of my folders in winxp pro. are set as read only and its giving me some problem with development. so as the natural thing, i unchecked the read only option and click apply then click ok. and when i right click on the same folder again JUST TO MAKE SURE the read only option is checked AGAIN. so again, unchecked, and again its check and the cycle repeats. anyway, i'm the administrator to this computer. so...
2
1062
by: Lasse Edsvik | last post by:
Hello Im trying to run a simple asp.net page and it wont execute......... i run aspnet_regiis -i and it runs successfully..... but my pages wont execute.... what's wrong?? /Lasse
4
1867
by: dhnriverside | last post by:
HI guys I've just written my first independent namespace for my library (yay me!). However, on trying to add it to my website project, it causes an error when I look at the website. It compiles ok though... The error message is... "The located assembly's manifest definition with name 'HudsonNash.Utils.Security' does not match the assembly reference"
5
2465
by: Mr Newbie | last post by:
Debug.Assert( False, "Why wont I display ??") I am trying to use this in my code but it wont display. The app is running on my local machine and the above code under a button click event. What am I missing ? Cheers mr N . . .
4
1405
by: Harry Hudini | last post by:
I'm trying to install VS .Net, particularly the VB elements, but no matter what i select, i get an error at the end of the process simply saying that an error occurred. The installlog.txt file contains these lines; Visual Studio .NET Enterprise Architect - English: ***ERRORLOG EVENT*** : ACTION FAILURE: Action ended 12:50:13: InstallFinalize. Return value 3. See MSI log for details. Visual Studio .NET Enterprise Architect - English:
1
1349
by: eewwttww | last post by:
how to show the "txt code" that the WebBrowser wont to save when he wont to save html+pictures with the "dialogbox" - before saving. this is the code to open the save "dialogbox" Me.WebBrowser1.ExecWB OLECMDID_SAVEAS, OLECMDEXECOPT_PROMPTUSER, 0, 0 this is not good for me: Text1.Text = WebBrowser1.Document.documentElement.OuterHTML
1
1593
by: Diz | last post by:
Hi, Can anybody tell me why my php script wont run properly unless i put it in a page all on its own? Is it antisocial? Does it want to be alone? I have put it in a page with background and links to other pages, but it wont generate a large version of a thumbnail unless it has a page all to itself. here is the php coding i've used: <td colspan="2" rowspan="3" width="760" > <?php /** * Autogallery * Urs Gehrig, <urs @circle.ch> * */...
3
7540
by: =?Utf-8?B?SlA=?= | last post by:
<asp:GridView ID="gridResults" runat="server" AutoGenerateColumns="False" Width="98%" PageSize="25" AllowPaging="True" OnSorting="gridResults_Sorting" OnPageIndexChanging ="gridResults_PageIndexChange" AllowSorting="True" OnRowDataBound="gridResults_RowDataBound" EnableViewState="False" OnRowCommand="gridResults_Command" ></asp:GridView> Inside a <ItemTemplateI have an <asp:ImageButton> The problem is that no matter what I do,...
0
8609
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9166
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9030
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8871
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7737
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6525
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5861
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
2333
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2007
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.