Here is my LDAP code I use to read users from our active directory.

<cfldap 
  name="Entity" username="theUserName" password="thePassword"
  server="sms01"
  action="query"
  attributes="displayname, mail, sn, cn, givenName, name, userPrincipalName, 
dn,samAccountName, sAMAccountType, memberOf, extensionName, telephoneNumber"
  scope="subtree" start="DC=smfbc,DC=org"
  filter = 
"(&(objectCategory=CN=Person,CN=Schema,CN=Configuration,DC=smfbc,DC=org)(cn=#url.un#))"
 sort="CN">

As you can see, you just put your username in that parameter not the fully 
qualified distinguished name, at least that is all I do.


--------------
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

---------
| 1 |   |
---------  Binary Soduko
|   |   |
---------
 
"C code. C code run. Run code run. Please!"
- Cynthia Dunning

Confidentiality Notice:  This message including any
attachments is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the
intended recipient, please contact the sender and
delete any copies of this message. 




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244321
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to