Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsIFrameIFrameGetting AD idGetting AD id
Previous
 
Next
New Post
9/8/2008 9:53 AM
 

Is it possible to get the active directory id the same way you get a user id? [USERID]

I have the need to get some identifier for a user coming to a page and do a look up based on it.

The scenario is like this.  We have a Report Server app that I built that has a dropdown of reports available and a selection list of buildings they can run the reports for.  They pick a report, they pick a building, hit the generate button and voila.  I currently use a table to hold dnnID's and building ID's and I do a quick query to that table using [USERID] to see what to populate.

I'd like to use their AD id's because we're doing most of our security in DNN using our AD groups.  I know the AD won't change regardless of which portal I am on where the dnnID will.

Is it possible to get [ADID] from the iframe?

 
New Post
9/8/2008 10:40 AM
 

It's not available inside the IFrame module. However, may be guys at Authentication Providers forum can help you out with an advice?


Vitaly Kozadayev
Principal
Viva Portals, L.L.C.
 
New Post
9/8/2008 10:49 AM
 

I had a feeling, I just posted a question there as well.  Thanks.

 
New Post
9/8/2008 4:34 PM
 

I think I found a way to do it, I just don't know how to get a list of roles for the user when they log in.

Is there a way that is similar to this: DotNetNuke.Entities.Users.UserController.GetCurrentUserInfo

That I can use to get the list of roles like you do in the Viva iFrame?  I can make it work using Viva iFrame, but I'd prefer to get the list of Roles and do a query and store it in a session variable.  If I can get the list, I have the rest of the code.

 
New Post
9/8/2008 7:37 PM
 

The methods you are looking for are in a RoleContoller class:

Probably the best obne would be GetUserRoles - an ArrayList of UserRoleInfo objects

ArrayList userRoles_ = new DotNetNuke.Security.Roles.RoleController().GetRolesByUser(UserId, PortalId);

 


Vitaly Kozadayev
Principal
Viva Portals, L.L.C.
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsIFrameIFrameGetting AD idGetting AD id


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out