| | |
| | | * |
| | | * |
| | | * Copyright 2008-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | */ |
| | | |
| | | package org.opends.guitools.controlpanel.task; |
| | |
| | | this.newPassword = pwd; |
| | | try |
| | | { |
| | | dn = DN.decode(node.getDN()); |
| | | dn = DN.valueOf(node.getDN()); |
| | | for (BackendDescriptor backend : info.getServerDescriptor().getBackends()) |
| | | { |
| | | for (BaseDNDescriptor baseDN : backend.getBaseDns()) |
| | |
| | | private boolean isBoundAs(DN dn, InitialLdapContext ctx) |
| | | { |
| | | boolean isBoundAs = false; |
| | | DN bindDN = DN.nullDN(); |
| | | DN bindDN = DN.rootDN(); |
| | | try |
| | | { |
| | | String b = ConnectionUtils.getBindDN(ctx); |
| | | bindDN = DN.decode(b); |
| | | bindDN = DN.valueOf(b); |
| | | isBoundAs = dn.equals(bindDN); |
| | | } |
| | | catch (Throwable t) |
| | |
| | | Set<String> dns = ConnectionUtils.getValues(sr, attrName); |
| | | for (String sDn : dns) |
| | | { |
| | | if (bindDN.equals(DN.decode(sDn))) |
| | | if (bindDN.equals(DN.valueOf(sDn))) |
| | | { |
| | | isBoundAs = true; |
| | | break; |