Fwd: Samba4 how to list all members of a group

steve steve at steve-ss.com
Mon Apr 30 12:50:41 MDT 2012


On 04/30/2012 04:23 PM, Lukasz Zalewski wrote:
> On 30/04/12 15:18, steve wrote:
>> On 30/04/12 15:59, Lukasz Zalewski wrote:
>>> On 30/04/12 14:47, steve wrote:
>>>> On 30/04/12 14:10, Lukasz Zalewski wrote:
>>>>> On 30/04/12 10:20, steve wrote:
>>>>>> Hi
>>>>>> Sorry to forward but I had no luck with this on the samba list.
>>>>>> On s4 at the cli, is it possible to get a list of members of say,
>>>>>> Domain
>>>>>> Users?
>>>>>> Steve
>>>>>>
>>>>>
>>>>> Hi Steve,
>>>>> For Domain Users you can try:
>>>>>
>>>>> /usr/local/samba/bin/ldbsearch -a -H /usr/local/samba/private/sam.ldb
>>>>> '(|(primaryGroupID=513)(memberOf=CN=Domain 
>>>>> Users,CN=Users,DC=...))' dn
>>>>>
>>>> Hi Lukasz
>>>> Yes. That gets us there. Thanks.
>>>>
>>>> I can only think that this is not something I should need to do.
>>>>
>>>> Cheers,
>>>> Steve
>>>>
>>>
>>> Hi Steve,
>>> Where you thinking more of the samba-tool option, i.e.
>>> samba-tool group listmembers <grouname>?
>>>
>>> L
>> Yes, but listmembers is an error:
>>
>
> Sorry Steve,
> This was just a question if you would like this functionality (or 
> think that it should be available) through samba-tool, rather than 
> description of an existing command.
>
> L
Hi
Ah, I see. Yes. I certainly feel it would be a worthwhile addition to 
samba-tool. You already have the code. With a bit of cut and grep we 
could get it to list just the names of the members too:-)
Cheers,
Steve



More information about the samba-technical mailing list