Bugs: Browse | Submit New | Admin
When trying to use Admin.users to iterate over the list of users this exception is thrown: WIN32OLERuntimeError: failed to parse display name of moniker `WinNT://DAVID-PC/root' HRESULT error code:0x800708ac The group name could not be found. from C:/Ruby/lib/ruby/gems/1.8/gems/sys-admin-1.5.2-x86-mswin32-60/lib/sys/admin.rb:360:in `connect' from C:/Ruby/lib/ruby/gems/1.8/gems/sys-admin-1.5.2-x86-mswin32-60/lib/sys/admin.rb:360:in `get_groups' from C:/Ruby/lib/ruby/gems/1.8/gems/sys-admin-1.5.2-x86-mswin32-60/lib/sys/admin.rb:794:in `users' from C:/Ruby/lib/ruby/gems/1.8/gems/sys-admin-1.5.2-x86-mswin32-60/lib/sys/admin.rb:185:in `initialize' from C:/Ruby/lib/ruby/gems/1.8/gems/sys-admin-1.5.2-x86-mswin32-60/lib/sys/admin.rb:777:in `new' from C:/Ruby/lib/ruby/gems/1.8/gems/sys-admin-1.5.2-x86-mswin32-60/lib/sys/admin.rb:777:in `users' from C:/Ruby/lib/ruby/gems/1.8/gems/sys-admin-1.5.2-x86-mswin32-60/lib/sys/admin.rb:774:in `each' from C:/Ruby/lib/ruby/gems/1.8/gems/sys-admin-1.5.2-x86-mswin32-60/lib/sys/admin.rb:774:in `users' from (irb):34 The system is running Windows 7 and is connected to a samba based domain. The local system ("DAVID-PC") has no user "root", but of course, there is one in the domain. I can provide further testing if you need.
Add A Comment:
Date: 2010-05-21 11:35 Sender: David Schmitt Hmm, good question. Primarily I don't even know whether the samba domain is at fault or not. I mean domain logons and so on do work. It would be e.g. interesting whether the `WinNT://DAVID-PC/root' moniker is generated by sys/admin (and why) or only retrieved from windows.
Date: 2010-05-20 20:01 Sender: Daniel Berger Hm, what's the proper solution here? I'm not sure. Any suggestions? Regards, Dan