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

(-)/usr/sbin/univention-s4search.orig (-1 / +1 lines)
 Lines 74-80    Link Here 
74
74
75
			## currently the password in the secrets.ldb is set to machine.secret only on provision host, so we need to look it up from the secrets.ldb
75
			## currently the password in the secrets.ldb is set to machine.secret only on provision host, so we need to look it up from the secrets.ldb
76
			# sampassword=$(cat /etc/machine.secret)
76
			# sampassword=$(cat /etc/machine.secret)
77
			sampassword=$(ldbsearch -H /var/lib/samba/private/secrets.ldb samAccountName="${hostname}\$" secret | sed -n 's/secret: \(.*\)/\1/p')
77
			sampassword=$(ldbsearch -H /var/lib/samba/private/secrets.ldb samAccountName="${hostname}\$" secret | ldapsearch-wrapper | sed -n 's/secret: \(.*\)/\1/p')
78
			samaccount="${windows_domain}/${hostname}\$"
78
			samaccount="${windows_domain}/${hostname}\$"
79
79
80
		fi
80
		fi

Return to bug 27478