I have a big problem . . .
The whole day I'am traying to connect my asp page to the LDAP server - windows server 2003 , but finaly I realise that the problem is in security settings on IIS 6.
I have administrator rights on domain.
asp pages are on the defoult web sites on my web server
the web server is publishet by the ISA server
plase post any idea
here is a code posted all over the internet that should work - but it's still unuseble for me
in every site i consider that this is a security problem
<%@ Language=VBScript %>
Set objDomain = GetObject ("GC://RootDSE")
objADsPath = objDomain.Get("defaultNamingContext")
Set objDomain = Nothing
Set con = Server.CreateObject("ADODB.Connection")
con.open "Active Directory Provider"
Set Com = CreateObject("ADODB.Command")
Set Com.ActiveConnection = con
Com.CommandText ="select department from 'GC://"+objADsPath+"' WHERE department ='*'"
Set rs = Com.Execute
Do While Not rs.EOF Or rs.BOF
Response.Write rs("department") & "<BR>"
Set rs = Nothing
Set con = Nothing
best regards Marko