AbstractContextSource.getUserDn() should be public
Fixes gh-353
This commit is contained in:
@@ -497,8 +497,8 @@ public abstract class AbstractContextSource implements BaseLdapPathContextSource
|
||||
*
|
||||
* @return the user distinguished name.
|
||||
*/
|
||||
protected String getUserDn() {
|
||||
return userDn;
|
||||
public String getUserDn() {
|
||||
return this.userDn;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -42,8 +42,8 @@ public class Ldap294Tests {
|
||||
// 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.password;
|
||||
String userDn = super.userDn;
|
||||
String pass = super.getPassword();
|
||||
String userDn = super.getUserDn();
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user