Revert "Deleted unneeded if-clause in ldap script. Removed duplicate part in tomcat script."

This reverts commit b88d6823e664c05f4c4d8b6af5fcddbb0e0e9c7a.