add ldap authorization
add login template and upload script