Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 308467
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T07:39:11+00:00 2026-05-12T07:39:11+00:00

If I am using integration authentication in IIS, how can I determine if the

  • 0

If I am using integration authentication in IIS, how can I determine if the current user is part of a specific active directory role, using ColdFusion.

This would be analogous to using the IsInRole() method of the User object in .net – how can it be done in ColdFusion

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T07:39:11+00:00Added an answer on May 12, 2026 at 7:39 am

    the only way to do this is to use cflap and query the active directory server to get a list of groups. after you’ve gotten the list, you will need to parse it to see if that user belongs to the group in question. below is some code i wrote with some comments for the people at work. values have been changed to protect the innocent.

    <!--- getting the user login id --->
    <cfset variables.thisuser = ListLast(cgi.AUTH_USER, "\")>
    <!--- this is the group they must be a memberof --->
    <cfset variables.groupname = "CN=<the group to search for>">
    <!--- list of all groups that the user belongs to, will be populated later --->
    <cfset variables.grouplist = "">
    
    <cftry>
        <cfldap action="query"
            name="myldap"
            attributes="memberOf"
            start="OU=<your ou>,DC=<your dc>,DC=<your dc>"
            scope="subtree"
            filter="(sAMAccountName=#variables.thisuser#)"
            server="<your AD server ip>"
            port="<your AD server port>"
            username="<network login if required>"
            password="<network password if required>">
    
        <cfset variables.grouplist = myldap.memberOf>
    
    <cfcatch>
        </cfcatch>
    </cftry>
    
    <cfif FindNoCase(variables.groupname, variables.grouplist)>
    
        <cfcookie name="SecurityCookieName" value="">
    
    </cfif>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 152k
  • Answers 152k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Does your release subdirectory exist? The compiler won't create it… May 12, 2026 at 10:07 am
  • Editorial Team
    Editorial Team added an answer I have figured out how this can best be done… May 12, 2026 at 10:07 am
  • Editorial Team
    Editorial Team added an answer The part about not being able to flip diagonally is… May 12, 2026 at 10:07 am

Related Questions

I am very new to the whole unit testing concept so I'm sorry if
I am working on a project that is going to use CouchDB for flexible
I am trying to numerically integrate an arbitrary (known when I code) function in
I am using Visual Studio 2005 and StarTeam 2008 (cross-platform client and VS integration).
I am using an api which interacts with a db. This api has methods

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.