#!/bin/bash
#
# Author: Jochen Schaefer <jochen.schaefer@suse.com>
#	  Frieder Schmidt <frieder.schmidt@microfocus.com>
#	  Martin Weiss	  <martin.weiss@suse.com>
# 
# copyright (c) Novell Deutschland GmbH, 2001-2016. All rights reserved.
# GNU Public License
#
# Your_Tree.txt			  			25 Jan 2013
# last update (support for DSfW)                        22 Jul 2020
# last update (new xml structure)                       22 Jul 2020
# last update (extensions for OES2023)			29 Nov 2022


###########################################################################
###########################################################################
##
## The purpose of this file is to define the configuration information
## that is consistent across *all* servers of a given eDirectory tree.
##
###########################################################################
##
## The case-sensitive name of this file (without extension) must match
## the eDirectory tree name in field 09 of the server configuration
## file AY_SERVERTXT_FILE_URL defined in AY_MAIN.txt!!
##
## Configuration settings in this file can be overwritten in the location
## configuration file defined in field 13 of the server configuration file.
##
## !! IMPORTANT !!
## Do NOT use any special characters, such as (but not limited to) "&",
## "<", or ">" in any variable value since these characters could have
## special meanings in the programming languages used and/or in the
## resulting xml files.
## This could result in unforseable behavior including abortian of the
## installation routine.
##
###########################################################################


## infrastructure information

## Type IP
## Description: IP Address of Default Gateway
#GATEWAY=""

## Type IP
## Description: Colon separated list of IP addresses of DNS servers
#NAME_SERVER_LIST=""

## Type Custom
## Description: Colon separated list of DNS suffixes in the order in which
##		they will appear in resolv.conf
## 		The first value will be used for general domain name usage
##		such as in the email address in CA management
#SUFFIX_SEARCH_LIST=""

## Type IP|DNS
## Description: Colon separated list of IP addresses or DNS names of
##		NTP servers
#NTP_SERVER_LIST=""


## OES information

## Type String
## Description: fully distinguished name of the OES Installation user
##		in LDAP syntax
#OES_INSTALL_USER=""

## Type String
## Description: fully distinguished name of the LUM admingroup
##		in LDAP syntax
#LUM_ADMIN_GROUP=""

## Type String
## Description: eDirectory context where the Unix Configuration object
##		is located in LDAP syntax
#UCO_CONTEXT=""

## Type IP|DNS
## Description: Colon separated list of IP addresses or DNS NAMES of LDAP
##		servers for OES.
##		These LDAP servers are configured for eDirectory in random
## 		order with the local LDAP server as first server.
##		For certain OES services (afp, cifs, iprint, lum, netstorage)
##		the local LDAP server is used if it is in the list. Otherwise
##		a random server is picked from this list and configured for
## 		theses services.
##		The remaining servers are configured as alternate LDAP servers
##		for LUM
#LDAP_SERVER_LIST=""

## Type IP
## Description: IP Address of an existing eDirectory server holding a writable
##		replica of the context where the new server will be installed
#REPLICA_SERVER=""


## DHCP information

## Type String
## Description: eDirectory context where the DHCP Group object is located in 
##		LDAP syntax
#DHCP_GROUP_CONTEXT=""

## Type String
## Description: space separated list of interfaces the DHCP server should listen
## 		to i. e. "eth0 eth1"
#DHCP_INTERFACES=""

## Type String
## Description: eDirectory context where the DHCP Locator object is located in
##		LDAP syntax
#DHCP_LOCATOR_CONTEXT=""

## Type String
## Description: name of the OU where the Novell DHCP Server object will be located
##		subordinate to the NCP Server context
##			e.g. "ou=DHCP" will place the object in
##		 	ou=DHCP,ou=servers,ou=services,ou=location,ou...
##
##		if the DHCP Server object shall be placed higher in the tree
##		structure than the NCP Server object the number of levels can be
##		specified using  a ";" as separator
##			e.g. ou="DHCP;1" will place the DHCP Server object in
##			an OU named DHCP in parallel to the server context, i. e.
##			ou=DHCP,ou=services,ou=location,...
#DHCP_SERVER_CTX="ou=dhcp;1"


