public boolean setDistinguishedName(String username, X500Principal x500User)
			throws IOException {
		synchronized (repositoryMgr) {
			UserEntry oldEntry = userList.remove(username);
			if (oldEntry != null) {
				if (oldEntry.x500User != null) {
					dnLookupMap.remove(oldEntry.x500User);
				}
				UserEntry entry = new UserEntry();
				entry.username = username;
				entry.passwordHash = oldEntry.passwordHash;
				entry.x500User = x500User;
				userList.put(username, entry);
				if (x500User != null) {
					dnLookupMap.put(x500User, entry);
				}
				writeUserList();
				return true;
			}
			return false;
		}
	}
Sets the X500 distinguished name for a user
@param username user name/SID
@param x500User X500 distinguished name
@return true if successful, false if user not found
@throws IOException if error occurs while updating user file
Ghidra/Features/GhidraServer/src/main/java/ghidra/server/UserManager.java