...
Make sure the user you are trying to connect with has the FlexDeployHTTPSAgent
role or they will not be able to connect.
If you are using Active Directory, the pre-windows 2000 username will be used. See what that looks like in Active Directory below.
...
For more information about using LDAP/Active Directory see the tomcat documentation how to for realms, and also the configuration reference.
...