AzAuthorizationStore.Initialize on ADAM Url throws FileNotFoundException

J

Jared Warren

I have an ADAM instance with a root of
"CN=TestWithRoles,DC=royalroads,DC=ca" running on a server called
metrocsdev, port 5000. I successfully connect to this remotely using
AdsiEdit. This instance contains an AzMan store, which I have
successfully edited using the AzMan tool. However, when I try running
the following C# code in a console app:

AzAuthorizationStore apps = new AzAuthorizationStoreClass();
apps.Initialize(0,
"msldap://metrocsdev:5000/CN=AzManStore,CN=TestWithRoles,DC=royalroads,DC=ca",
null);

I get a FileNotFoundException: The system cannot find the file
specified. (Exception from HRESULT: 0x80070002). Why is my url not
being parsed correctly?

Thanks for your help.
Jared Warren
Metro Project, Royal Roads University
 
C

Chi-Yan Tong

I have the exact same problem. Seems like if you add an ADAM user (not
Windows user) to the Role Assignments though the AzRoles API, then you
cannot initialize the AzAuthorizationStore again on the next
application run without getting that error message you mentioned. This
is because the AzRoles API doesn't recognize the ADAM user SID when
initializing (though it should never need to access that information
upon initialization).

Now, does anybody know how to resolve this issue? That is, how can we
still call initialize on an AzMan store that has ADAM users assigned to
its roles?

Thanks,
Chi
 
A

Andy H

Jared,

I had this same problem. It is a permissions issue. You need to do the
following:

1) In ADSI-Edit, your ADAM partition has a Roles container. Inside that is
Readers. Edit the "members" attribute of Readers, and add whatever AD Groups
and Users will be running your console app. This gives them access to the
ADAM partition.

2) In Authorization Manager, right-click on your store and click Properties,
go to the Security tab. In there, select the Reader role and add the same AD
Users and Groups you added in step 1. This gives them permission to call
AccessCheck.
 

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

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,534
Members
45,008
Latest member
Rahul737

Latest Threads

Top