A New Internet Library: Add Your Website/Blog or Suggest A Website/Blog to our Free Web Directory http://anil.myfunda.net.

Its very simple, free and SEO Friendly.
Submit Now....

Tuesday, July 22, 2008

LDAP Query

Hi All,

I am a seasoned coldfusion programmer trying to make the switch to ASP.Net. I am running VS2008 and .NET3.5, I prefer the VB.Net language

In CF I was able to very easily query our internal LDAP server and output the values. I need this not always for authentication (this is handled in a different way) but more likely to return a users name, department, cost centre and so on from a user id or uid.

An example of the CF code is shown below. Please can someone help me to make sense of this in .NET, it really is driving me nuts, I have tried just about every solution on the block and nothing seems to work. I think I must be missing something fundamental. If you could spare me some of your time a quick walk through would be excellent. Its very frustrating going from a language I could make sing to one I cannot now seem to make beeb, Big Smile I know it can do it I just need to learn how.....

 

<cfldap    
            server = "myldap.herec"
            port="389"       
            action = "query"
            name = "results"
            start = "dc=group,dc=com"
            attributes = "cn,department"
            filter="uid=abc12345">

 

This would make the call to the LDAP and return the results to the CF server, then to output you would just call results.cn or loop if there was more than one. I think my problem is not with the output but how I make that initial bind with the LDAP. 

 Thanks for any and all help.

Steve
 



 



Source Click Here.

No comments:

Post a Comment

Post your comments here:

Originals Enjoy