Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

telerik -- supercharge your DNN websites
  Ads  
Webhost4Life - $4.95 Windows Hosting
 


  Sponsors  

Meet Our Sponsors

SteadyRain
DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  Iframe Module [...  Getting AD id
Previous Previous
 
Next Next
New Post 9/8/2008 7:53 AM
Resolved
User is offline Matthew Cushing
53 posts
10th Ranked


Getting AD id 

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 8:40 AM
User is offline Vitaly Kozadayev
753 posts
www.continure.com
7th Ranked






Re: Getting AD id 

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 8:49 AM
User is offline Matthew Cushing
53 posts
10th Ranked


Re: Getting AD id 

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

 
New Post 9/8/2008 2:34 PM
User is offline Matthew Cushing
53 posts
10th Ranked


Re: Getting AD id 

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 5:37 PM
User is offline Vitaly Kozadayev
753 posts
www.continure.com
7th Ranked






Re: Getting AD id 

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 Previous
 
Next Next
  Forum  DotNetNuke® Pro...  Iframe Module [...  Getting AD id
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


ASP.NET Web Hosting for $3.95
3 Month FREE ASP.NET Hosting! FREE Setup! DNN Support! FREE Domain Name! FREE Components! Host multiple websites on 1 plan! 30 Days Money Back Guarantee!
www.dailyrazor.com
Cestus Websites
DotNetNuke websites en services in Nederland. Cestus Websites levert websites, projectmanagent, skins, modules, training en gespecialiseerde hosting op basis van het CMS DotNetNuke.
www.dotnetnuke-websites.nl
FREE Skins, Modules & Control Panel!
Choose how much you want to pay on our Skins, Modules, Containers and Control Panel - Starting from FREE!
www.dnngroup.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP