how to get list of user groups from NT?

Tim Potter tpot at
Wed Mar 28 03:36:26 GMT 2001

Ben Johnson writes:

> Thanks for your help.
> I have looked through the rpc_client code and thought it might be the
> way to go.  I have steered clear of it so far though because 1) the code
> looks so shiny and new and I need stability and 2) I need to make this
> utility as small as possible, so the more code I can trim from samba the
> better.
> What do you think?  Is the 2.0.7 rpc_client code stable?  I have tried

The 2.0.7 stuff is pretty woeful.

> running the rpcclient from both 2.0.7 and the cvs version and have had
> little success with them so far.  The 2.0.7 barely runs and the cvs HEAD
> queryusergroups always complains that the filehandle is invalid.

Hmm.  Sounds like a bug.  (-:  I think the HEAD branch rpcclient
code is much nicer than the 2.0 stuff, although it isn't as well
tested as I would like.


More information about the samba-technical mailing list