# Sample template to configure AD account service.
#
# USAGE NOTE:
#	Due to the particulary of AD, we need use the command "config batch" to create or modify AD account.
#	If you use the command "config set" to configure AD, the tool will return the error such like not support and 
#	let you use the batch command to configure AD.
#
# For the first time configuring AD, you shall set all the DNS config attributes first:
		set BMC.DNS_Server_Manual true
        set BMC.DNS_Server_IP1    {domain controller server address 1}
        set BMC.DNS_Server_IP2    {DNS server address 2}
        set BMC.DNS_Server_IP3    {DNS server address 3}

# Then you shall set all the AD attributes to the values you want:
	set AD.ServiceEnabled {true or false}
	set AD.Username {userid}
	set AD.Password {passwd}
	set AD.DomainName {domain name}
	set AD.DomainControllerServerAddr1 {domain controller server address 1}
	set AD.DomainControllerServerAddr2 {domain controller server address 2}
	set AD.DomainControllerServerAddr3 {domain controller server address 3}
	set AD.LocalRole.1 {Administrator or User or Operator or OEM or None}
	set AD.RemoteGroup.1 {remote group name}
	set AD.RemoteUser.1 {remote user name}
#	set AD.LocalRole.2 {}
#	set AD.RemoteGroup.2 {}
#	set AD.RemoteUser.2 {}
#	set AD.LocalRole.3 {}
#	set AD.RemoteGroup.3 {}
#	set AD.RemoteUser.3 {}
#	set AD.LocalRole.4 {}
#	set AD.RemoteGroup.4 {}
#	set AD.RemoteUser.4 {}
#	set AD.LocalRole.5 {}
#	set AD.RemoteGroup.5 {}
#	set AD.RemoteUser.5 {}
#	set AD.LocalAccountAuth {LocalFirst or Fallback or Enabled}

# If you modify the configured AD, you just need modify the attributes above you want to modify.
#
# If you set AD.ServiceEnabled to false, you just only need add the following command in your batch file:
#		set AD.ServiceEnabled false
#
# SYNTAX EXPLANATION
# 
# DNS_Server_Manual
#               DNS server address input method.
#                       true: manually set the DNS server address.
#                       false: automatically set the DNS server address.
#
# DNS_Server_IP1
#               DNS server address 1, which is the AD server address
#
# DNS_Server_IP2
#               DNS server address 2
#
# DNS_Server_IP3
#               DNS server address 3
#
# AD.ServiceEnabled
#		AD service enable status.
#			true:	 AD service is enabled.
#			false:	 AD service is disabled.
#
# AD.Password
#		AD authentication password.
#
# AD.Username
#		AD authentication user name.
#
# AD.LocalRole
#		AD group authority.
#			User:			user authority.
#			Administrator:  administrator authority.
#			Operator:		operator authority.
#			OEM:			oem authority.
#			None:			none authority.
#
# AD.RemoteGroup
#		AD remote role group name.
#
# AD.RemoteUser
#		AD remote role group domain.
#
# AD.DomainControllerServerAddr1
#		AD domain controller server address 1.
#
# AD.DomainControllerServerAddr2
#		AD domain controller server address 2.
#
# AD.DomainControllerServerAddr3
#		AD domain controller server address 3.

# AD.LocalAccountAuth
#		Account service verification type.
#			Enabled:		local only.
#			LocalFirst:		local first, then AD.
#			Fallback:		AD first, then local user.