combining LDAP and SQL