Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Thu, 17 Jul 2008 14:30:01 -0700,    group: microsoft.public.dotnet.framework.aspnet.security        back       


AzMan Role provider   
I am using AzMan in an ADAM store and have configured the activedirectory 
membershipprovider and AuthorizationStoreRoleProvider.  I am getting the 
following error when performing Role functions on a user (e.g. 
Roles.GetRolesForUser):  

The parameter is incorrect. (Exception from HRESULT: 0x80070057 
(E_INVALIDARG))

I am having no problem authenticating as the user, but I cannot query or 
update roles.  The weird part is that it works fine for accounts which were 
created using Adamsync (synced with active directory); however if I create 
the account manually it fails.  I have compared a working account and 
non-working account and cannot find any noticable difference.

Any thoughts?

-- 
need2scuba
date: Thu, 17 Jul 2008 14:30:01 -0700   author:   need2scuba am

RE: AzMan Role provider   
UPDATE:

I just realized that it seems to be only testing against active directory 
accounts.  I actually removed a ADAM user object from ADAM that had been 
synced from Active Directory.  I then ran GetRolesForUser(removedAcccount) 
and it still worked and return roles.  So some how it (AzMan provider) is not 
looking to ADAM users as the source of users, but rather to Active Directory. 
 The box on which ADAM is installed is a domain member server.  

What have I missed in setup?
-- 
need2scuba


"need2scuba" wrote:

> I am using AzMan in an ADAM store and have configured the activedirectory 
> membershipprovider and AuthorizationStoreRoleProvider.  I am getting the 
> following error when performing Role functions on a user (e.g. 
> Roles.GetRolesForUser):  
> 
> The parameter is incorrect. (Exception from HRESULT: 0x80070057 
> (E_INVALIDARG))
> 
> I am having no problem authenticating as the user, but I cannot query or 
> update roles.  The weird part is that it works fine for accounts which were 
> created using Adamsync (synced with active directory); however if I create 
> the account manually it fails.  I have compared a working account and 
> non-working account and cannot find any noticable difference.
> 
> Any thoughts?
> 
> -- 
> need2scuba
date: Thu, 17 Jul 2008 15:18:04 -0700   author:   need2scuba am

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us