|
867 |
|| [ -z "$s4connector_dc" ] \ |
867 |
|| [ -z "$s4connector_dc" ] \ |
868 |
|| [ "$s4connector_dc" = "$hostname" ]; then |
868 |
|| [ "$s4connector_dc" = "$hostname" ]; then |
869 |
|
869 |
|
870 |
if [ $JS_LAST_EXECUTED_VERSION -lt 1 ]; then |
870 |
if [ $JS_LAST_EXECUTED_VERSION -lt 1 ] \ |
|
|
871 |
&& ! ldbsearch -H /var/lib/samba/private/sam.ldb -s base '(objectSid=*)' objectSid 2>/dev/null | grep -q '^objectSid: '; then |
871 |
run_samba_provision "$@" |
872 |
run_samba_provision "$@" |
872 |
fi |
873 |
fi |
873 |
|
874 |
|
|
899 |
if [ $? -eq 0 ]; then |
900 |
if [ $? -eq 0 ]; then |
900 |
## secondary provision for selective replication |
901 |
## secondary provision for selective replication |
901 |
|
902 |
|
902 |
if [ $JS_LAST_EXECUTED_VERSION -lt 1 ]; then |
903 |
if [ $JS_LAST_EXECUTED_VERSION -lt 1 ] \ |
|
|
904 |
&& ! ldbsearch -H /var/lib/samba/private/sam.ldb -s base '(objectSid=*)' objectSid 2>/dev/null | grep -q '^objectSid: '; then |
903 |
## special case: provision another instance of Samba 4 |
905 |
## special case: provision another instance of Samba 4 |
904 |
## this is similar to univention-samba-slave-pdc |
906 |
## this is similar to univention-samba-slave-pdc |
905 |
run_samba_provision "$@" |
907 |
run_samba_provision "$@" |