From: Alexander Schofield Date: 2002-03-07T06:56:15+09:00 Subject: Re: WIN32OLE and LDAP Vbs' native GetObject function is mostly used to get a reference to an existing object, but it can also instantiate one if none exists. WIN32OLE#connect can't create a new one like GetObject, are you sure this object exists? "Morris, Chris" wrote: > > In .vbs I can do: > > set ldap = GetObject("LDAP:") > > I tried: > > ldap = WIN32OLE.connect("LDAP:") > > .. but it doesn't like it: > > users.not.in.groups.rb:6:in `connect': Unknown OLE server : LDAP: > (RuntimeError) > HRESULT error code:0x800401f3 > Invalid class string > from users.not.in.groups.rb:6 > > Any one know if this can work? > > (Ruby 1.6.5 - Win 2000) > > Chris -- Alexander Schofield