Allow re-configuration of a samba4 domain

Ticket: #4595
Use existing functions instead of recreating them