Just do a query using a pricipalName or distinguishedName as a filter:

<cfldap action="QUERY"
            name="qGetUserDetails"

attributes="displayName,name,givenName,sn,initials,mail,title,department,physicalDeliveryOfficeName,company,telephoneNumber,otherTelephone,pager,homePhone,mobile,streetAddress,l,ST,postalCode,info,otherHomePhone,otherMobile,otherPager,sAMAccountName,objectGUID,objectSid"

filter="(&(objectclass=user)(userPrincipalName=#sUserPrincipalName#))"
            start="dc=corp,dc=local"
            server="#variables.instance.Properties.getProperty('server')#"

username="#variables.instance.Properties.getProperty('serviceUserName')#"

password="#variables.instance.Properties.getProperty('ServicePassword')#"
            port="#variables.instance.Properties.getProperty('port')#">



On 12/21/05, Jillian Koskie <[EMAIL PROTECTED]> wrote:
>
> I'm about to pull my hair out!
>
> How do I pull the details for a specific user using CFLDAP?  I've tried
> every combination of things I can think of.
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:5:189205
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/5
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:5
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.5
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to