Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Authentication against AD is done based on connection scope as i undetstand it. Essentially what that means is that everyhting within the context of the connection string is considered ... </p> <p>if you have your connection as:</p> <p>LDAP://domaincontroller/OU=Domain Users,DC=my,DC=domain,DC=com</p> <p>any user will then be authenticated that is a member of the domain.</p> <p>from there you should add the Windows token based role provider and configure it something like this ...</p> <pre><code>&lt;!-- use windows authentication --&gt; &lt;authentication mode="Windows" /&gt; &lt;!-- use the Windows role provider --&gt; &lt;roleManager enabled="true" defaultProvider="AspNetWindowsTokenRoleProvider" /&gt; &lt;!-- global authorization rules --&gt; &lt;authorization&gt; &lt;allow roles="Domain Admins, Product Users"/&gt; &lt;deny users="*" /&gt; &lt;/authorization&gt; </code></pre> <p>This locks down the application for use by only domain admins and users within the OU "Product Users" AND all of its children recursively.</p> <p>from there you can do further "context based" checks for other functions e.g. ...</p> <pre><code>If(User.IsInRole("Product Admins")) { // do something groovy } else throw new SecurityException(); </code></pre> <p>What does this mean ...</p> <p>It means you have fine grained control of the security of your application logic based on domain user group membership, if a user is in your domain this will authenticate them, but it may not authorise them (thats down to your role provider configuration).</p> <p>Authenticate: Identify the user.</p> <p>Authorise : Grant permissions / access to the user.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload