I know there are tons of LDAP questions here, but this is slightly different.
I work in a school, and we want the students to be able to change their passwords, but we need to keep a record of them (since most students forget their passwords instantly). To this end, I have written a vbs script that updates the password via LDAP and also updates our database of passwords.
Now I want to put that functionality onto an intranet page so the students can use it.
The Script works perfectly when run as a .vbs file, but as soon as it's put into asp, the line,
GetObjet("ldap:\\cn=bob,ou=students,dn=blah...")
throws an "Internal asp error", but only when run from a machine that isn't the webserver. if the page is called from the webserver itself, it runs fine. I'm very puzzled.
I'm using IIS, and have the page using integrated windows authentication, and am logged in as admin on the machine, so it's probably not a permissions issue... or is it?
Does anyone have any ideas? Is there something that needs to be done differently when accessing LDAP from asp instead of WSH?