| | |
| | | * |
| | | * |
| | | * Copyright 2006-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2012-2013 ForgeRock AS |
| | | * Portions Copyright 2012-2014 ForgeRock AS |
| | | */ |
| | | package org.opends.server.util; |
| | | |
| | |
| | | // base64-encoded. Otherwise, it may be one or more spaces. |
| | | if (colonPos == line.length() - 1) |
| | | { |
| | | return DN.nullDN(); |
| | | return DN.rootDN(); |
| | | } |
| | | |
| | | if (line.charAt(colonPos+1) == ':') |
| | |
| | | { |
| | | try |
| | | { |
| | | return DN.decode(dnString); |
| | | return DN.valueOf(dnString); |
| | | } |
| | | catch (DirectoryException de) |
| | | { |
| | |
| | | entryDN, "newsuperior"); |
| | | try |
| | | { |
| | | newSuperiorDN = DN.decode(dnStr); |
| | | newSuperiorDN = DN.valueOf(dnStr); |
| | | } catch (DirectoryException de) |
| | | { |
| | | if (debugEnabled()) |
| | |
| | | Map<AttributeType,List<Attribute>>userAttributes, |
| | | Map<AttributeType,List<Attribute>> operationalAttributes) |
| | | { |
| | | RDN rdn = entryDN.getRDN(); |
| | | RDN rdn = entryDN.rdn(); |
| | | int numAVAs = rdn.getNumValues(); |
| | | for (int i=0; i < numAVAs; i++) |
| | | { |