Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > AzMan non-admin problem under Win XP

Reply
Thread Tools

AzMan non-admin problem under Win XP

 
 
Dominick Baier
Guest
Posts: n/a
 
      10-10-2006
does this uses have read access to the application partition - also in the
AzMan GUI - is the user in the "reader" role (somewhere in the properties)?

---
Dominick Baier, DevelopMentor
http://www.leastprivilege.com

> Hello All,
>
> I have a problem with AzMan under Windows XP.
> On my web site I use AzMan/AD role management. Store installed on Win
> 2003 SP1 server, but site works under WinXP SP2.
> For IIS identity domain account with non-admin’s privileges is used.
>
> In this case the error occurs: "The parameter is incorrect. (Exception
> from HRESULT: 0x80070057 (E_INVALIDARG))" when page is loaded or after
> role checking (Roles.IsUserInRole(User.Identity.Name,
> "Administrator")). But if I add domain account to local Administrators
> group - everything works correctly.
>
> We face this problem only if site runs under Win XP. If site runs
> under Win 2003 – it is ok.
>
> It is forbidden to run the site under administrator. How could this
> problem be resolved? Do you have an insight on this?
>
> I used microsoft sample from :
> http://msdn.microsoft.com/library/de...ary/en-us/dnpa
> g2/html/PAGHT000018.asp?_r=1
> with following web.config:
>
> add name="AzManADAMServer"
> connectionString="msldap://server:50000/CN=AzManADAMStore,OU=SecNetPar
> tition,O=SecNet,C=US" />
> /connectionStrings>
> identity impersonate="true" userName="corp\test" password="xxxxxxx"/>
> authentication mode="Windows"/>
> deny users="?"/>
> /authorization>
> roleManager
> enabled="true"
> cacheRolesInCookie="false"
> defaultProvider="RoleManagerAzManADAMProvider"
> cookieName=".ASPXROLES"
> cookiePath="/"
> cookieTimeout="1"
> cookieRequireSSL="false"
> cookieSlidingExpiration="false"
> createPersistentCookie="false"
> cookieProtection="None">
> add name="RoleManagerAzManADAMProvider"
> type="System.Web.Security.AuthorizationStoreRolePr ovider,
> System.Web, Version=2.0.0.0, Culture=neutral,
> publicKeyToken=b03f5f7f11d50a3a"
> connectionStringName="AzManADAMServer"
> applicationName="iHomeOwner"
> />
> /providers>
> /roleManager



 
Reply With Quote
 
 
 
 
Vovan.Net
Guest
Posts: n/a
 
      10-10-2006
Hello All,

I have a problem with AzMan under Windows XP.
On my web site I use AzMan/AD role management. Store installed on Win 2003 SP1 server, but site works under WinXP SP2.

For IIS identity domain account with non-admin’s privileges is used.

In this case the error occurs: "The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))" when page is loaded or after role checking (Roles.IsUserInRole(User.Identity.Name, "Administrator")). But if I add domain account to local Administrators group - everything works correctly.

We face this problem only if site runs under Win XP. If site runs under Win 2003 – it is ok.

It is forbidden to run the site under administrator. How could this problem be resolved? Do you have an insight on this?

I used microsoft sample from :
http://msdn.microsoft.com/library/de...00018.asp?_r=1

with following web.config:

connectionStrings>
add name="AzManADAMServer" connectionString="msldap://server:50000/CN=AzManADAMStore,OU=SecNetPartition,O=SecNet,C=US " />
/connectionStrings>

identity impersonate="true" userName="corp\test" password="xxxxxxx"/>
authentication mode="Windows"/>
authorization>
deny users="?"/>
/authorization>

roleManager
enabled="true"
cacheRolesInCookie="false"
defaultProvider="RoleManagerAzManADAMProvider"
cookieName=".ASPXROLES"
cookiePath="/"
cookieTimeout="1"
cookieRequireSSL="false"
cookieSlidingExpiration="false"
createPersistentCookie="false"
cookieProtection="None">
providers>
add name="RoleManagerAzManADAMProvider"
type="System.Web.Security.AuthorizationStoreRolePr ovider, System.Web, Version=2.0.0.0, Culture=neutral, publicKeyToken=b03f5f7f11d50a3a"
connectionStringName="AzManADAMServer"
applicationName="iHomeOwner"
/>
/providers>
/roleManager>
 
Reply With Quote
 
 
 
 
Vladimir
Guest
Posts: n/a
 
      10-11-2006
Yes. User is in "Administrator", "Reader", "Delegated User" roles

"Dominick Baier" wrote:

