Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
9
rated 0 times [  14] [ 5]  / answers: 1 / hits: 40258  / 14 Years ago, fri, july 23, 2010, 12:00:00

I'm trying to make a sidebar gadget that has an LDAP query function but haven't been able to find very good, or any, useful documentation on the matter. I'm not hugely experienced with Javascript and know little to nothing about how LDAP queries function, so any information at all would be useful.



info:




  • host: a.b.c.d.e

  • port: 389

  • ou: people

  • o: x_y_z

  • c: us



first snippet:



var sSearchURL = ldap://a.b.c.d.e:389/o=x_y_z,c=us;
var URLsuffix = dc= + form.SearchData.value;
document.location = sSearchURL URLsuffix;


other snippet:



var ldap = GetObject('LDAP:');
var ad = ldap.OpenDSObject(
'LDAP://a.b.c.d.e:389/o=x_y_z',
'cn=Administrator,ou=People,o=rootname',
'password',
0
);

More From » ldap

 Answers
7

As long as you want to run your JavaScript in a web browser, you are limited to the HTTP protocol and to the domain from which your script was loaded in the first place.



So, talking to an LDAP server will not be possible from a web browsers JavaScript engine.



There are JavaScript runtime environments that have less limitations where you can implement socket servers and clients. For LDAP conenctivity you'd have to write your own library or find some existing one.


[#96130] Wednesday, July 21, 2010, 14 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ansleyk

Total Points: 42
Total Questions: 100
Total Answers: 83

Location: Angola
Member since Wed, Apr 13, 2022
2 Years ago
ansleyk questions
;