Re: using AuthorizationStoreRoleProvider directly without activating the rolemanager?



so simple :-)

but now I receive this error:
Insufficient access rights to perform the operation. (Exception from
HRESULT: 0x80072098)
the delegation works fine and I can access other resources using my web
site.
I have changed the AD seurity to allow "everyone" to read it, no change!

can I specify specific credential when I want to access the AD? (changing
the identity in the web.config appear to not help me)


"Dominick Baier" <dbaier@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message news:4580be63397b8c87315b1e6a2c4@xxxxxxxxxxxxxxxxxxxxx
Hello Jéjé,

you can completely configure the role provider in config.
in code you can access it via

Roles.Providers["name"].GetAllRoles();



Hi,

I want to use the AuthorizationStoreRoleProvider class using my own
code but NOT to authenticate and authorize the users in my current web
application, only to manage some security part of my active directory.

In my web.config, I have added some configuration information (like
the
connectionstring which point to my active directory)
now I want to initialize the AuthorizationStoreRoleProvider object...
Public Shared Function GetRoles() As String()

Dim o2 As New System.Web.Security.AuthorizationStoreRoleProvider

o2.ApplicationName = "/"

o2.ScopeName = ""

o2.Initialize(<????>, <????>)

Return o2.GetAllRoles()

End Function

what are the parameters I have to send to the Initialize function?

Thanks.

Jerome.





.



Relevant Pages

  • Re: using AuthorizationStoreRoleProvider directly without activating the rolemanager?
    ... you can completely configure the role provider in config. ... only to manage some security part of my active directory. ... now I want to initialize the AuthorizationStoreRoleProvider object... ... what are the parameters I have to send to the Initialize function? ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • using AuthorizationStoreRoleProvider directly without activating the rolemanager?
    ... NOT to authenticate and authorize the users in my current web application, ... only to manage some security part of my active directory. ... now I want to initialize the AuthorizationStoreRoleProvider object... ... what are the parameters I have to send to the Initialize function? ...
    (microsoft.public.dotnet.framework.aspnet.security)