|
740 |
fi |
740 |
fi |
741 |
echo "OK" |
741 |
echo "OK" |
742 |
|
742 |
|
|
|
743 |
# check for valid machine account |
744 |
eval "$(ucr shell server/role ldap/base ldap/hostdn ldap/server/name)" |
745 |
if [ -n "$server_role" -a "$server_role" != "basesystem" -a -n "$ldap_base" -a -n "$ldap_hostdn" ] |
746 |
then |
747 |
ldapsearch -x -D "$ldap_hostdn" -w "gergergere" -b "$ldap_base" -s base -h "$ldap_server_name" &>/dev/null |
748 |
if [ $? = 49 ] |
749 |
then |
750 |
echo "ERROR: An LDAP connection to $ldap_server_name with the machine account has" |
751 |
echo " failed because of invalid credentials!" |
752 |
echo " This MUST be fixed before the update can continue." |
753 |
echo |
754 |
echo " This problem can be corrected by setting the content of the file" |
755 |
echo " /etc/machine.secret as the password of the computer object using" |
756 |
echo " Univention Directory Manager" |
757 |
exit 1 |
758 |
fi |
759 |
fi |
760 |
|
743 |
# only for update to UCS 3.0-0: |
761 |
# only for update to UCS 3.0-0: |
744 |
# ensure that /etc/univention/templates/files/etc/ldap/slapd.conf.d/10univention-ldap-server_schema |
762 |
# ensure that /etc/univention/templates/files/etc/ldap/slapd.conf.d/10univention-ldap-server_schema |
745 |
# is untouched by the user otherwise the update will fail (Bug #23483) |
763 |
# is untouched by the user otherwise the update will fail (Bug #23483) |