View | Details | Raw Unified | Return to bug 27494
Collapse All | Expand All

(-)/usr/share/univention-samba4/scripts/setup-s4.sh.orig (-4 / +4 lines)
 Lines 256-269    Link Here 
256
	reverse_ldif_sambaGroupType_2_to_4="${ldif_sambaGroupType_2_to_4//sambaGroupType: 4/sambaGroupType: 2}"
256
	reverse_ldif_sambaGroupType_2_to_4="${ldif_sambaGroupType_2_to_4//sambaGroupType: 4/sambaGroupType: 2}"
257
257
258
	reverse_sambaGroupType_change() {
258
	reverse_sambaGroupType_change() {
259
		echo "$reverse_ldif_sambaGroupType_5_to_4" | ldapmodify -D "$binddn" -w "$bindpwd" | tee -a "$LOGFILE"
259
		echo "$reverse_ldif_sambaGroupType_5_to_4" | ldapmodify -h "$ldap_master" -p "$ldap_master_port" -D "$binddn" -w "$bindpwd" | tee -a "$LOGFILE"
260
		echo "$reverse_ldif_sambaGroupType_2_to_4" | ldapmodify -D "$binddn" -w "$bindpwd" | tee -a "$LOGFILE"
260
		echo "$reverse_ldif_sambaGroupType_2_to_4" | ldapmodify -h "$ldap_master" -p "$ldap_master_port" -D "$binddn" -w "$bindpwd" | tee -a "$LOGFILE"
261
	}
261
	}
262
	trap reverse_sambaGroupType_change EXIT
262
	trap reverse_sambaGroupType_change EXIT
263
263
264
	## now adjust sambaGroupType 2 and 5
264
	## now adjust sambaGroupType 2 and 5
265
	echo "$ldif_sambaGroupType_5_to_4" | ldapmodify -D "$binddn" -w "$bindpwd" | tee -a "$LOGFILE"
265
	echo "$ldif_sambaGroupType_5_to_4" | ldapmodify -h "$ldap_master" -p "$ldap_master_port" -D "$binddn" -w "$bindpwd" | tee -a "$LOGFILE"
266
	echo "$ldif_sambaGroupType_2_to_4" | ldapmodify -D "$binddn" -w "$bindpwd" | tee -a "$LOGFILE"
266
	echo "$ldif_sambaGroupType_2_to_4" | ldapmodify -h "$ldap_master" -p "$ldap_master_port" -D "$binddn" -w "$bindpwd" | tee -a "$LOGFILE"
267
267
268
	## commit samba3 smb.conf
268
	## commit samba3 smb.conf
269
	mkdir -p /var/lib/samba3/etc/samba
269
	mkdir -p /var/lib/samba3/etc/samba

Return to bug 27494