Fix for issue 2814 (dsreplication enable fails with Error updating Registration information. Details: ADSContextException: error)
Consider the case when the administrator is already defined.
| | |
| | | String uid = (String)admin.get(AdministratorProperty.UID); |
| | | if (uid != null) |
| | | { |
| | | isAdminDefined = uid.equalsIgnoreCase(adminUid); |
| | | // If the administrator UID is null it means that we are just |
| | | // checking for the existence of an administrator |
| | | isAdminDefined = uid.equalsIgnoreCase(adminUid) || (adminUid == null); |
| | | if (isAdminDefined) |
| | | { |
| | | break; |