Difference between revisions of "Samba4 Troubleshooting"

From Stadm
Jump to navigationJump to search
Line 8: Line 8:
 
==Update Samba==
 
==Update Samba==
 
*https://wiki.samba.org/index.php/Updating_Samba
 
*https://wiki.samba.org/index.php/Updating_Samba
 +
systemctl stop samba
  
 
==Checking Replication==
 
==Checking Replication==

Revision as of 15:00, 27 January 2016


Troubleshooting

Update Samba

systemctl stop samba

Checking Replication

  • Check replication status
samba-tool drs showrepl

Force Removal of DC

Demote a DC

Join a DC

Backup and Restore

LDB Search/Edit

  • ldb search example:
ldbsearch -H /usr/local/samba/private/sam.ldb.d/DC\=DOMAINDNSZONES\,DC\=***\,DC\=***\,DC\=***\,DC\=***.ldb
  • weird error with tombstone lifetime
[2015/05/20 14:27:27.377734,  0] ../source4/dsdb/repl/replicated_objects.c:783(dsdb_replicated_objects_commit)
 Failed to apply records: replmd_replicated_apply_add: error during DRS repl ADD: No objectClass found in replPropertyMetaData for DC=lluvia\0ACNF:fe4415b8-8a9d-417d-abb3-77771ec99f88\0ADEL:fe4415b8-8a9d-417d-abb3-77771ec99f88,CN=Deleted Objects,DC=DomainDnsZones,DC=***,DC=***,DC=***,DC=edu!
 : Object class violation
  • use ldbedit to change the tombstone lifetime from 6 months to 10 days to get rid of all extra "Deleted Objects" that wont replicate
ldbedit -H ldap://localhost -Uadministrator -s base -b "CN=Directory Service,CN=Windows NT,CN=Services,CN=Configuration,DC=***,DC=***,DC=***,DC=***"