--- SAS AD Notes 01-20-2023 ---
### files for connectiing to the domain
/etc/krb5.conf
/etc/openldap/ldap.conf
/etc/sssd/sssd.conf
/etc/samba/smb.conf
/etc/samba/lmhosts
/etc/hosts
### check the statuses and restart any that are running
systemctl status sssd
systemctl status ntpd
systemctl status smb
systemctl status nmb
systemctl status winbind
systemctl status oddjobd
###restart the following services:
systemctl restart sssd
systemctl restart ntpd
systemctl restart smb
systemctl restart nmb
systemctl restart winbind
systemctl restart oddjobd
cd /usr/local/bin
Run the Bind script for the DOMAIN
/usr/bin/kinit -k -t /etc/krb5.keytab 'BUSAS$@BU.BINGHAMTON.EDU'
klist
/usr/bin/smbstatus
service sssd stop; rm -rf /var/lib/sss/db/*
kdestroy
mv /etc/krb5.keytab /etc/krb5.keytab.backup
net ads leave -U m.duell
net ads join -U m.duell --no-dns-updates
service sssd start
=======================================
ldapsearch \
-D "chouck@binghamton.edu" \
-s sub -b "OU=BU-Users,OU=Binghamton-University,DC=bu,DC=binghamton,DC=edu" \
-h buffalocreek.bu.binghamton.edu:389 \
-E pr=1000/noprompt "(cn=chouck)" bnumber -x -W
In the end SAVE for theJOIN all files that were changed were restored...You Tell Me?!?!?!