#
# OpenLDAP Schema for LDAP Based Apache Virtual Hosts
#

objectIdentifier vhostElements			msysLDAPelements:3
objectIdentifier vhostAttributeType		vhostElements:1
objectIdentifier vhostObjectClass		vhostElements:2

attributetype ( vhostAttributeType:1
	NAME 'vhost'
	DESC 'Name of virtual webserver'
	EQUALITY caseExactIA5Match
	SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )

attributetype ( vhostAttributeType:2
	NAME 'vhostDocumentRoot'
	DESC 'Document root of virtual webserver'
	EQUALITY caseExactIA5Match
	SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )

attributetype ( vhostAttributeType:3
	NAME 'vhostServerAdmin'
	DESC 'E-Mail address of virtual webserver administrator'
	EQUALITY caseExactIA5Match
	SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )

attributetype ( vhostAttributeType:4
	NAME 'vhostAccessLog'
	DESC 'Path to access log for this virtual host'
	EQUALITY caseExactIA5Match
	SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )

attributetype ( vhostAttributeType:5
	NAME 'vhostCustomLog'
	DESC 'Path to cstom access log for this virtual host'
	EQUALITY caseExactIA5Match
	SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )

attributetype ( vhostAttributeType:6
	NAME 'vhostErrorLog'
	DESC 'Path to error log for this virtual webserver'
	EQUALITY caseExactIA5Match
	SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )

attributetype ( vhostAttributeType:7
	NAME 'vhostAlias'
	DESC 'Alias directive'
	EQUALITY caseExactIA5Match
	SYNTAX 1.3.6.1.4.1.1466.115.121.1.26)

attributetype ( vhostAttributeType:8
	NAME 'vhostCommand'
	DESC 'Commands as found in an ordinary Apache config file'
	EQUALITY caseExactIA5Match
	SYNTAX 1.3.6.1.4.1.1466.115.121.1.26)

attributetype ( vhostAttributeType:9
	NAME 'vhostClass'
	DESC 'Virtual Host Class'
	EQUALITY caseExactIA5Match
	SYNTAX 1.3.6.1.4.1.1466.115.121.1.26)

attributetype ( vhostAttributeType:10
	NAME 'vhostCluster'
	DESC 'Virtual Host Cluster'
	EQUALITY caseExactIA5Match
	SYNTAX 1.3.6.1.4.1.1466.115.121.1.26)

attributetype ( vhostAttributeType:11
	NAME 'vhostStatus'
	DESC 'Is this virtual host active'
	EQUALITY caseExactIA5Match
	SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE)

attributetype ( vhostAttributeType:12
	NAME 'vhostDirExists'
	DESC 'experimental: Does the documentroot exist'
	EQUALITY caseExactIA5Match
	SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE)
	
attributetype ( vhostAttributeType:13
	NAME 'vhostDirAction'
	DESC 'experimental: What to do next with the document root directory'
	EQUALITY caseExactIA5Match
	SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE)

attributetype ( vhostAttributeType:14
	NAME 'vhostServerAlias'
	DESC 'ServerAlias directive'
	EQUALITY caseExactIA5Match
	SYNTAX 1.3.6.1.4.1.1466.115.121.1.26)

#
# Objects: vhostObjectClass
#

objectclass ( vhostObjectClass:1
	NAME 'vhost' SUP top STRUCTURAL
	DESC 'Apache Virtual host configuration'
	MUST (vhost )
	MAY ( vhostDocumentRoot $vhostServerAdmin $ vhostAccessLog $
		vhostErrorLog $ vhostCustomLog $ vhostAlias $
		vhostCommand $ vhostStatus $ vhostServerAlias ) )