## DNS information

## Type String
## Description: eDirectory context where the Novell DNS Services Group object is
##              located in LDAP syntax
#DNS_GROUP_CONTEXT=""

## Type String
## Description: eDirectory context where the Novell DNS Services Locator object is
##              located in LDAP syntax
#DNS_LOCATOR_CONTEXT=""

## Type String
## Description: eDirectory context where the Novell DNS Services Root Server Info
##              is located in LDAP syntax
#DNS_ROOTSERVERINFO_CONTEXT=""

## Type String
## Description: name of the OU where the Novell DNS Server object will be located
##		subordinate to the NCP Server context
##			e.g. "ou=DNS" will place the object in
##		 	ou=DNS,ou=servers,ou=services,ou=location,ou...
##
##		if the DNS Server object shall be placed higher in the tree
##		structure than the NCP Server object the number of levels can be
##		specified using  a ";" as separator
##			e.g. ou="DNS;1" will place the DHCP Server object in
##			an OU named DNS in parallel to the server context, i. e.
##			ou=DNS,ou=services,ou=location,...
##
##		!!! future enhancement not usable at the moment !!!
##
##		     !!! Requires changes in YaST/OES code !!!
#DNS_SERVER_CTX=""


## DSfW information

## Type String
## Description: name of the partitioned eDirectory container that the DSfW domain
##              is being mapped to in LDAP syntax
##              This is effective only when the xad_convert_existing_container tag
##              is set to 'yes'
#DSFW_CONTEXT="o=..."

## Type List    (no|yes)
## Description: determines whether or not the DSfW domain controller will be
##              configured as DNS server
##
##              Note: the current DSfW provisioning wizard depends on the DSfW DCs
##                    to be configured as DNS servers - do not change this option!
##              default: yes; no in the future
#DSFW_CONFIG_DC_DNS="yes"

## Type List    (no|yes)
## Description: determines whether or not the DSfW domain controller will be
##              configured as WINS server
##              default: no
#DSFW_CONFIG_DC_WINS="no"

## Type String
## Description: NetBIOS name of the DSfW domain
#DSFW_DOMAIN_NETBIOS=""

## Type IP
## Description: IP Address of an existing DNS server for the DNS domain used by
##              the DSfW domain
#DSFW_EXISTING_DNS_IP=""

## Type String
## Description: forest root domain (FRD) name of the DSfW forest
#DSFW_ROOT_DOMAIN=""

## Type String
## Description: fully distinguished name of the FRD Administrator user
##              in NDAP syntax
#DSFW_ROOT_DOMAIN_ADMIN="cn=Administrator.cn=Users.dc=..."

## Type IP
## Description: IP Address of the PDC for the DSfW forest root domain
#DSFW_ROOT_PDC_IP=""


## LDAP information

## Type String
## Description: fully distinguished name of the eDir search base for
##              afp, cifs, iprint, and netstorage in LDAP syntax
##
##		This LDAP base will be used for all OES services
##		unless specified differently in the variables below
SEARCH_BASE="Your_O"

## Type String
## Description: fully distinguished name of the eDir search base for
##              afp in LDAP syntax
AFP_SEARCH_BASE="$SEARCH_BASE"

## Type String
## Description: fully distinguished name of the eDir search base for
##              cifs in LDAP syntax
CIFS_SEARCH_BASE="$SEARCH_BASE"

## Type String
## Description: fully distinguished name of the eDir search base for
IPRINT_SEARCH_BASE="$SEARCH_BASE"

## Type String
## Description: fully distinguished name of the eDir search base for
##              netstorage in LDAP syntax
NETSTORAGE_SEARCH_BASE="$SEARCH_BASE"


## NSS information

