From: Glen Holcomb Date: 2007-07-23T23:22:31+09:00 Subject: Re: Win32OLE problem ------=_Part_126506_15443968.1185200554540 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 7/20/07, Todd Burch wrote: > > Glen Holcomb wrote: > > When executing this code: > > > > adsi = WIN32OLE.connect("WinNT://TECHNO/ARDR_108,group") > > adsi.put("Add", "glen") > > > > I get the following error: > > > > WIN32OLERuntimeError: put > > OLE error code:8000500F in > > > > HRESULT error code:0x80020009 > > Exception occurred. > > from (irb):20:in 'method_missing' > > from (irb):20 > > from :0 > > > > If I'm reading the error correctly, "put" is not being recognized as a > valid method. Does the object model say "put" is a valid method? > > Todd > > -- > Posted via http://www.ruby-forum.com/. > > I didn't even think to look at that. I was getting the code snippet from some other code that wasn't mine. It would appear that put isn't a defined method for a WIN32OLE object. Strange, I've switched approaches now though and am using Net::LDAP to do what I need to do. Thanks for doing my reading for me ;) -- "Hey brother christian with your high and mighty errand, Your actions speak so loud, I can't hear a word you're saying." -Greg Graffin (Bad Religion) ------=_Part_126506_15443968.1185200554540--