[Samba] testparm comaprison

Rowland penny rpenny at samba.org
Mon Sep 23 14:55:28 UTC 2019


On 23/09/2019 15:49, Marco Gaiarin via samba wrote:
> Mandi! L.P.H. van Belle via samba
>    In chel di` si favelave...
>
>> Full qouta search list :
>> https://bugzilla.samba.org/buglist.cgi?quicksearch=quota&list_id=25312
> I don't think it's a samba bug!
>
> Simply i'm pointing out that disabling 'winbind enum' can lead to some
> 'glitches', mostnotably 'getent passwd' return no domin users (by
> design) and repquota/warnquota does not work.
>
And as I said you do not need them, here is a small script to display 
Unix users:

#!/bin/bash

ADusers=0
Unixusers=0

for name in $(wbinfo -u)
do
   ADusers=$((ADusers+1))
   unset unixuser
   unixuser=$(getent passwd "$name")
   if [ -z "$unixuser" ]; then
       continue
   fi
   Unixusers=$((Unixusers+1))
   echo "$name"
done

echo "AD Users: $ADusers"
echo "Unix Users: $Unixusers"

Rowland






More information about the samba mailing list