Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Reading the GAL (Active Directory)

Reading the GAL (Active Directory)

Reading the GAL (Active Directory)

I'm trying to create a javascript function that I can run from my browser. The webpage form will take the login name of a user in the GAL, and return specific elements from the user's GAL record (email address, phone number, etc...). Security is getting in the way of my testing.
1. I need my script to first get the credentials of the locally logged in user (me). I have read-only access to the GAL.
2. I need some simple code that will perform an LDAP query in the GAL, and return specific attributes.

I have tried several examples (thanks to Google) and all of them fail in one way or another.
Suggestions or hints are welcome.

RE: Reading the GAL (Active Directory)

Javascript has no access to the local machine at all. That would be a security hazard if any JS script on the web could immediately access local resources to the machine.

Likewise JS cannot access server resources such as LDAP directly. Basically what you want to accomplish cannot be done with Javascript alone.

If you need to check an LDAP, your best bet is Activex and IE or an ASP script server side that does all this and returns the info to an Ajax Js script that can then use the info it receives.

Phil AKA Vacunita
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.

Web & Tech

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close