## Type Integer
## Description: Start value for Novell Idendity Translator (NIT)
##		Only required with OES2015 and newer
##		default: 100000
#AD_NIT_UID_START=""

## Type Integer
## Description: End value for Novell Idendity Translator (NIT)
##		Only required with OES2015 and newer
##		default: 200000
#AD_NIT_UID_END=""


## NSS-AD information

## Type String
## Description: name of the AD container where the computer objects
##              for the OES2015 servers joined to the domain will
##		be placed
##		default: CN=Computers
#AD_COMPUTER_CONTAINER=""

## Type String
## Description: determines wether or not NIT IDs will be generated on
##              the fly
##		default: yes = generate mode
#AD_CREATE_NIT_UIDS=""

## Type String
## Description: name of the domain the OES2015 server will join
#AD_DOMAIN_NAME=""

## Type String
## Description: name of the AD group that will receive SUPERVISOR
##		rights to the root of all NSS volumes
##		default: Domain Admins
#AD_DOMAIN_ADMIN_GROUP=""

## Type List	(no|yes)
## Description: determines whether or not pre-created computer objects
##              will be used to represent the server in AD
##		default: no
#AD_USE_PRECREATED_COMPUTEROBJ=""

## Type String
## Description: name of an AD user with sufficient rights to join the
##              domain
##		default: Administrator
#AD_USER_NAME=""


## SLP information

## Type list	(novell,open)
## Description: determines the type of SLP infrastructure in use
#SLP_TYPE=""

## Type Custom
## Description: Colon separated list of IP addresses of SLP Directory Agent
##		host servers
#SLPDA_SERVER_LIST=""

## Type Custom
## Description: Colon separated list of SLP Scope names
#SLP_SCOPE_LIST=""


## UMC information

## Type IP|DNS
## Description: IP address or DNS name for the UMC database server
##		default: %%HOST_NAME%%.%%DOMAIN_NAME%%
UMC_DB_HOST_NAME="%%HOST_NAME%%.%%DOMAIN_NAME%%"

## Type decimal
## Description: Port for the UMC database server
##		default: 5432
UMC_DB_PORT="5432"

## Type IP|DNS
## Description: Username for the UMC database server
##		default: none
UMC_DB_USER_NAME=""


## SLES information

## Type String
## Description: name of the YaST CA; mandatory
##		default: YaST_Default_CA
#CA_NAME=""

## Type String
## Description: CN of the YaST CA; mandatory
## 		default: YaST_Default_CA ($my_hostname)
#CA_CN=""

## Type String
## Description: country of the YaST CA; mandatory
##		default: DE
#CA_COUNTRY=""

## Type String
## Description: state where the YaST CA is located; optional
#CA_STATE=""

## Type String
## Description: locality of the YaST CA; optional
#CA_LOCALITY=""

## Type String
## Description: organization of the YaST CA; optional
#CA_O=""

## Type String
## Description: organizational unit of the YaST CA; optional
#CA_OU=""

## Type String
## Description: password of the YaST CA; mandatory
##		default: "novell" (without quotes)
##
##		IMPORTANT NOTE
##		when using eDirectory based AutoYast this password is
##		visible to anybody that can access the web service on
##		the AutoYaST server
##
##		Therefor it is strongly recommend that you change the
##		CA password after installation
#CA_PWD=""

## Type String
## Description: e-mail address of the YaST CA; mandatory
##		default: postmaster@primary_domain
##		The first value of SUFFIX_SEARCH_LIST is used as primary
##		domain. 
#CA_EMAIL=""


## Type List	(UTC|localtime)
## Description:	Hardware clock setting
#HWCLOCK=""

## Type String
## Description:	YaST-internal identifier of the attached keyboard
#KEYMAP=""

## Type String
## Description:	Language
#LANGUAGE=""

## Type String
## Description:	encrypted root password
##		must be enclosed in '' due to bash expansion of $
#ROOT_PWD=''

## Type String
## Description:	Time Zone
#TIME_ZONE=""
