Problems using AzMan role methods

  • Thread starter Patrick Allmond
  • Start date
P

Patrick Allmond

I am using AzMan and XML to do role, group and operation validation. This is
all new to me, and I am working in VB. My application is using Windows
Authentication. I have several questions:

1. When trying to authenticate that the current user has access to an
operation I use this code:
Results = clientContext.AccessCheck("Object Being Audited Goes Here",
Nothing, Operations, Nothing, Nothing, Nothing, Nothing, Nothing)
(Operations is one element array with the operation id I want to check).
After this call results(0) contains a 0 or 5. What are those supposed to
translate to ? It looks like a 5 means the person is not authorized for the
operation and a 0 means that they are. But I cannot find any good
documentation on what a 5 vs a 0 means.

2. Roles: I cannot get anything to work when it comes to role validation. A
simple call such as:
Dim temp() As String
temp = Roles.GetAllRoles()

results in:
Unknown name. (Exception from HRESULT: 0x80020006 (DISP_E_UNKNOWNNAME

I am pretty sure my web.config it set up correct but we can review if
needed. I think it is OK because (as indicated in #1) I can check
operations... somewhat.

Thanks,
Patrick
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,818
Latest member
Brigette36

Latest Threads

Top