Chris PeBenito 2961e7
## <summary>OpenLDAP directory server</summary>
Chris PeBenito 2961e7
Chris PeBenito 2961e7
########################################
Chris PeBenito 2961e7
## <summary>
Chris PeBenito 2961e7
##	Read the contents of the OpenLDAP
Chris PeBenito 2961e7
##	database directories.
Chris PeBenito 2961e7
## </summary>
Chris PeBenito 2961e7
## <param name="domain">
Chris PeBenito 2961e7
##	Domain allowed access.
Chris PeBenito 2961e7
## </param>
Chris PeBenito 2961e7
#
Chris PeBenito 2961e7
interface(`ldap_list_db_dir',`
Chris PeBenito 2961e7
	gen_require(`
Chris PeBenito 2961e7
		type slapd_db_t;
Chris PeBenito 2961e7
		class dir r_dir_perms;
Chris PeBenito 2961e7
	')
Chris PeBenito 2961e7
Chris PeBenito 2961e7
	allow $1 slapd_db_t:dir r_dir_perms;
Chris PeBenito 2961e7
')
Chris PeBenito 2961e7
Chris PeBenito 2961e7
########################################
Chris PeBenito 2961e7
## <summary>
Chris PeBenito 2961e7
##	Read the OpenLDAP configuration files.
Chris PeBenito 2961e7
## </summary>
Chris PeBenito 2961e7
## <param name="domain">
Chris PeBenito 2961e7
##	Domain allowed access.
Chris PeBenito 2961e7
## </param>
Chris PeBenito 2961e7
#
Chris PeBenito 2961e7
interface(`ldap_read_config',`
Chris PeBenito 2961e7
	gen_require(`
Chris PeBenito 2961e7
		type slapd_etc_t;
Chris PeBenito 2961e7
		class file { getattr read };
Chris PeBenito 2961e7
	')
Chris PeBenito 2961e7
Chris PeBenito 2961e7
	files_search_etc($1)
Chris PeBenito 2961e7
	allow $1 slapd_etc_t:file { getattr read };
Chris PeBenito 2961e7
')