Bugs: Browse | Submit New | Admin

[#28191] Admin.users dies on WIN32OLERuntimeError

Date:
2010-05-11 15:55
Priority:
3
Submitted By:
David Schmitt (davidschmitt)
Assigned To:
Daniel Berger (djberg96)
Category:
sys-admin
State:
Closed
Summary:
Admin.users dies on WIN32OLERuntimeError

Detailed description
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: Notepad

Please login


Followup

Message
Date: 2014-01-24 04:23
Sender: Daniel Berger

I'm thinking the solution is to explicitly specify the domain.
Anyway, no followup, so I'm closing.
Date: 2014-01-18 13:43
Sender: Daniel Berger

Did you ever figure this out?
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

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

Field Old Value Date By
close_date2014-01-24 04:232014-01-24 04:23djberg96
resolution_idNone2014-01-24 04:23djberg96
status_idOpen2014-01-24 04:23djberg96