@Override protected DirContext getDirContextInstance( Hashtable<String, Object> environment) throws NamingException { // Verify a subclass outside of package scope can access password // and userDn since Spring Security needs to be able to access these // properties. String pass = super.getPassword(); String userDn = super.getUserDn(); return null; }