last_dn = sr.getName();
Attributes attrs = sr.getAttributes();
empl_num = (String) attrs.get("employeeNumber").get();
}
if (empl_num.equals("")) {
throw new NoPersonIdException("Person ID blank", username);
}
} else {
throw new NoPersonIdException("Username not found", username);
}
} catch (NamingException e) {
throw new NoPersonIdException("Error getting employee number.", username, e);
} catch (NullPointerException e) {
throw new NoPersonIdException("Null Pointer Exception", username);
}
return empl_num;
}