using ldap, sql and pam for user authentification