473,397 Members | 2,084 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Authorization Manager Programming Issue

Hi,

Could someone help me on one issue regarding to Authorization Manager
(AzMan)? Thanks in advance!!!

I first open the AD based azMan store and an application, everything seems
work fine ... but when I tried to programatically to retrieve the tasks
defined for a specific role, instead of getting the tasks list but the role
name itself. (I can get the tasks inside a task correctly :), here is my
code:

_app is defined and opened correctly ...

Microsoft.Interop.Security.AzRoles.IAzRole role = _app.OpenRole(roleName,
null);
System.Array tasks = (System.Array) role.tasks;
for (int i = 0; i < tasks.length; i++)
{
MessageBox.Show(tasks.GetValue(i).ToString());
}

Any help and tips will be greatly appreciated!

Thanks again!
John
Nov 16 '05 #1
2 4998
Hi John,
I tried a similar code in C# and get the same output (the role has 2 tasks
assigned but from my code, array length = 1 and it shows the role name).
Looks like it is a bug in retrieving tasks property. I will write a c++
program for this issue and update you tomorrow.

thanks,
Rhett Gong [MSFT]
Microsoft Online Partner Support

This posting is provided "AS IS" with no warranties, and confers no rights.
Please reply to newsgroups only. Thanks.

Nov 16 '05 #2
Hi John,
Thanks for your update. It is glad to see you have got the problem
resolved.

Yes, it is OK to use IAzApplication::OpenRole and then call OpenTasks to
get tasks if we get the role name. But from doc, the IAzRole::Tasks
property is used to retrieve the tasks associated with the role. I will
send feedback to our doc team to make the doc more clear for users.

Thanks again and Happy New Year.

Rhett Gong [MSFT]
Microsoft Online Partner Support

This posting is provided "AS IS" with no warranties, and confers no rights.
Please reply to newsgroups only. Thanks.

Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: John Lee | last post by:
Hi, Could someone help me on one issue regarding to Authorization Manager (AzMan)? Thanks in advance!!! I first open the AD based azMan store and an application, everything seems work fine...
0
by: John | last post by:
We are using Authorization Manager in an ASP.NET application. We are using Microsoft.Interop.Security.AzRoles. We appear to have a memory leak when calling the method...
5
by: Nevets Steprock | last post by:
I have been building a website diligently for the past three months and everything has been working well so far. Yesterday, I added a link on my javascript menu. This link is supposed to go to a...
1
by: Michael Herman \(Parallelspace\) | last post by:
In the thread below from microsoft.public.windows.server.active_directory, Joe Kaplan point out there is a ActiveDirectoryMembershipProvider for AD but there doesn't appear to be an AD/ADAM...
0
by: cesar.degollado | last post by:
I am working with Authorization Manager and I have installed it in a Primary Domain Controller and when I am trying to get access, it starts aplication fine that I have defined in my application...
1
by: sonu | last post by:
Mark is creating a website using ASP.NET. He is using Forms authentication for authenticating and authorizing users. He has the following layout of files and directories in his website: Root...
0
by: Douglas J. Badin | last post by:
Hi, The problem with Authorization is it stops at the first match and doesn't permit Grouping. On the Web Site, I am trying to Secure Page Access and SiteNaviagation by implementing the...
3
by: deepak | last post by:
Hi There , I want to know ,whether we can use Windows Authorization manager for Entity Based Access Rights .here for me entity is a program element . if some one has any idea ,please let me...
0
by: Ahmedhussain | last post by:
Hi everyone, I am totally new to IIS. I somehow configured IIS and now whenever I try to add a website, on testing it gives me the error of authorization, i.e. "Cannot verify access to path :...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.