wbinfo: Windbind information
Translation of the original in Catalan. Read it in: CatalàCastellano
I had never needed it until today, I had a samba that accessed an AD to know who its users and user groups were. So, the problem I had was how I could find out which users it had and which groups. It turns out that all this is done through the wbinfo command.
Below I put a small reference of the parameters that have worked best for me:
# llista usuaris
wbinfo -u
# llista grups
wbinfo -g
# info d'un usuari
wbinfo -i DOMINI+username
# grups que té l'usuari
wbinfo -r DOMINI+username
# informació d'un grup a partir del GID
wbinfo --gid-info=GID
# obtenir el GID a partir del nom del grup
wbinfo --group-info=DOMINI+groupname
# informació d'un usuari a partir del UID
wbinfo --uid-info=UID
Full reference of the command: wbinfo