Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - LDAP (different from other posts!)
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

LDAP (different from other posts!)

 Post Reply Post Reply
Author
mendingo View Drop Down
Newbie
Newbie


Joined: 11 December 2003
Location: United Kingdom
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote mendingo Quote  Post ReplyReply Direct Link To This Post Topic: LDAP (different from other posts!)
    Posted: 11 December 2003 at 2:31am

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?

Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post Posted: 13 December 2003 at 8:53am
Sure is a permissions issue, if you use Windows Authentication and are logged in as admin you can change the password. Now the students log in with their credentials which do not have the rights to change their password. Now if it still does not work when YOU log in from a differennt machine then you are right and the error message in some more detail would help. (Is it an  impersonation error??)
Back to Top
mendingo View Drop Down
Newbie
Newbie


Joined: 11 December 2003
Location: United Kingdom
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote mendingo Quote  Post ReplyReply Direct Link To This Post Posted: 15 December 2003 at 3:55am

It was indeed a permissions issue. I told IIS to use anonymous logins on that particular file, and gave the admin account as the anonymouse account to use, and it worked fine.

For some reason, using windows authentication, even admin can't connect, which is strange, but I can live with it!

Thanks!

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.