| | |
| | | { |
| | | if (authenticationInfo == null) |
| | | { |
| | | authenticationInfo = new AuthenticationInfo(); |
| | | setAuthenticationInfo(new AuthenticationInfo()); |
| | | } |
| | | |
| | | authenticationInfo.setMustChangePassword(mustChangePassword); |
| | |
| | | if ((authZEntry == null) || |
| | | (! authZEntry.getDN().equals(authNEntry.getDN()))) |
| | | { |
| | | authenticationInfo = |
| | | authenticationInfo.duplicate(newEntry, authZEntry); |
| | | setAuthenticationInfo( |
| | | authenticationInfo.duplicate(newEntry, authZEntry)); |
| | | updatePrivileges(newEntry, authenticationInfo.isRoot()); |
| | | } |
| | | else |
| | | { |
| | | authenticationInfo = |
| | | authenticationInfo.duplicate(newEntry, newEntry); |
| | | setAuthenticationInfo( |
| | | authenticationInfo.duplicate(newEntry, newEntry)); |
| | | updatePrivileges(newEntry, authenticationInfo.isRoot()); |
| | | } |
| | | } |
| | | else if ((authZEntry != null) && |
| | | (authZEntry.getDN().equals(oldEntry.getDN()))) |
| | | { |
| | | authenticationInfo = |
| | | authenticationInfo.duplicate(authNEntry, newEntry); |
| | | setAuthenticationInfo( |
| | | authenticationInfo.duplicate(authNEntry, newEntry)); |
| | | } |
| | | } |
| | | |
| | |
| | | */ |
| | | public void setUnauthenticated() |
| | | { |
| | | this.authenticationInfo = new AuthenticationInfo(); |
| | | setAuthenticationInfo(new AuthenticationInfo()); |
| | | this.sizeLimit = DirectoryServer.getSizeLimit(); |
| | | this.timeLimit = DirectoryServer.getTimeLimit(); |
| | | } |