• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Looking up user's first and last name with Integrated Windows Authentication

Guest
Apr 12, 2012 Apr 12, 2012

Copy link to clipboard

Copied

Hello,

I am building an intranet web application and would like to use Integrated Windows Authentication.  I am easily able to retrieve the user's Active Directory domain name and username (SAMAccountName) using any of the following:

cgi.remote_user

cgi.auth_user

GetAuthUser()

However I would like to have their first name and last name as well.  Does anyone know how I can get this information?

Thanks!

Jon

Views

813

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 12, 2012 Apr 12, 2012

Copy link to clipboard

Copied

If it's in AD, you can get it.  Since I don't know what the fields are called, I'd have to do a google search on "active directory field names".  But you can do that yourself.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Apr 12, 2012 Apr 12, 2012

Copy link to clipboard

Copied

But how do I query AD from coldfusion? Sorry I'm new to coldfusion.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 12, 2012 Apr 12, 2012

Copy link to clipboard

Copied

LATEST

there is a tag called cfldap

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation