001    /*
002     *  Licensed to the Apache Software Foundation (ASF) under one
003     *  or more contributor license agreements.  See the NOTICE file
004     *  distributed with this work for additional information
005     *  regarding copyright ownership.  The ASF licenses this file
006     *  to you under the Apache License, Version 2.0 (the
007     *  "License"); you may not use this file except in compliance
008     *  with the License.  You may obtain a copy of the License at
009     *  
010     *    http://www.apache.org/licenses/LICENSE-2.0
011     *  
012     *  Unless required by applicable law or agreed to in writing,
013     *  software distributed under the License is distributed on an
014     *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
015     *  KIND, either express or implied.  See the License for the
016     *  specific language governing permissions and limitations
017     *  under the License. 
018     *  
019     */
020    package org.apache.directory.server.constants;
021    
022    /**
023     * A utility class where we declare all the statically defined DN used in the server.
024     *
025     * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
026     * @version $Rev:$
027     */
028    public class ServerDNConstants
029    {
030        /**
031         * A private constructor to protect this class containing only constants
032         */
033        private ServerDNConstants()
034        {
035            
036        }
037        
038        /** The administrators group DN */
039        public static final String ADMINISTRATORS_GROUP_DN      = "cn=Administrators,ou=groups,ou=system";
040    
041        /** The system DN */
042        public static final String SYSTEM_DN                    = "ou=system";
043        
044        /** the default user principal or DN */
045        public static final String ADMIN_SYSTEM_DN              = "uid=admin,ou=system";
046        
047        /** the normalized user principal or DN */
048        public static final String ADMIN_SYSTEM_DN_NORMALIZED   = "0.9.2342.19200300.100.1.1=admin,2.5.4.11=system";
049    
050        /** the DN for the global schema subentry */
051        public static final String CN_SCHEMA_DN                 = "cn=schema";
052        
053        /** The DN for the gloval schema subentry normalized */
054        public static final String CN_SCHEMA_DN_NORMALIZED      = "2.5.4.3=schema";
055       
056        /** the DN for the schema in dit area */
057        //public static final String OU_SCHEMA_DN                 = "ou=schema";
058    
059        /** the normalized DN for the schema in DIT area */
060        //public static final String OU_SCHEMA_DN_NORMALIZED      = "2.5.4.11=schema";
061        
062        /** The DN for the schema modifications */
063        public static final String SCHEMA_MODIFICATIONS_DN      = "cn=schemaModifications,ou=schema";
064        
065        /** the base dn under which all users reside */
066        public static final String USERS_SYSTEM_DN              = "ou=users,ou=system";
067        
068        /** The default change password base DN. */
069        public static final String USER_EXAMPLE_COM_DN          = "ou=users,dc=example,dc=com";
070        
071        
072        /** the base dn under which all groups reside */
073        public static final String GROUPS_SYSTEM_DN             = "ou=groups,ou=system";
074        
075        /** the dn base of the system preference hierarchy */
076        public static final String SYSPREFROOT_SYSTEM_DN        = "prefNodeName=sysPrefRoot,ou=system";
077        
078        /** The ldifDile base which stores the name of the loaded ldif files */
079        public static final String LDIF_FILES_DN                = "ou=loadedLdifFiles,ou=configuration,ou=system";
080    
081    }