LOGGER.log(Level.INFO, "Received authN request for Username [ "
+ username + " ], domain [ " + domain + " ]. ");
HashMap<String, Object> sqlIdentity = new HashMap<String, Object>();
sqlIdentity.put(AdConstants.DB_SAMACCOUNTNAME, username.toLowerCase());
Query query;
if (Strings.isNullOrEmpty(domain)) {
query = Query.SELECT_USER_BY_SAMACCOUNTNAME;
} else {
//TODO: rename the DB bound variable to domain
sqlIdentity.put(AdConstants.DB_NETBIOSNAME, domain);