Gosa com o openldap dando erro de php na inicialização

1

Estou tentando configurar o GOsa e o OpenLDAP em uma máquina Centos 7 e estou encontrando alguns problemas.

Principalmente quando eu acesso a página da Web / gosa, recebo o seguinte erro:

Fatal error: Class 'session' not found in /usr/share/gosa/include/php_setup.inc on line 91

Etapas de instalação:

  • Adição do link repositório yum
  • Instalação dos módulos yum (versão mais recente):
    • openldap
    • openldap-clients
    • openldap-servers
    • gosa-schema.noarch
    • gosa-plugin-systems.noarch
    • gosa-plugin-sudo.noarch
    • gosa-plugin-squid.noarch
    • gosa-plugin-samba.noarch
    • gosa-plugin-rolemanagement.noarch
    • gosa-plugin-pureftpd.noarch
    • gosa-plugin-mail.noarch
    • gosa-plugin-log.noarch
    • gosa-plugin-ldapmanager.noarch
    • gosa-plugin-dns.noarch
    • gosa-plugin-dhcp.noarch
    • gosa-plugin-connectivity.noarch
    • gosa-plugin-addressbook.noarch
    • gosa.noarch
  • mudando expose_php off e magic_quotes_gpc em arquivos php
  • Configurando o /etc/openldap/ldap.conf da seguinte maneira (mais tarde)
  • copiando /usr/share/gosa/plugins/pureftpd/contrib/pureftpd.schema para /etc/openldap/schema/gosa/pureftpd.schema
  • copiando /usr/share/gosa/plugins/dns/contrib/dnszone.schema para /etc/openldap/schema/gosa/dnszone.schema
  • adicionando gosa_custom.schema a /etc/openldap/schema/gosa_custom.schema (segue mais adiante)
  • abrindo o acesso do apache definindo Exija tudo concedido no diretório /
  • copiando /usr/share/openldap-servers/DB_CONFIG.example para / var / lib / ldap / DB_CONFIG
  • executando / usr / sbin / update-gosa
  • iniciando o ldap e o apache

ldap.conf (dados de amostra)

include         /etc/openldap/schema/corba.schema
include         /etc/openldap/schema/core.schema
include         /etc/openldap/schema/cosine.schema
include         /etc/openldap/schema/dyngroup.schema
include         /etc/openldap/schema/inetorgperson.schema
include         /etc/openldap/schema/java.schema
include         /etc/openldap/schema/misc.schema
include         /etc/openldap/schema/nis.schema
include         /etc/openldap/schema/openldap.schema
include         /etc/openldap/schema/ppolicy.schema

include /etc/openldap/schema/gosa/samba3.schema
include /etc/openldap/schema/gosa/pureftpd.schema
include /etc/openldap/schema/gosa/gofon.schema
include /etc/openldap/schema/gosa/gosystem.schema
include /etc/openldap/schema/gosa/goto.schema
include /etc/openldap/schema/gosa/gosa-samba3.schema
include /etc/openldap/schema/gosa/gofax.schema
include /etc/openldap/schema/gosa/goserver.schema
include /etc/openldap/schema/gosa/goto-mime.schema
include /etc/openldap/schema/gosa/trust.schema
include /etc/openldap/schema/gosa/dnszone.schema
include /etc/openldap/schema/gosa/gosa_custom.schema

pidfile     /var/run/openldap/slapd.pid
argsfile    /var/run/openldap/slapd.args

database    bdb
suffix      "dc=FogoNaCaixadAgua"
rootdn      "cn=Manager,dc=FogoNaCaixadAgua"

# Senha gerada pelo comando slappasswd -h {SSHA}
rootpw      {SSHA}Nag4FWwXLoGO/WpdpFJUlMVCBYwB94wt

directory   /var/lib/ldap

index entryCSN,entryUUID eq
index uid,mail eq
index gosaMailAlternateAddress,gosaMailForwardingAddress eq
index cn,sn,givenName,ou pres,eq,sub
index objectClass pres,eq
index uidNumber,gidNumber,memberuid eq
index gosaSubtreeACL,gosaObject,gosaUser pres,eq
index sambaSID eq
index sambaPrimaryGroupSID eq
index sambaDomainName eq

cachesize 100000

gosa_custom.schema

#$Id: authldap.schema,v 1.8 2005/03/20 19:10:30 mrsam Exp $
#
# OID prefix: 1.3.6.1.4.1.25981
#
# Attributes: 1.3.6.1.4.1.25981.1.1
#
# Depends on: gosa.schema and cosine.schema

attributetype ( 1.3.6.1.4.1.25981.1.1.1 NAME 'gosaMailHome'
    DESC 'The absolute path to the mail message stor directory in a virtual mail setup.'
        EQUALITY caseExactIA5Match
        SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )

#
# Objects: 1.3.6.1.4.1.25981.1.2
#

objectclass ( 1.3.6.1.4.1.25981.1.2.1 NAME 'gosaVirtualMailAccount' SUP top AUXILIARY
    DESC 'Objectclass to mark Virtual MailAccounts for GOsa (v2.4)'
        MAY ( gosaMailHome ) )
    
por mangusbrother 22.03.2016 / 23:48

0 respostas

Tags