Remove code duplication by factoring out the calculation of the LDAP query attributes out of _login2() resp. _login3() into __init__().
Remove code duplication by factoring out the calculation of the LDAP query attributes out of _login2() resp. _login3() into __init__().