[sisyphus] open-xchange

Alex =?iso-8859-1?q?exilit_=CE=C1_nm=2Eru?=
Вс Апр 10 14:13:34 MSD 2005


Здравствуйте.

НАКОНЕЦ-ТО ЗАРАБОТАЛО :)
для тех кто интересуется привожу свой скрипт компиляции
-=начало=-
#!/bin/sh

#openssl
#cd ./openssl
#./config && make && make install
#cd ../

#imapd
#cd ./imapd
#make CC=cc SSLTYPE=none SPECIALS= slx
#cd ../

#httpd
##cd ./httpd
##./configure --enable-so --enable-ssl --with-ssl=/usr/local/ssl --prefix=/opt/ads/httpd && make && make install
##cd ../

#berkley-db
##cd ./db/build_unix
##../dist/configure --prefix=/usr/ && make && make install
##cd ../

#postgresql
cd ./postgresql-8.0.1
./configure --prefix=/opt/ads/pgsql && make && make install
cd ../
useradd postgres
mkdir /opt/ads/pgsql/data
mkdir /opt/ads/pgsql/log
chown postgres /opt/ads/pgsql/data
chown postgres /opt/ads/pgsql/log
rm /usr/bin/psql
ln -s /opt/ads/pgsql/bin/psql /usr/bin/psql
rm /usr/bin/createdb
ln -s /opt/ads/pgsql/bin/createdb /usr/bin/createdb
rm /usr/bin/initdb
ln -s /opt/ads/pgsql/bin/initdb /usr/bin/initdb
rm /usr/bin/pg_ctl
ln -s /opt/ads/pgsql/bin/pg_ctl /usr/bin/pg_ctl
su postgres -c 'unset LANG LC_ALL LC_MESSAGES ;initdb -D /opt/ads/pgsql/data'
#/etc/rc.d/rc.postgresql start
killall postmaster
rm -f /tmp/.s.PGSQL.*
su postgres -c 'unset LC_ALL LC_MESSAGES LANG ;/usr/bin/pg_ctl -D /opt/ads/pgsql/data -l /opt/ads/pgsql/log/postgresql -o "-i" start' &
sleep 2
createdb -U postgres postgres
echo psql -U postgres -c
psql -U postgres -c "CREATE USER openexchange WITH PASSWORD 'secret' CREATEDB NOCREATEUSER"
echo createdb -U postgres -O openxchange -E UNICODE openxchange
createdb -U postgres -O openexchange -E UNICODE openexchange
echo psql -U openxchange openxchange
psql -U openexchange openexchange -f /opt/ads/openxchange/share/init_database.sql

#openldap
cd ./openldap
./configure --enable-slapd --enable-aci --enable-cleartext --enable-crypt --enable-bdb --enable-hdb --enable-ldap --enable-ldbm --prefix=/opt/ads/openldap && make depend && make && make install
cd ../
#тут нужно скопировать все из /opt/ads/openldap/bin,sbin,lib,libexec в
#соотвествующие каталоги в /usr или сделать линки

#php5
cd ./php
./configure --prefix=/opt/ads/php5 --with-apxs2=/opt/ads/httpd/bin/apxs --with-openssl=/usr/local/ssl --with-imap=/make/src/imap-2004c1 --with-imap-ssl=/usr/local/ssl --with-mysql=/usr --with-pgsql=/opt/ads/pgsql --with-ldap=/opt/ads/openldap --enable-ftp --with-gettext --with-mcrypt --with-mhash
cd ../

#opex-change
cd ./open-xchange
/configure --prefix=/opt/ads/openxchange --with-mailjar=/opt/ads/javamail/mail.jar --with-activationjar=/opt/ads/jaf/activation.jar --with-jdomjar=/opt/ads/jdom/build/jdom.jar --with-xercesjar=/opt/ads/xerces/xercesImpl.jar--with-jsdkjar=/opt/ads/tomcat/common/lib/servlet-api.jar --with-jdbcjar=/opt/ads/jdbc/pg74.215.jdbc3.jar --with-dbpass=zebrzebr --with-runuid=openexchange --with-domain=company.ua --with-organization=COMPANY --with-basedn=dc=company,dc=ua --with-rootdn=cn=dcroot,dc=company,dc=ua --with-rootpw=secret --with-dbuser=openexchange && make && make install
cd ../
psql -U openexchange openexchange -f /opt/ads/openxchange/share/init_database.sql
/opt/ads/openxchange/sbin/dbinit_ox
killall postmaster
-=конец=-

и конфиг ldapa

-=начало=-
#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
include         /opt/ads/openldap/etc/openldap/schema/core.schema
include         /opt/ads/openldap/etc/openldap/schema/cosine.schema
include         /opt/ads/openldap/etc/openldap/schema/inetorgperson.schema
include         /opt/ads/openldap/etc/openldap/schema/nis.schema
include         /opt/ads/openldap/etc/openldap/schema/samba.schema
include         /opt/ads/openldap/etc/openldap/schema/openxchange.schema
# Define global ACLs to disable default read access.
pidfile         /opt/ads/openldap/var/run/slapd.pid
argsfile        /opt/ads/openldap/var/run/slapd.args

database        ldbm
suffix          "dc=company,dc=ua"
rootdn          "cn=dcroot,dc=company,dc=ua"
rootpw          secret

directory       /opt/ads/openldap/var/openldap-data

index   objectClass,uid,uidNumber,gidNumber,memberUid   eq
index   cn,mail,surname,givenname       eq,subinitial

access to attrs=userPassword,mail
    by dn="cn=Manager,dc=company,dc=ua" write
    by self write
    by anonymous auth
    by * none
    
#addressbook
access to dn.regex="ou=addr,uid=(.*),ou=Users,ou=OxObjects,dc=company,dc=ua"
    by dn.regex="uid=$1,ou=Users,dc=syn-3" write
    by * none break
        
access to dn.subtree="o=AddressBook,dc=company,dc=ua"
    by group="cn=AddressAdmins,o=AddressBook,dc=company,dc=ua" write
    by users read
    by * none

access to *
    by * read
-=конец=-

оказывается ошибка при добавении пользователя была связанна с
некорретной структурой базы данных.


-- 
С уважением,
 Alex                          mailto:exilit на nm.ru




Подробная информация о списке рассылки Sisyphus