Page 1 of 1 1
Topic Options
#77456 - 2001-04-03 07:26 PM GetObject and LDAP
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
has anyone gotten this to work yet? or is it just me?

code:

$root = GetObject("LDAP://localhost")
? @error
? @serror

the output is

quote:

-2147016646
The server is not operational.

??

Bryce

------------------
kix.isorg.net

Top
#77457 - 2001-04-03 08:41 PM Re: GetObject and LDAP
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Bryce

Funny you should ask, I was just proto-typing the replacement for my LDAP lookup script... the real trick is in getting the ADSpath correct. This works within my organization...

code:

break on cls


$ldap = GetObject("LDAP://ldapserver.whatever.com/ou=CGI, ou=people,o=external,c=ca")


$count = 0


if $ldap


for each $object in $ldap


?"name = " $object.name
?"class = " $object.class


$count = $count + 1


next


endif


?"count=$count"
?
?"pause..." gets $k


exit


Shawn.

[This message has been edited by Shawn (edited 03 April 2001).]

Top
Page 1 of 1 1


Moderator:  ShaneEP, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1447 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.05 seconds in which 0.024 seconds were spent on a total of 12 queries. Zlib compression enabled.