| | |
| | | import org.forgerock.opendj.ldap.AuthorizationException; |
| | | import org.forgerock.opendj.ldap.ConnectionException; |
| | | import org.forgerock.opendj.ldap.DN; |
| | | import org.forgerock.opendj.ldap.RDN; |
| | | |
| | | /** This class provides utility functions for all the client side tools. */ |
| | | public final class Utils { |
| | |
| | | * @return The DN of the administrator for the given UID. |
| | | */ |
| | | public static DN getAdministratorDN(String uid) { |
| | | return DN.valueOf(RDN.valueOf("cn=" + uid) + ",cn=Administrators, cn=admin data"); |
| | | return DN.valueOf("cn=Administrators,cn=admin data").child("cn", uid); |
| | | } |
| | | |
| | | /** |