Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding a user to AD with Coldfusion

Status
Not open for further replies.

jdaniels

Technical User
Apr 23, 2002
63
GB
Hi,

I am trying to add a user to Active Directory with ColdFusion's CFLDAP function. However I am encountering problems with the 'uid' variable. Here is my code:

[cfldap action="add"
dn="uid=myUserID, ou=myDept, o=myOrg, c=US"
attributes="objectclass=top,person,organizationalperson;cn=MyFull Name;sn=Name;mail=me@mymail.com"
username="administrator"
password="secretpassword"
server="ldapservername.domain.com"]

However when I execute this, I receive the following error:

'Operations error'

I can query and modify entries with no problem. The UID variable is causing problems. I am unsure exactly what it refers to and cannot display any value for it in the query output. If I add it to the list of attributes, I am told I have an invalid attribute. How do I add some value for this variable to an Active Directory entry? There appears to be no 'uid' visible anywhere in the schema management console.

Thanks,

Jonathan Daniels
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top