| | |
| | | return nameToAdminUserProperty.get(name); |
| | | } |
| | | |
| | | // The context used to retrieve information |
| | | /** The context used to retrieve information. */ |
| | | private final InitialLdapContext dirContext; |
| | | |
| | | |
| | |
| | | createAdminDataContainers(); |
| | | } |
| | | |
| | | // Create container entries. |
| | | /** Create container entries. */ |
| | | private void createAdminDataContainers() throws ADSContextException |
| | | { |
| | | // Create the DIT below the administration suffix |
| | |
| | | */ |
| | | private static String getRdn(String rdnName) throws ADSContextException |
| | | { |
| | | CompositeName nameObj; |
| | | String rdn; |
| | | // |
| | | // Transform the JNDI name into a RDN string |
| | | // |
| | | try { |
| | | nameObj = new CompositeName(rdnName); |
| | | rdn = nameObj.get(0); |
| | | CompositeName nameObj = new CompositeName(rdnName); |
| | | String rdn = nameObj.get(0); |
| | | return rdn; |
| | | } |
| | | catch (InvalidNameException x) |
| | | { |
| | |
| | | throw new ADSContextException( |
| | | ADSContextException.ErrorType.ERROR_UNEXPECTED, x); |
| | | } |
| | | return rdn; |
| | | } |
| | | |
| | | /** |