> does this uses have read access to the application partition - also in the
> AzMan GUI - is the user in the "reader" role (somewhere in the properties)?
>
> ---
> Dominick Baier, DevelopMentor
> http://www.leastprivilege.com
>
> > Hello All,
> >
> > I have a problem with AzMan under Windows XP.
> > On my web site I use AzMan/AD role management. Store installed on Win
> > 2003 SP1 server, but site works under WinXP SP2.
> > For IIS identity domain account with non-admin’s privileges is used.
> >
> > In this case the error occurs: "The parameter is incorrect. (Exception
> > from HRESULT: 0x80070057 (E_INVALIDARG))" when page is loaded or after
> > role checking (Roles.IsUserInRole(User.Identity.Name,
> > "Administrator")). But if I add domain account to local Administrators
> > group - everything works correctly.
> >
> > We face this problem only if site runs under Win XP. If site runs
> > under Win 2003 – it is ok.
> >
> > It is forbidden to run the site under administrator. How could this
> > problem be resolved? Do you have an insight on this?
> >
> > I used microsoft sample from :
> > http://msdn.microsoft.com/library/de...ary/en-us/dnpa
> > g2/html/PAGHT000018.asp?_r=1
> > with following web.config:
> >
> > add name="AzManADAMServer"
> > connectionString="msldap://server:50000/CN=AzManADAMStore,OU=SecNetPar
> > tition,O=SecNet,C=US" />
> > /connectionStrings>
> > identity impersonate="true" userName="corp\test" password="xxxxxxx"/>
> > authentication mode="Windows"/>
> > deny users="?"/>
> > /authorization>
> > roleManager
> > enabled="true"
> > cacheRolesInCookie="false"
> > defaultProvider="RoleManagerAzManADAMProvider"
> > cookieName=".ASPXROLES"
> > cookiePath="/"
> > cookieTimeout="1"
> > cookieRequireSSL="false"
> > cookieSlidingExpiration="false"
> > createPersistentCookie="false"
> > cookieProtection="None">
> > add name="RoleManagerAzManADAMProvider"
> > type="System.Web.Security.AuthorizationStoreRolePr ovider,
> > System.Web, Version=2.0.0.0, Culture=neutral,
> > publicKeyToken=b03f5f7f11d50a3a"
> > connectionStringName="AzManADAMServer"
> > applicationName="iHomeOwner"
> > />
> > /providers>
> > /roleManager>

>
>
>

 
Reply With Quote
 
Vladimir
Guest
Posts: n/a
 
      10-11-2006
Addition info : following code pass successufully with admins rights, but
with user's rights it causes error "Value does not fall within the expected
range"

String azManConnectionString =
"msldap://server:50000/CN=AzManADAMStore,OU=SecNetPartition,O=SecNet,C=US ";
String azManApplicationName = "test";

AzAuthorizationStore _azStore = new AzAuthorizationStoreClass();
_azStore.Initialize(0, azManConnectionString, null);


"Vladimir" wrote:

> Yes. User is in "Administrator", "Reader", "Delegated User" roles
>
> "Dominick Baier" wrote:
>
> > does this uses have read access to the application partition - also in the
> > AzMan GUI - is the user in the "reader" role (somewhere in the properties)?
> >
> > ---
> > Dominick Baier, DevelopMentor
> > http://www.leastprivilege.com
> >
> > > Hello All,
> > >
> > > I have a problem with AzMan under Windows XP.
> > > On my web site I use AzMan/AD role management. Store installed on Win
> > > 2003 SP1 server, but site works under WinXP SP2.
> > > For IIS identity domain account with non-admin’s privileges is used.
> > >
> > > In this case the error occurs: "The parameter is incorrect. (Exception
> > > from HRESULT: 0x80070057 (E_INVALIDARG))" when page is loaded or after
> > > role checking (Roles.IsUserInRole(User.Identity.Name,
> > > "Administrator")). But if I add domain account to local Administrators
> > > group - everything works correctly.
> > >
> > > We face this problem only if site runs under Win XP. If site runs
> > > under Win 2003 – it is ok.
> > >
> > > It is forbidden to run the site under administrator. How could this
> > > problem be resolved? Do you have an insight on this?
> > >
> > > I used microsoft sample from :
> > > http://msdn.microsoft.com/library/de...ary/en-us/dnpa
> > > g2/html/PAGHT000018.asp?_r=1
> > > with following web.config:
> > >
> > > add name="AzManADAMServer"
> > > connectionString="msldap://server:50000/CN=AzManADAMStore,OU=SecNetPar
> > > tition,O=SecNet,C=US" />
> > > /connectionStrings>
> > > identity impersonate="true" userName="corp\test" password="xxxxxxx"/>
> > > authentication mode="Windows"/>
> > > deny users="?"/>
> > > /authorization>
> > > roleManager
> > > enabled="true"
> > > cacheRolesInCookie="false"
> > > defaultProvider="RoleManagerAzManADAMProvider"
> > > cookieName=".ASPXROLES"
> > > cookiePath="/"
> > > cookieTimeout="1"
> > > cookieRequireSSL="false"
> > > cookieSlidingExpiration="false"
> > > createPersistentCookie="false"
> > > cookieProtection="None">
> > > add name="RoleManagerAzManADAMProvider"
> > > type="System.Web.Security.AuthorizationStoreRolePr ovider,
> > > System.Web, Version=2.0.0.0, Culture=neutral,
> > > publicKeyToken=b03f5f7f11d50a3a"
> > > connectionStringName="AzManADAMServer"
> > > applicationName="iHomeOwner"
> > > />
> > > /providers>
> > > /roleManager>

> >
> >
> >

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Applet to run on Win 98, Win ME, Win XP, Win Vista & Win 7 ?? Krist Java 6 05-06-2010 11:53 PM
Azman. Unable to recive rolls from Azman. Lars Sundstrom ASP .Net Security 0 10-09-2008 09:01 AM
AzMan non-admin problem under Win XP Vladimir ASP .Net Security 0 10-11-2006 09:39 AM
AzMan: Has anyone created an HTML/Web management console as an alternative to the AzMan MMC? Michael Herman \(Parallelspace/OpenCanal\) ASP .Net Security 0 01-06-2006 01:24 AM
Works under Win 2000 breaks under XP Bradley M. Small ASP General 4 10-27-2003 09:02 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57