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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

LDAP using ASP 1

Status
Not open for further replies.

meenakshidhar

Programmer
Oct 19, 2001
77
0
0
MY
hi freinds...
i m new to LDAP..i am using IIS on Windows 2003 Server...i want to connect ASP with LDAP (which is on my Unix machine)...can anybody plss tell me how to start using ASP with LDAP...i want to add, modify, delete, search data in LDAP using ASP...
what all things should i need to install...and how ???


Regards
Meenakshi Dhar
 
hello

I haven't used LDAP much - and have only used it to search. but this is how I searched through it.


sSQL = "Select AdsPath FROM 'LDAP://server-name/dc=pass,dc=com' where objectclass='Person' and id='" & id & "' and sn='" & surname & "' and givenName='" & firstname & "' ORDER BY cn"
Set cnADS = Server.CreateObject("ADODB.Connection")
cnADS.Provider = "ADsDSOObject"
cnADS.Open "ADs Provider", "", ""
Set rsMine = cnADS.Execute(sSQL)
 
Yes that's a good starting point stemitch.

________
George, M
Searches(faq333-4906),Carts(faq333-4911)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top