| | |
| | | * |
| | | * |
| | | * Copyright 2006-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011-2013 ForgeRock AS |
| | | * Portions Copyright 2011-2014 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | { |
| | | try |
| | | { |
| | | userDN = DN.decode(authzIDStr.substring(3)); |
| | | userDN = DN.valueOf(authzIDStr.substring(3)); |
| | | } |
| | | catch (DirectoryException de) |
| | | { |
| | |
| | | { |
| | | try |
| | | { |
| | | userDN = DN.decode(authzIDStr); |
| | | userDN = DN.valueOf(authzIDStr); |
| | | } |
| | | catch (DirectoryException ignored) |
| | | { |
| | |
| | | } |
| | | } |
| | | |
| | | if (userDN != null && !userDN.isNullDN()) { |
| | | if (userDN != null && !userDN.isRootDN()) { |
| | | // If the provided DN is an alternate DN for a root user, |
| | | // then replace it with the actual root DN. |
| | | DN actualRootDN = DirectoryServer.getActualRootBindDN(userDN); |