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

Write to AD

Explorer ,
Feb 06, 2008 Feb 06, 2008

Copy link to clipboard

Copied

I would like to give users the capability to edit thier accounts in Active Directory (AD). I currently use cfldap for AD searches, but how would I write data to AD?
TOPICS
Advanced techniques

Views

347

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 ,
Feb 23, 2008 Feb 23, 2008

Copy link to clipboard

Copied

Use the CFLDAP tag where ACTION="modify".

Basically, it would look something like this:

<cfldap action="modify" modifytype="replace" attributes="sn=#lastname#;givenName=#firstName#" dn="#userDN#" ...[rest of attributes]...>

In the ATTRIBUTES attribute, you set any AD attributes that need to be changed. These attribute/values are separated by a semicolon. If any values should have a semicolon in them, then you need to use the DELIMITER or SEPARATOR attributes to specify a different character. I would suggest a tab character.

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
Explorer ,
Feb 25, 2008 Feb 25, 2008

Copy link to clipboard

Copied

LATEST
The key was using semicolons in the attributes.

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