|
Lines 52-58
Link Here
|
| 52 |
|
52 |
|
| 53 |
s3setup="$(ldapsearch -x -ZZ -D "$ldap_hostdn" -y /etc/machine.secret \ |
53 |
s3setup="$(ldapsearch -x -ZZ -D "$ldap_hostdn" -y /etc/machine.secret \ |
| 54 |
'(&(univentionService=Samba 3)(objectClass=univentionDomainController))' -LLL dn \ |
54 |
'(&(univentionService=Samba 3)(objectClass=univentionDomainController))' -LLL dn \ |
| 55 |
| sed -ne 's|dn: ||p')" |
55 |
| ldapsearch-wrapper | sed -ne 's|dn: ||p')" |
| 56 |
if [ -n "$s3setup" ] && is_domain_controller; then |
56 |
if [ -n "$s3setup" ] && is_domain_controller; then |
| 57 |
|
57 |
|
| 58 |
if is_ucr_true samba4/ignore/mixsetup; then |
58 |
if is_ucr_true samba4/ignore/mixsetup; then |
|
Lines 298-304
Link Here
|
| 298 |
# try again with --server |
298 |
# try again with --server |
| 299 |
cn=($(ldapsearch -x -ZZ -LLL -D "$ldap_hostdn" -y /etc/machine.secret \ |
299 |
cn=($(ldapsearch -x -ZZ -LLL -D "$ldap_hostdn" -y /etc/machine.secret \ |
| 300 |
"(&(univentionService=Samba 4)(objectClass=univentionDomainController))" cn \ |
300 |
"(&(univentionService=Samba 4)(objectClass=univentionDomainController))" cn \ |
| 301 |
| sed -n 's/^cn: \(.*\)/\1/p' )) |
301 |
| ldapsearch-wrapper | sed -n 's/^cn: \(.*\)/\1/p' )) |
| 302 |
|
302 |
|
| 303 |
for name in "${cn[@]}"; do |
303 |
for name in "${cn[@]}"; do |
| 304 |
samba-tool domain join "$domainname" "$samba4_role" --server "$name.$domainname" \ |
304 |
samba-tool domain join "$domainname" "$samba4_role" --server "$name.$domainname" \ |
|
Lines 424-430
Link Here
|
| 424 |
if [ -z "$samba4_sysvol_sync_host" ]; then |
424 |
if [ -z "$samba4_sysvol_sync_host" ]; then |
| 425 |
s4connectorservicedcs=$(ldapsearch -x -ZZ -LLL -D "$ldap_hostdn" -y /etc/machine.secret \ |
425 |
s4connectorservicedcs=$(ldapsearch -x -ZZ -LLL -D "$ldap_hostdn" -y /etc/machine.secret \ |
| 426 |
"(&(univentionService=S4 Connector)(objectClass=univentionDomainController))" cn \ |
426 |
"(&(univentionService=S4 Connector)(objectClass=univentionDomainController))" cn \ |
| 427 |
| sed -n 's/^cn: \(.*\)/\1/p') ## currently there is no u-d-m module computers/dc |
427 |
| ldapsearch-wrapper | sed -n 's/^cn: \(.*\)/\1/p') ## currently there is no u-d-m module computers/dc |
| 428 |
if [ -n "$s4connectorservicedcs" ]; then |
428 |
if [ -n "$s4connectorservicedcs" ]; then |
| 429 |
univention-config-registry set samba4/sysvol/sync/host="$s4connectorservicedcs" |
429 |
univention-config-registry set samba4/sysvol/sync/host="$s4connectorservicedcs" |
| 430 |
fi |
430 |
fi |
|
Lines 684-690
Link Here
|
| 684 |
## check if we there already is a **domaincontroller** providing the service "Samba 4" |
684 |
## check if we there already is a **domaincontroller** providing the service "Samba 4" |
| 685 |
samba4servicedcs=$(ldapsearch -x -ZZ -LLL -D "$ldap_hostdn" -y /etc/machine.secret \ |
685 |
samba4servicedcs=$(ldapsearch -x -ZZ -LLL -D "$ldap_hostdn" -y /etc/machine.secret \ |
| 686 |
"(&(univentionService=${NAME})(objectClass=univentionDomainController))" cn \ |
686 |
"(&(univentionService=${NAME})(objectClass=univentionDomainController))" cn \ |
| 687 |
| sed -n 's/^cn: \(.*\)/\1/p') ## currently there is no u-d-m module computers/dc |
687 |
| ldapsearch-wrapper | sed -n 's/^cn: \(.*\)/\1/p') ## currently there is no u-d-m module computers/dc |
| 688 |
|
688 |
|
| 689 |
/etc/init.d/samba-ad-dc stop |
689 |
/etc/init.d/samba-ad-dc stop |
| 690 |
|
690 |
|