View Javadoc
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  /**
24   * DN constants used in the server.
25   * Final reference -> class shouldn't be extended
26   *
27   * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
28   */
29  public final class ServerDNConstants
30  {
31      /**
32       *  Ensures no construction of this class, also ensures there is no need for final keyword above
33       *  (Implicit super constructor is not visible for default constructor),
34       *  but is still self documenting.
35       */
36      private ServerDNConstants()
37      {
38      }
39  
40      /** The administrators group DN */
41      public static final String ADMINISTRATORS_GROUP_DN = "cn=Administrators,ou=groups,ou=system";
42  
43      /** The system DN */
44      public static final String SYSTEM_DN = "ou=system";
45  
46      /** the default user principal or DN */
47      public static final String ADMIN_SYSTEM_DN = "uid=admin,ou=system";
48  
49      /** the normalized user principal or DN */
50      public static final String ADMIN_SYSTEM_DN_NORMALIZED = "0.9.2342.19200300.100.1.1= admin ,2.5.4.11= system ";
51  
52      /** the DN for the global schema subentry */
53      public static final String CN_SCHEMA_DN = "cn=schema";
54  
55      /** The DN for the gloval schema subentry normalized */
56      public static final String CN_SCHEMA_DN_NORMALIZED = "2.5.4.3= schema ";
57  
58      /** the base dn under which all users reside */
59      public static final String USERS_SYSTEM_DN = "ou=users,ou=system";
60  
61      /** The default change password base DN. */
62      public static final String USER_EXAMPLE_COM_DN = "ou=users,dc=example,dc=com";
63  
64      /** the base dn under which all groups reside */
65      public static final String GROUPS_SYSTEM_DN = "ou=groups,ou=system";
66  
67      /** the dn base of the system preference hierarchy */
68      public static final String SYSPREFROOT_SYSTEM_DN = "prefNodeName=sysPrefRoot,ou=system";
69  
70      /** The ldifDile base which stores the name of the loaded ldif files */
71      public static final String LDIF_FILES_DN = "ou=loadedLdifFiles,ou=configuration,ou=system";
72  
73      /** the config partition's dn */
74      public static final String CONFIG_DN = "ou=config";
75  
76      /** The replication consumer container DN */
77      public static final String REPL_CONSUMER_DN_STR = "ou=consumers,ou=system";
78  
79      /** the default DirectoryService DN */
80      public static final String DEFAULT_DS_CONFIG_DN = "ads-directoryServiceId=default,ou=config";
81  
82      /** the replication consumer configuration DN */
83      public static final String REPL_CONSUMER_CONFIG_DN = "ou=replConsumers,ads-serverId=ldapServer,ou=servers,"
84          + DEFAULT_DS_CONFIG_DN;
85  }