getting local groups/aliases via rpc?

Ben Johnson ben at blarg.net
Thu Nov 1 11:19:14 GMT 2001


I am using the 2.2.2 sources for my experimentation so far and it looks
like get_samr_query_usergroups is not implemented there.  I'm hoping for
excellent stability when I'm done so I've steered clear so far, but I'll
start looking into CVS.  Thanks a lot for your help.

- Ben


On Thu, Nov 01, 2001 at 12:31:00PM -0600, Steven French wrote:
> An alternate way to do this may be to add UserGetGroups to the clirap2.c
> code that Jim and I added to the head branch (for use by the new "net"
> utility) a few weeks ago.   We added a function called cli_NetGroupGetUsers
> that does list the users that are members of the named group (works to at
> least NT, Win2K, and OS/2 domain controllers so far).   You seem to want
> the reverse i.e. something like a cli_NetUserGetGroups which is possible
> and could be remoted via either RAP or RPC.   The trick is simply that it
> may not handle local groups (I have not been able to find the RAP ordinal,
> if there is one, for a UserGetLocalGroups unfortunately) - but certainly it
> could be done via RPC.   Have you tried the get_samr_query_usergroups call
> in cli_samr.c to see whether it returns localgroups too?
> 
> I will experiment with the RAP code for this (I have also been cleaning up
> more of net.c and experimenting with the ServiceInstall RAP calls for
> stopping and starting services remotely) to see if I can get something
> useful working.




More information about the samba-technical mailing list