Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I changed my web.config file to this:

 

<authentication mode="Windows" />

 

Now how can i see if the person logged on belongs to

the domain. And how should I give users Rights?

This system is for an Intranet. :confused:

 

Any help would be appreciated...

 

Regards

James

Posted
u should check ur users and give permissions by code, security is a big subject a .net and u can find as much as u want on this issue on the net
  • Administrators
Posted

if user.Identity.IsAuthenticated=True Then
    'User has been authenticated
end if

If User.IsInRole("Domain name\domain users") = True Then
   'user probably is in domain.
End If

 

Could you be a bit clearer on what you mean by 'give users Rights' ? In code you could check for group membership and act based on that.

Alternatively you could allow or deny access through the web.config.

 

If you have MSDN installed the following should work - if not search on MSDN website for web.config and authorization

 

http://ms-help://MS.VSCC.2003/MS.MSDNQTR.2003APR.1033/cpgenref/html/gngrfdeny.htm

http://ms-help://MS.VSCC.2003/MS.MSDNQTR.2003APR.1033/cpgenref/html/gngrfallow.htm

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

Posted

Thanx PlausiblyDamp...

That's all i needed... I'll figure it out from here...

 

"Could you be a bit clearer on what you mean by 'give users Rights' ?"

 

It's a Internal Corporate Website where i only

want the Directors to be able to use the Site.

 

Thanx again.

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...