Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi

I have a problem which I am sure somebody will think is a very easy question but I am having alot of trouble with it.

 

I have created an intranet site and also a group in my Active directory called "issusers" and have written in my web.config file "allow roles =domain\iisusers" and I have only put 3 people in the list but my site is opening for everybody in the domain.

 

Please can somebody hel pme understand what Im doing wrong.

 

Thanks in advance

Posted
Hi

I have a problem which I am sure somebody will think is a very easy question but I am having alot of trouble with it.

 

I have created an intranet site and also a group in my Active directory called "issusers" and have written in my web.config file "allow roles =domain\iisusers" and I have only put 3 people in the list but my site is opening for everybody in the domain.

 

Please can somebody hel pme understand what Im doing wrong.

 

Thanks in advance

I know it's a silly question, but the most obious, are you using (is it turned on) Windows Authentication? By default your web config file will set the authorization to none

Posted

This is part of web.config file:

 

<authorization>

 

<allow roles="Domain\iisusers" />

<deny users ="?" />

 

</authorization>

 

I tried changing the "?" to a "*" but when I do it gives me a log in form which I do not want.

Posted

I have impersonation on.

 

Can you also tell me If I put:

 

<allow roles="Domain\iisusers" />

<deny users ="*" />

 

Why does it give me the login in Msgbox

but if I remove the <deny users ="*" /> or change it to <deny users ="?" />

it goes straight to the web page no matter if you are in the iisusers group or not.

  • Administrators
Posted

If you have them in the order

you are saying allow iisusers in and deny everyone else.

 

If you change it to deny users = "?" you are saying deny anyone who isn't logged in.

 

Either way it is not rejecting users - go with the deny = "*" option.

 

The reason you are getting the login prompt is the server is rejecting your current credentials (correct) so the browser is prompting for alternate ones.

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

Posted

Ok

Thanks I have found the problem with your help, So hopefully with your help again I will get a solution.

 

I have impersonation ="true" userName ="Domain\ReportReader" password= "password"

 

I thought it would keep the users ID until the page opened and then impersonate the user "ReportReader" but it takes the ID as soon as it opens hence why it never likes the ID no matter who logs in because ReportReader is not a member of the "IISGroup"

 

Please can you help me to work round this.

Posted
When you define userName and password attributes in the impersonation element you are specifying that it will always use this identity regardless of the identity of the request. If you want to use the real requests identity you should remove these attributes from impersonation.
Posted

Thanks.

Now am I right in saying if I want to make a connection to a SQL server to pull a query I would just put the Username and password into the SQL connection string then. Instead of using SSPI because I dont want to give users rights to the Server

Posted

what is wrong with this:

 

Public strConn As String = "Data Source=Igloo;uid=Domain\User;pwd=password;Database=dbName;"

 

Public Conn As New SqlConnection(strConn)

 

every time it fails

Posted
Ok I dont know if it is always this way but when I used a server user login in stead of a domain/User it works but I still have a problem with the login box coming up when you open the page. Which I dont want.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...