Originally posted by Chris Jackson:
I have only used VBScript in ASP pages. Not had much experience with JScript. Thankyou for the post hijack though . AS for giving out heart attacks, i understand, but what better place to come to then where I feel most comfortable, with Java peeps. Notice how I tossed in that I am SCJP. Anyway. I have gotten further and was forced to buy a book on Windows 2000 Active Directory Programming last night. Thrown right into LDAP://
Have come up with some new code that works to a point.
UName = ""
Set WshNetwork = CreateObject("WScript.Network")
UName = WshNetwork.UserName
Set objUser = GetObject("LDAP://OURSERVERNAME/DC=com/DC=OURDC/CN=Users/CN=" & UName)
Response.write objUser.Get("displayname")
Set objUser =nothing
Getting this error when i try to get the display name of the person.
The Active Directory datatype cannot be converted to/from a native DS datatype.
So if anybody knows about LDAP or what step I am missing, thanks.