--- /usr/sbin/univention-s4search.orig 2012-02-09 10:11:27.000000000 +0100 +++ /usr/sbin/univention-s4search 2012-05-30 08:23:05.000000000 +0200 @@ -74,7 +74,7 @@ ## 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 # sampassword=$(cat /etc/machine.secret) - sampassword=$(ldbsearch -H /var/lib/samba/private/secrets.ldb samAccountName="${hostname}\$" secret | sed -n 's/secret: \(.*\)/\1/p') + sampassword=$(ldbsearch -H /var/lib/samba/private/secrets.ldb samAccountName="${hostname}\$" secret | ldapsearch-wrapper | sed -n 's/secret: \(.*\)/\1/p') samaccount="${windows_domain}/${hostname}\$" fi