1 /* 2 * Licensed to the Apache Software Foundation (ASF) under one 3 * or more contributor license agreements. See the NOTICE file 4 * distributed with this work for additional information 5 * regarding copyright ownership. The ASF licenses this file 6 * to you under the Apache License, Version 2.0 (the 7 * "License"); you may not use this file except in compliance 8 * with the License. You may obtain a copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, 13 * software distributed under the License is distributed on an 14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 * KIND, either express or implied. See the License for the 16 * specific language governing permissions and limitations 17 * under the License. 18 * 19 */ 20 package org.apache.directory.server.constants; 21 22 /** 23 * A utility class where we declare all the statically defined DN used in the server. 24 * 25 * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a> 26 * @version $Rev:$ 27 */ 28 public class ServerDNConstants 29 { 30 /** 31 * A private constructor to protect this class containing only constants 32 */ 33 private ServerDNConstants() 34 { 35 36 } 37 38 /** The administrators group DN */ 39 public static final String ADMINISTRATORS_GROUP_DN = "cn=Administrators,ou=groups,ou=system"; 40 41 /** The system DN */ 42 public static final String SYSTEM_DN = "ou=system"; 43 44 /** the default user principal or DN */ 45 public static final String ADMIN_SYSTEM_DN = "uid=admin,ou=system"; 46 47 /** the normalized user principal or DN */ 48 public static final String ADMIN_SYSTEM_DN_NORMALIZED = "0.9.2342.19200300.100.1.1=admin,2.5.4.11=system"; 49 50 /** the DN for the global schema subentry */ 51 public static final String CN_SCHEMA_DN = "cn=schema"; 52 53 /** The DN for the gloval schema subentry normalized */ 54 public static final String CN_SCHEMA_DN_NORMALIZED = "2.5.4.3=schema"; 55 56 /** the DN for the global schema subentry */ 57 public static final String OU_SCHEMA_DN = "ou=schema"; 58 59 /** the base dn under which all users reside */ 60 public static final String USERS_SYSTEM_DN = "ou=users,ou=system"; 61 62 /** The default change password base DN. */ 63 public static final String USER_EXAMPLE_COM_DN = "ou=users,dc=example,dc=com"; 64 65 66 /** the base dn under which all groups reside */ 67 public static final String GROUPS_SYSTEM_DN = "ou=groups,ou=system"; 68 69 /** the dn base of the system preference hierarchy */ 70 public static final String SYSPREFROOT_SYSTEM_DN = "prefNodeName=sysPrefRoot,ou=system"; 71 72 /** The ldifDile base which stores the name of the loaded ldif files */ 73 public static final String LDIF_FILES_DN = "ou=loadedLdifFiles,ou=configuration,ou=system"; 74 75 }