February 05, 2012, 11:43:08 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Work on Kolab2/Gentoo-2.2 has stopped. The project has been deprecated (see board Kolab2/Gentoo).
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: How do I install KoLab on Gentoo?  (Read 2486 times)
xehqter
Jr. Member
**

Karma: 1
Posts: 94


View Profile WWW
« on: May 23, 2007, 04:59:19 AM »

Hey, I've been trying to get KoLab/Gentoo working for the last few days and I'm not getting anywhere fast, so I'm asking for help.

I'm following the directions outlined here:
http://wiki.kolab.org/index.php/Gentoo_-_SysAdmin_-_Installation

Long story short, neither unstable or development are working for me. Between version blocking, template files not loading modules, bootstrap not modifying necessary files, and countless other issues, I feel like I'm missing something.

If I use the development version I run into issues with the various configuration files (ie: slapd.conf, and apache kolab conf's not loading required modules)

If I use the unstable version I get blocking due to version issues with php and perl, if I modify the build to remove the checks bootstrap doesn't modify apache's configuration

I'm installing on a 32bit system with a fresh 2007.0 Gentoo install. Before posting various logs is there something else I need to do that is not covered in the above install doc?
 
Which version should I focus my efforts trying to install kolabd-20070216-r3 or kolabd-20070510, I don't mind running a developmental branch, but I want to be able to install it.

« Last Edit: May 23, 2007, 05:17:37 AM by xehqter » Logged

Gunnar Wrobel
Administrator
Sr. Member
*****

Karma: 2
Posts: 331


275141552 gunnarwrobel@yahoo.de gunnarwrobel
View Profile WWW Email
« Reply #1 on: May 23, 2007, 08:39:01 AM »

You definitely use the correct installation instructions and I am happy about any bug reports or log files Smiley

Kolab2/Gentoo is definitely a difficult overlay which originates from the fact that Kolab patches a good deal of the core packages and that makes it hard to integrate it into any distribution. In addition to that the overlay is in a "stabilization" phase after the Kolab-2.1 release and stuff is bound to break at the moment.

So please post any issues you have to the forum or visit #gentoo-kolab on irc.freenode.net.
Logged
xehqter
Jr. Member
**

Karma: 1
Posts: 94


View Profile WWW
« Reply #2 on: May 24, 2007, 01:44:11 AM »

Okay, fresh gentoo 2007.0 install.

I decided to install the development version kolabd-20070510. In addition to the above directions I added

package.keywords
Code:
dev-libs/apr-util
app-admin/apache-tools

package.use
Code:
mail-mta/ssmtp mailwrapper
mail-mta/postfix kolab ldap sasl ssl mailwrapper

package.unmask
Code:
mail-mta/postfix

then recompiled ssmtp get around the postfix/ssmtp blocking issue.
Now I can compile kolabd without any further blocking errors.

As instructed I modified mod_authn_alias and recompiled apache, then
I ran dispatch-conf and used the new configuration files.

after kolabd installed I ran
/usr/share/kolabd/scripts/kolab_bootstrap -b

Specifying localhost as the server, xehqter.com as the mail domain, and chose master server.
Next I ran /etc/init.d/kolabd start
All the services started up without issue, however when I goto https://192.168.0.102/admin/ I get a 404 not found.

/var/log/apache2/ssl_error_log:
Code:
File does not exist: /var/www/localhost/htdocs/admin

/etc/conf.d/apache2:
Code:
APACHE2_OPTS="-D DEFAULT_VHOST -D INFO -D LANGUAGE -D SSL -D SSL_DEFAULT_VHOST -D SUEXEC"

It appears that SSL_DEFAULT_VHOST is handling the ssl connection and not kolab, adding -D KOLAB to APACHE2_OPTS doesn't change the outcome.

These are the package versions/use flags I installed with:

Code:
[ebuild   R   ] net-mail/cyrus-imapd-2.3.7-r20  USE="kolab pam ssl tcpd -afs -autocreate -autosieve -drac -idled -kerberos -nntp -snmp" 0 kB [1]
[ebuild   R   ] net-mail/cyrus-imap-admin-2.3.7-r20  USE="kolab ssl -kerberos" 0 kB [1]
[ebuild   R   ] dev-libs/cyrus-sasl-2.1.22-r2  USE="berkdb crypt gdbm ldap pam ssl -authdaemond -java -kerberos -mysql -ntlm_unsupported_patch -postgres -sample -srp -urandom" 0 kB
[ebuild   R   ] dev-lang/php-5.2.2-r20  USE="apache2 berkdb cgi cli crypt force-cgi-redirect ftp gdbm iconv imap ipv6 kolab ldap ncurses nls pcre readline reflection session spl sqlite ssl unicode xml zlib -adabas -bcmath -birdstep -bzip2 -calendar -cdb -cjk -concurrentmodphp -ctype -curl -curlwrappers -db2 -dbase -dbmaker -debug -discard-path -doc -empress -empress-bcs -esoob -exif -fastbuild -fdftk -filter -firebird -flatfile -frontbase -gd -gd-external -gmp -hash -inifile -interbase -iodbc -java-external -json -kerberos -ldap-sasl -libedit -mcve -mhash -msql -mssql -mysql -mysqli -oci8 -oci8-instant-client -odbc -pcntl -pdo -pdo-external -pic -posix -postgres -qdbm -recode -sapdb -sharedext -sharedmem -simplexml -snmp -soap -sockets -solid -spell -suhosin -sybase -sybase-ct -sysvipc -threads -tidy -tokenizer -truetype -wddx -xmlreader -xmlrpc -xmlwriter -xpm -xsl -yaz -zip -zip-external" 0 kB [1]
[ebuild   R   ] app-antivirus/clamav-0.90.2  USE="crypt nls -bzip2 -curl -logrotate -mailwrapper -milter (-selinux)" 0 kB
[ebuild   R   ] mail-mta/postfix-2.4.1  USE="ipv6 ldap mailwrapper pam sasl ssl -cdb -dovecot-sasl -hardened -mbox -mysql -nis -postgres (-selinux) -vda" 0 kB
[ebuild   R   ] net-www/apache-2.2.4-r2  USE="ldap ssl -debug -doc -mpm-event -mpm-itk -mpm-peruser -mpm-prefork -mpm-worker -no-suexec (-selinux) -static-modules -threads" 0 kB
[ebuild   R   ] net-nds/openldap-2.3.30-r2  USE="berkdb crypt gdbm ipv6 overlays perl readline ssl tcpd -debug -kerberos -minimal -odbc -samba -sasl (-selinux) -slp -smbkrb5passwd" 0 kB
[ebuild   R   ] mail-filter/spamassassin-3.1.8-r1  USE="berkdb ipv6 ssl -doc -ldap -mysql -postgres -qmail -sqlite -tools" 0 kB
[ebuild   R   ] mail-filter/amavisd-new-2.4.1  USE="-ldap -milter -mysql -postgres" 0 kB
[ebuild   R   ] net-libs/c-client-2004g-r20  USE="kolab pam ssl" 0 kB [1]
[ebuild   R   ] net-mail/kolab-resource-handlers-20070510  0 kB [1]
[ebuild   R   ] net-mail/kolab-webadmin-20070510  USE="-horde" 0 kB [1]
[ebuild   R   ] net-mail/kolabd-20070510  USE="-horde -legacy -mailman -spam -webdav" 0 kB [1]

after I get kolab working I'd like to use horde webmail, but my goal is to get kolab running.

Thanks for helping me,
Jeremy
Logged

xehqter
Jr. Member
**

Karma: 1
Posts: 94


View Profile WWW
« Reply #3 on: May 25, 2007, 03:48:41 AM »

Okay, I think I've found one of my problems.
kolab_bootstrap isn't copying over all the necessary templates, for example:
/etc/conf.d/apache2
/etc/apache2/modules.d/000_kolab.conf
/usr/share/php/kolab/admin/include/session_vars.php

I modified conf.d/apache2, session_vars.php, and created a custom vhost for apache, now I can get to the admin logon page, however it says "Could not bind to LDAP server: Invalid credentials". Have you ever encountered this problem where by kolab_bootstrap doesn't copy over the necessary templates?

I think my invalid credentials issue due to my session_vars.php

session_vars.php
Code:
$_SESSION['fqdnhostname'] = "localhost";
$_SESSION['ldap_master_uri'] = "ldap://localhost/";
$_SESSION['base_dn'] = "dc=xehqter,dc=com";
$_SESSION['php_dn'] = "dc=xehqter,dc=com";
$_SESSION['php_pw'] = "password";

12_kolab_vhosts.conf
Code:
<IfDefine KOLAB>
 <VirtualHost *:80>
   ServerName localhost
   DocumentRoot "/var/www/kolab/htdocs"
   ErrorLog /var/log/apache2/test_error_log
   CustomLog /var/log/apache2/test_access_log combined
 </VirtualHost>

 <Directory "/var/www/kolab/htdocs/cgi-bin">
   AllowOverride All
   Options ExecCGI
   <IfModule mod_authz_host.c>
     Order allow,deny
     Allow from all
   </IfModule>
 </Directory>

 <Directory "/var/www/kolab/htdocs">
   Options Indexes FollowSymLinks
   AllowOverride None
   <IfModule mod_authz_host.c>
     Order allow,deny
     Allow from all
   </IfModule>
 </Directory>

<Directory /usr/lib/php5/bin/>
        Options +ExecCGI +FollowSymLinks
        Order allow,deny
        Allow from all
        AllowOverride None
</Directory>

</IfDefine>


« Last Edit: May 25, 2007, 03:51:57 AM by xehqter » Logged

xehqter
Jr. Member
**

Karma: 1
Posts: 94


View Profile WWW
« Reply #4 on: May 25, 2007, 11:05:47 PM »

mkay. I disabled warnings in php and modified my session_vars.
now I can log into http://localhost/admin, with Manager/password however the interface only lets me modify settings for the manager account, there is no option to create/modify users. It says my role is user so i'm assuming it thinks the manager account is a user account, not an administrator account.. Any ideas how I should proceed?


/etc/php/cgi-php5/php.ini
Code:
error_reporting  =  E_ALL & ~E_NOTICE & ~E_WARNING

/usr/share/php/kolab/admin/include/session_vars.php
Code:
$_SESSION['fqdnhostname'] = "localhost";
$_SESSION['ldap_master_uri'] = "ldap://localhost/";
$_SESSION['base_dn'] = "cn=Manager,cn=internal,dc=xehqter,dc=com";
$_SESSION['php_dn'] = "cn=Manager,cn=internal,dc=xehqter,dc=com";
$_SESSION['php_pw'] = "password";
Logged

xehqter
Jr. Member
**

Karma: 1
Posts: 94


View Profile WWW
« Reply #5 on: May 28, 2007, 03:52:33 AM »

Okay, since all my problems (so far) seem to be with configuration files I installed openpkg/kolab, made a backup, and wiped my system.

fresh gentoo 2007.0, fresh kolabd-2.1, same issues, same fixes. I changed my LDAP info in session_vars.php, now my role is shown as admin and I have the management options, however if I add a user I get
Code:
Warning: ldap_add() [function.ldap-add]: Add: Internal (implementation specific) error in /var/www/kolab/htdocs/admin/user/user.php on line 729

LDAP Error: could not add object cn=test test,dc=xehqter,dc=com: Internal (implementation specific) error

Any ideas? Also whens I good time to reach someone in the IRC Channel? Whenever I go in its empty.

Code:
$_SESSION['fqdnhostname'] = "localhost";
$_SESSION['ldap_master_uri'] = "ldap://127.0.0.1:389";
$_SESSION['base_dn'] = "dc=xehqter,dc=com";
$_SESSION['php_dn'] = "cn=nobody,cn=internal,dc=xehqter,dc=com";
# PW taken from kolab.conf
$_SESSION['php_pw'] = "password";
Logged

xehqter
Jr. Member
**

Karma: 1
Posts: 94


View Profile WWW
« Reply #6 on: May 28, 2007, 06:07:51 AM »

Okay, I found the problem.
In the last CVS update for
server/kolab-webadmin/kolab-webadmin/www/admin/user/user.php.in
http://kolab.org/cgi-bin/viewcvs-kolab.cgi/server/kolab-webadmin/kolab-webadmin/www/admin/user/user.php.in?r1=1.17

$ldap_object['objectClass'] = array('top', 'inetOrgPerson','kolabInetOrgPerson');
was moved from line 508 to 499 which breaks $ldap_object
http://kolab.org/cgi-bin/viewcvs-kolab.cgi/server/kolab-webadmin/kolab-webadmin/www/admin/user/user.php.in.diff?r1=1.17&r2=1.18


When creating a new account
$ldap_object looks like

Code:
Array
(
    [sn] => test1234
    [cn] => test1234 test1234
    [givenName] => test1234
    [userPassword] => {SSHA}ARFDKVfJKlO/jPsEy1hP4RPsUFGICce/
    [mail] => test1234@xehqter.com
    [uid] => test1234@xehqter.com
    [kolabHomeServer] => localhost
    [kolabInvitationPolicy] => Array
        (
            [0] => ACT_MANUAL
        )

)

instead of
Code:
Array
(
    [objectClass] => Array
        (
            [0] => top
            [1] => inetOrgPerson
            [2] => kolabInetOrgPerson
        )

    [sn] => test1234
    [cn] => test1234 test1234
    [givenName] => test1234
    [userPassword] => {SSHA}ARFDKVfJKlO/jPsEy1hP4RPsUFGICce/
    [mail] => test1234@xehqter.com
    [uid] => test1234@xehqter.com
    [kolabHomeServer] => localhost
    [kolabInvitationPolicy] => Array
        (
            [0] => ACT_MANUAL
        )

)
Logged

Gunnar Wrobel
Administrator
Sr. Member
*****

Karma: 2
Posts: 331


275141552 gunnarwrobel@yahoo.de gunnarwrobel
View Profile WWW Email
« Reply #7 on: May 29, 2007, 08:34:24 AM »

Sorry for the late repsonse. The last error was a bad commit from my side. I fixed that in the kolab-webadmin sources in Kolab cvs.

I did now finish the main restructuring in the Kolab2 overlay and removed the development tree. If testing in the next weeks is successful I'll remove the older "stable" release and will fork the overlay. Sorry for all the mess. I know this is still a very bumpy road and I hope that the final overlay will be somewhat easier to use.

You can try either the #gentoo-kolab or #kolab channel but I assume that we have different timezone. Kolab2/Gentoo is not yet a very big project so there are not too many people hanging around in that channel Smiley
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!