Winbind (Linux integration to Active Directory domain) - useful commands

Опубликовано: 01 Август 2026
на канале: Business Server Solutions
4,934
28

Winbind (Linux integration to Active Directory domain) - useful commands

Here is list of useful winbind commands which will be used in this video tutorial:

kinit administrator
klist
klist -l
klist -d -e

net ads leave -U administrator
net ads join -S tstaddc1 -U administrator
net ads testjoin
net ads dns register -P
net ads info
ntpdate 192.168.199.54
net ads status | more
net ads lookup

getent passwd
getent passwd "TSTDOM01\tstusr01"

getent group
getent group "TSTDOM01\tstgrp01"

id tstusr01
groups tstusr01

wbinfo -p
wbinfo -u
wbinfo -g
wbinfo -i
wbinfo -a tstusr01%P4ssw0rd123
wbinfo -t
wbinfo -r tstusr01

Remove Winbind Cache:
~*~*~*~*~*~*~*~*~*~*~

systemctl stop winbind
systemctl stop smb
systemctl stop nmb

net cache flush

rm -f /var/lib/samba/*.tdb
rm -f /var/lib/samba/group_mapping.ldb

systemctl start nmb
systemctl start smb
systemctl start winbind


Related Video Tutorials:

Introduction to integration of Linux servers to Windows Active Directory domain:
   • Introduction to integration of Linux serve...  

Installation of Active Directory Domain Services and setup of Active Directory domain:
   • Installation of Active Directory Domain Se...  

Installation of Identity Management for Unix, setup of testing Active Directory users and groups and configuration of Unix attributes tab:
   • Installation of Identity Management for Un...  

Setup of Windows 10 desktop as Active Directory domain member. Joining Windows 10 to Active Directory domain:
   • Setup of Windows 10 desktop as Active Dire...  

Integration of Linux server to Active Directory domain using winbind and idmap method rid #1 (longer version):
   • Integration of Linux server to Active Dire...  

Integration of Linux server to Active Directory domain using winbind and idmap method rid #2 (shorter version):
   • Integration of Linux server to Active Dire...  

Winbind (Linux integration to Active Directory domain) - useful commands:
   • Winbind (Linux integration to Active Direc...  

Integration of Linux server to Active Directory domain using winbind and idmap method ad
(Please leave comments below if you are interested in this video. If interest will be shown it will be created and uploaded.)

Integration of Linux server to Active Directory domain using SSSD and ldap_id_mapping = True
(Please leave comments below if you are interested in this video. If interest will be shown it will be created and uploaded.)

Integration of Linux server to Active Directory domain using SSSD and ldap_id_mapping = False
(Please leave comments below if you are interested in this video. If interest will be shown it will be created and uploaded.)

winbind vs SSSD performance review/comparison
(Please leave comments below if you are interested in this video. If interest will be shown it will be created and uploaded.)