D
Daniel Berger
Hi all,
ruby 1.8.2 (2004-12-25) [i386-mswin32]
Windows XP Pro
I'm having a bit of trouble with the following code. I can get a
connection, and create the user, once I call setinfo. However, if I
try to use any of the put_ methods, I get an error:
require "socket"
host = Socket.gethostname
adsi = WIN32OLE.connect("WinNT://#{host},Computer")
user = adsi.create("user", "foo")
user.put_Description("test account") # Boom!
user.setinfo
However, if you replace the bad line with:
user.put("Description", "test account")
Then it works. Shouldn't it work either way?
Regards,
Dan
ruby 1.8.2 (2004-12-25) [i386-mswin32]
Windows XP Pro
I'm having a bit of trouble with the following code. I can get a
connection, and create the user, once I call setinfo. However, if I
try to use any of the put_ methods, I get an error:
require "socket"
host = Socket.gethostname
adsi = WIN32OLE.connect("WinNT://#{host},Computer")
user = adsi.create("user", "foo")
user.put_Description("test account") # Boom!
user.setinfo
However, if you replace the bad line with:
user.put("Description", "test account")
Then it works. Shouldn't it work either way?
Regards,
Dan