changed login from ldap to mysql - although I'm not really happy with
the security of the function, any old value in the string will work.
Which is ideal for the current testing, but this needs to improve.