| | |
| | | * |
| | | * |
| | | * Copyright 2006-2009 Sun Microsystems, Inc. |
| | | * Portions copyright 2011-2013 ForgeRock AS. |
| | | * Portions Copyright 2011-2014 ForgeRock AS. |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | DN userDN; |
| | | try |
| | | { |
| | | userDN = DN.decode(authcID.substring(3)); |
| | | userDN = DN.valueOf(authcID.substring(3)); |
| | | } |
| | | catch (DirectoryException de) |
| | | { |
| | |
| | | return; |
| | | } |
| | | |
| | | if (userDN.isNullDN()) |
| | | if (userDN.isRootDN()) |
| | | { |
| | | bindOperation.setResultCode(ResultCode.INVALID_CREDENTIALS); |
| | | |
| | |
| | | DN authzDN; |
| | | try |
| | | { |
| | | authzDN = DN.decode(authzID.substring(3)); |
| | | authzDN = DN.valueOf(authzID.substring(3)); |
| | | } |
| | | catch (DirectoryException de) |
| | | { |
| | |
| | | return; |
| | | } |
| | | |
| | | if (authzDN.isNullDN()) |
| | | if (authzDN.isRootDN()) |
| | | { |
| | | authZEntry = null; |
| | | } |