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

ColdFusion/.NET/ Active Directory Integration

New Here ,
Aug 13, 2007 Aug 13, 2007

Copy link to clipboard

Copied

Any ideas what's up with this code? Of note, I'm pretty clueless about active directory and .net!
TOPICS
Advanced techniques

Views

268

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
Explorer ,
Sep 05, 2007 Sep 05, 2007

Copy link to clipboard

Copied

LATEST
What exactly is the problem?

There are a couple of things that may not be right.

1. You need to set the userPrincipalName attribute. At the same time, set the sAMAccountName attribute. userPrincipalName is generally the email address. user@domain.com. sAMAccountName is just the username part of the email address.

2. You need to call the de.setInfo() method after setting the userPrincipalName, but BEFORE setting the password. This actually creates the directory object. You can't set a password on an object that doesn't yet exist in the directory.

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