# Sample template to configure LDAP account service.
#
#
# For the first time configuring LDAP, you shall set all the LDAP attributes to the values you want:
#	Note: 
#			If you want to configure encrypted ldap, you need to merge the contents of the ldap01_slapd_cert.pem
#			and ldap01_slapd_key.pem files into one file such as named ldap01_slapd_cert01.pem as following example shows:
#				olcTLSCACertificateFile: /etc/ssl/certs/mycacert.pem 
#				olcTLSCertificateFile: /etc/ldap/ldap01_slapd_cert.pem 
#				olcTLSCertificateKeyFile: /etc/ldap/ldap01_slapd_key.pem

# If you modify the configured LDAP, you just need modify the attributes above you want to modify, 
# for encryption situation, there is no need to perform import command above.
#
# If you set LDAP.ServiceEnabled to false, you just only need add the following command in your batch file:
#		set LDAP.ServiceEnabled false 
# If you set LDAP.ServiceEnabled to false, only the LDAP.LocalAccountAuth can be set, for example:
#	        set LDAP.ServiceEnabled   false
#               set LDAP.LocalAccountAuth LocalFirst
#
# SYNTAX EXPLANATION
# 
# LDAP.ServiceEnabled
#		LDAP service enable status.	
#			true:	 LDAP service is enabled.
#			false:	 LDAP service is disabled.
#
# LDAP.CommonNameType
#		LDAP universal name type. 
#			IPAddress: 	use ip address mode.
#			FQDN:		use FQDN mode. 
#
# LDAP.EncryptionType
#		LDAP encryption status.
#			NoEncryption:	use no encryption mode.
#			SSL:			use SSL encryption mode.
#			StartTLS:		use StartTLS encyption mode. 
#
# LDAP.Password
#		LDAP authentication password.
#
# LDAP.Username
#		LDAP authentication Bind DN.
#
# LDAP.BaseDistinguishedNames
#		LDAP search fundamentals.
#
# LDAP.UsernameAttribute 
#		LDAP user login properties on G3.
#			cn:  use cn mode.
#			uid: use uid mode.
#
# LDAP.GroupsAttribute
#		LDAP User Group Properties on V2.
#			cn:  use cn mode.
#			uid: use uid mode.
#		
# LDAP.LocalRole
#		LDAP remote role group authority.
#			User:			user authority.
#			Administrator:  administrator authority.
#			Operator:		operator authority.
#			OEM:			oem authority.
#			None:			none authority.
#
# LDAP.RemoteGroup
#		LDAP remote role group name.
#
# LDAP.RemoteUser
#		LDAP remote role group domain.
#
# LDAP.ServiceAddresses  
#		LDAP server address.
#
# LDAP.LocalAccountAuth
#		Account service verification type.
#			Enabled:		local only.
#			LocalFirst:		local first, then LDAP.
#			Fallback:		LDAP first, then local user.


# General LDAP Settings
set LDAP.ServiceEnabled true
set LDAP.EncryptionType NoEncryption
set LDAP.CommonNameType IPAddress
set LDAP.ServiceAddresses 192.168.0.110:111
set LDAP.Username cn=admin,dc=username,dc=qa111111111
set LDAP.Password Password
set LDAP.BaseDistinguishedNames dc=username,dc=q2222
#set LDAP.GroupsAttribute on V2
#  Only HyperScale machine support set LDAP.UsernameAttribute
#  set LDAP.UsernameAttribute cn

# Allow logons from:
#set LDAP.LocalAccountAuth LocalFirst

# Role Groups
set LDAP.LocalRole.1 User
set LDAP.RemoteGroup.1 ldaprg3
set LDAP.RemoteUser.1 ou=test123group,dc=megarac,dc=qa
set LDAP.LocalRole.2 Operator
set LDAP.RemoteGroup.2 ldaprg2
set LDAP.RemoteUser.2 ou=testgroup,dc=megarac,dc=qa
set LDAP.LocalRole.3 Administrator
set LDAP.RemoteGroup.3 ldaprg1
set LDAP.RemoteUser.3 ou=testgroup,dc=megarac,dc=qa
set LDAP.LocalRole.4 User
set LDAP.RemoteGroup.4 ldaprg4
set LDAP.RemoteUser.4 ou=test123group,dc=megarac,dc=q11
set LDAP.LocalRole.5 Administrator
set LDAP.RemoteGroup.5 ldaprg5
set LDAP.RemoteUser.5 ou=test123group,dc=megarac,dc=q16


#import LDAP.ROOT_CA_CERT --file /etc/ssl/certs/mycacert.pem
#import LDAP.CLIENT_TRUSTED_CERT --file /etc/ldap/ldap01_slapd_cert01.pem
