Univention Bugzilla – Attachment 5883 Details for
Bug 33399
'Waiting for DRS replication' failed on a school slave
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
consider_only_S4_connector_hosts_with_DRS_connection.patch
consider_only_S4_connector_hosts_with_DRS_connection.patch (text/plain), 1.23 KB, created by
Arvid Requate
on 2014-04-24 13:37:41 CEST
(
hide
)
Description:
consider_only_S4_connector_hosts_with_DRS_connection.patch
Filename:
MIME Type:
Creator:
Arvid Requate
Created:
2014-04-24 13:37:41 CEST
Size:
1.23 KB
patch
obsolete
>Index: 96univention-samba4.inst >=================================================================== >--- 96univention-samba4.inst (Revision 49581) >+++ 96univention-samba4.inst (Arbeitskopie) >@@ -464,13 +464,24 @@ > set_default_fACL /var/lib/samba/sysvol > } > >-get_s4connector_dc () { >- univention-ldapsearch "(&(univentionService=S4 Connector)(objectClass=univentionDomainController))" cn | ldapsearch-wrapper | sed -n 's/^cn: \(.*\)/\1/p' >+get_available_s4connector_dc () { >+ local s4connector_dc >+ local shortlist >+ s4connector_dc=$(univention-ldapsearch "(&(univentionService=S4 Connector)(objectClass=univentionDomainController))" cn | ldapsearch-wrapper | sed -n 's/^cn: \(.*\)/\1/p') >+ for dc in "${s4connector_dc[@]}"; do >+ if samba-tool drs showrepl "$dc" >/dev/null 2>&1; then >+ shortlist="${shortlist:+$shortlist }$dc" >+ fi >+ done >+ if [ "${#shortlist[@]}" -gt 1 ]; then >+ echo "ERROR: More than one S4 Connector hosts available: $s4connector_dc" 1>&2 >+ echo exit 1 >+ fi >+ echo "$shortlist" > } > > wait_until_dc_was_replicated_to_connector_dc () { >- s4connector_dc="$(get_s4connector_dc)" >- >+ s4connector_dc=$(get_available_s4connector_dc) > if [ -z "$s4connector_dc" ]; then > echo "WARNING: Failed to search for S4 connector DC" > return
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 33399
: 5883