Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - binary-two

Pages: [1]
1
Installation and Upgrades / emoddev and zentyal module development guide
« on: November 06, 2010, 10:45:05 am »
Hi zentyal-team,

Just wanted to ask if you plan to release an updated version of emoddev and your module development guide for the current release.

Thanks for your help!

Björn

apt-cache policy emoddev
emoddev:
  Installed: 1.5
  Candidate: 1.5
  Version table:
 *** 1.5 0
        500 http://ppa.launchpad.net/zentyal/2.0/ubuntu/ lucid/main Packages

2
Installation and Upgrades / Quick Howto: SOGo
« on: April 05, 2010, 12:07:35 pm »
Hi there,

as far as I can understand, some people are interested in getting SOGo [1] running on ebox; or others are having trouble with their LDAP integration. It works fine for me with the setup as described later. I use SOGo with MySQL on Ubuntu Hardy 8.04 LTS. I am using ebox is 1.4.

Actually it might be worth getting an ebox module, but I never had time to look into it (yet) :-). For now here are some basic informations how I got it running. I just want to point out the most important steps. Please refer to the very nice official documentation from Inverse [3]. The MHC SoftWare SOGo WIKI [4] was also a big help for me.

1. SOGo apt source

Add
Code: [Select]
deb http://inverse.ca/debian lenny lenny to your /etc/apt/sources.list

2. Other dependencies

You need to build
gnustep-base-common_1.16.1-2ubuntu1_all.deb
gnustep-base-runtime_1.16.1-2ubuntu1_i386.deb
gnustep-common_2.0.6-2_i386.deb
libgnustep-base1.16_1.16.1-2ubuntu1_i386.deb
yourself or get them from the intrepid repository. There are only older hardy packages (maybe in backports?!). All other dependencies can be automatically obtained form the inverse or hardy repositories.

I can't remember any other problems respectively unmet dependencies.

Disclaimer: (a) the manually installed packages are not updated automatically, of course and (b) external packages and untrusted repositories can damage your system.

3. Installing SOGo

Should be sudo apt-get install gnustep-make sogo only.

The setup will be in the next post in this thread.

[1] http://www.scalableogo.org
[2] http://www.scalableogo.org/files/docs/SOGo%20Installation%20Guide.pdf
[3] http://inverse.ca/english.html
[4] http://wiki.mhcsoftware.de/SOGo
[5] http://www.scalableogo.org/english/support/faq/article/how-to-install-sogo-on-ubuntu.html
[6] http://www.scalableogo.org/english/support/faq/article/how-do-i-configure-sogo-to-use-mysql.html

3
Hi all,

running the latest update of 1.3 (with slapd_2.4.18) I get following error messages with all ldap-related modules:

Can't call method "attributes" on an undefined value at /usr/share/perl5/EBox/Ldap.pm line 226

Same happens in the web admin interface:

A really nasty bug has occurred
Exception
Can't call method "attributes" on an undefined value
Trace
Can't call method "attributes" on an undefined value at /usr/share/perl5/EBox/Ldap.pm line 226.

Thanks in advance!

Kind regards,

Björn

4
EBOX 1.2,  ebox-usersandgroups 1.2.3-0

Hi guys,

I just wanted to delete an user, but it failed with a nasty bug :-(.

Now it seems all users with mail and/or egroupware account are just deleted partially, i.e. not completely from the ldap. Is there any way to remove these zombie users?

Any help is highly appreciated. Thanks heaps in advance.

Kind regards,

Björn

Code: [Select]
A really nasty bug has occurred
Exception
Unknown error at EBox::UsersAndGroups::delUserFromGroup unrecognized objectClass 'eboxEgwAccount'
Trace
Unknown error at EBox::UsersAndGroups::delUserFromGroup unrecognized objectClass 'eboxEgwAccount' at /usr/share/perl5/EBox/Ldap.pm line 568
EBox::Ldap::_errorOnLdap('Net::LDAP::Modify=HASH(0xbd228c0)', 'HASH(0xbd93288)') called at /usr/share/perl5/EBox/Ldap.pm line 299
EBox::Ldap::modify('EBox::Ldap=HASH(0x9d01be0)', 'cn=Group_users,ou=Groups,dc=ebox', 'HASH(0xbd93288)') called at /usr/share/perl5/EBox/UsersAndGroups.pm line 1274
EBox::UsersAndGroups::delUserFromGroup('EBox::UsersAndGroups=HASH(0xad4610c)', 'bjoern', 'Group_users') called at /usr/share/perl5/EBox/CGI/UsersAndGroups/DelGroupFromUser.pm line 55
EBox::CGI::UsersAndGroups::DelGroupFromUser::_process('EBox::CGI::UsersAndGroups::DelGroupFromUser=HASH(0xbcd6fbc)') called at /usr/share/perl5/EBox/CGI/Base.pm line 261
EBox::CGI::Base::run('EBox::CGI::UsersAndGroups::DelGroupFromUser=HASH(0xbcd6fbc)') called at /usr/share/perl5/EBox/CGI/Run.pm line 120
EBox::CGI::Run::run('EBox::CGI::Run', 'UsersAndGroups/DelGroupFromUser', 'EBox') called at /usr/share/ebox/cgi/ebox.cgi line 19
ModPerl::ROOT::ModPerl::Registry::usr_share_ebox_cgi_ebox_2ecgi::handler('Apache2::RequestRec=SCALAR(0xbbeb0a4)') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 204
eval {...} called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 204
ModPerl::RegistryCooker::run('ModPerl::Registry=HASH(0xbd7d564)') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 170
ModPerl::RegistryCooker::default_handler('ModPerl::Registry=HASH(0xbd7d564)') called at /usr/lib/perl5/ModPerl/Registry.pm line 31
ModPerl::Registry::handler('ModPerl::Registry', 'Apache2::RequestRec=SCALAR(0xbbeb0a4)') called at -e line 0
eval {...} called at -e line

/var/log/ebox/error.log

Code: [Select]
Trace begun at /usr/share/ebox/cgi/ebox.cgi line 26
ModPerl::ROOT::ModPerl::Registry::usr_share_ebox_cgi_ebox_2ecgi::__ANON__('EBox::Exceptions::Internal=HASH(0xbe038a8)', 'SCALAR(0x83b7638)') called at /usr/share/perl5/Error.pm line 375
eval {...} at /usr/share/perl5/Error.pm line 365
Error::subs::run_clauses('HASH(0xbdc9aa0)', 'EBox::Exceptions::Internal=HASH(0xbe038a8)', undef, 'ARRAY(0x83b780c)') called at /usr/share/perl5/Error.pm line 427
Error::subs::try('CODE(0x8f3d524)', 'HASH(0xbdc9aa0)') called at /usr/share/ebox/cgi/ebox.cgi line 42
ModPerl::ROOT::ModPerl::Registry::usr_share_ebox_cgi_ebox_2ecgi::handler('Apache2::RequestRec=SCALAR(0xbbeb0a4)') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 204
eval {...} at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 204
ModPerl::RegistryCooker::run('ModPerl::Registry=HASH(0xbd7d564)') called at /usr
/lib/perl5/ModPerl/RegistryCooker.pm line 170
ModPerl::RegistryCooker::default_handler('ModPerl::Registry=HASH(0xbd7d564)') called at /usr/lib/perl5/ModPerl/Registry.pm line 31
ModPerl::Registry::handler('ModPerl::Registry', 'Apache2::RequestRec=SCALAR(0xbbeb0a4)') called at -e line 0
eval {...} at -e line 0
$VAR1 = bless( {
                 '-stacktrace' => 'Unknown error at EBox::UsersAndGroups::delUserFromGroup unrecognized objectClass \'eboxEgwAccount\' at /usr/share/perl5/EBox/Ldap.pm line 568
        EBox::Ldap::_errorOnLdap(\'Net::LDAP::Modify=HASH(0xbd228c0)\', \'HASH(0xbd93288)\') called at /usr/share/perl5/EBox/Ldap.pm line 299
        EBox::Ldap::modify(\'EBox::Ldap=HASH(0x9d01be0)\', \'cn=Group_users,ou=Groups,dc=ebox\', \'HASH(0xbd93288)\') called at /usr/share/perl5/EBox/UsersAndGroups.pm line 1274
        EBox::UsersAndGroups::delUserFromGroup(\'EBox::UsersAndGroups=HASH(0xad4610c)\', \'bjoern\', \'Group_users\') called at /usr/share/perl5/EBox/CGI/UsersAndGroups/DelGroupFromUser.pm line 55
        EBox::CGI::UsersAndGroups::DelGroupFromUser::_process(\'EBox::CGI::UsersAndGroups::DelGroupFromUser=HASH(0xbcd6fbc)\') called at /usr/share/perl5/EBox/CGI/Base.pm line 261
        EBox::CGI::Base::run(\'EBox::CGI::UsersAndGroups::DelGroupFromUser=HASH(0xbcd6fbc)\') called at /usr/share/perl5/EBox/CGI/Run.pm line 120
        EBox::CGI::Run::run(\'EBox::CGI::Run\', \'UsersAndGroups/DelGroupFromUse
r\', \'EBox\') called at /usr/share/ebox/cgi/ebox.cgi line 19
        ModPerl::ROOT::ModPerl::Registry::usr_share_ebox_cgi_ebox_2ecgi::handler(\'Apache2::RequestRec=SCALAR(0xbbeb0a4)\') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 204
        eval {...} called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 204
        ModPerl::RegistryCooker::run(\'ModPerl::Registry=HASH(0xbd7d564)\') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 170
        ModPerl::RegistryCooker::default_handler(\'ModPerl::Registry=HASH(0xbd7d564)\') called at /usr/lib/perl5/ModPerl/Registry.pm line 31
        ModPerl::Registry::handler(\'ModPerl::Registry\', \'Apache2::RequestRec=SCALAR(0xbbeb0a4)\') called at -e line 0
        eval {...} called at -e line 0
',
                 '-file' => '/usr/share/perl5/EBox/Ldap.pm',
                 '-text' => 'Unknown error at EBox::UsersAndGroups::delUserFromGroup unrecognized objectClass \'eboxEgwAccount\'',
                 '-line' => 568,
                 '-package' => 'EBox::Ldap'
               }, 'EBox::Exceptions::Internal' );


5
Installation and Upgrades / Quick Howto: Alfresco with LDAP
« on: December 14, 2009, 01:21:48 am »
Quick Howto: Alfresco DMS with existing Tomcat 6 on EBOX/Ubuntu with LDAP authentication

I think some people might be interested in getting Alfresco running on an EBOX. Please have a look at the Alfresco wiki [1] and forums [2] for general installation instructions. I just want to point out the most important steps to get it running.

[1] http://wiki.alfresco.com/wiki/Download_and_install_Alfresco_in_Linux (please also look at the different Ubuntu sections)
[2] http://forums.alfresco.com/en/

1. Environment:

This description is for EBOX 1.2/Hardy. For Hardy, we need to grab some packages from newer distros, but in this specific case (Tomcat and a Tomcat-war, its no problem at all). On Jaunty, all packages are in Jaunty repositories.

We want to get Alfresco running in an existing Tomcat instance. We need to get the Tomcat 6 packets either from Hardy-backports [3], but the Intrepid packages work fine as well [4]. The Alfresco-war is bundled in Jaunty [5]. The reason for using the Ubuntu packages is the common Ubuntu structure and rules are already set up during installation and we need not to alter too much for a seamless integration any more. You still need to be aware of some dependencies that need to be fixed, like OpenOffice-headless.

If you grab Intrepid or Jaunty packages for Hardy, download them and install them (with all dependencies), using directly dpkg.

You don't have to worry about the OpenOffice start and the headless mode any more. The headless mode works without any X hacks now.

By default, Tomcat logs on syslog on Ubuntu. It is not very nice and you can alter this in /etc/init.d/tomcat6, but is it not essential (-outfile $CATALINA_LOG -errfile $CATALINA_LOG with CATALINA_LOG=/var/log/tomcat6/catalina.out). Please also check the instructions for changing the Alfresco logs (cf. [1,2]).

If you switch off Tomcat security you don't have to worry a lot, if not, please add:

/etc/tomcat6/policy.d/05alfresco.policy

Code: [Select]
// alfresco
grant codeBase "file:/var/lib/tomcat6/webapps/alfresco/-" {
    permission java.security.AllPermission;
};

grant codeBase "file:/var/lib/tomcat6/webapps/share/-" {
    permission java.security.AllPermission;
};

Just in short: Alfresco is a webapp in a container (Tomcat), so for security reasons the webapp would not be allowed to access other directories, to open ports, etc. I am still trying to get a more fine grained security policy working, but because I could not figure out all permissions needed yet, we need permission java.security.AllPermission;. I am happy for any help (permission java.util.PropertyPermission "user.dir", "read"; permission java.util.PropertyPermission "java.io.tmpdir", "read,write"; permission java.io.FilePermission "/var/lib/tomcat6/-", "read";
 permission java.io.FilePermission "/var/lib/alfresco/-", "read,write,execute,delete"; permission java.io.FilePermission "/usr/bin/-", "read,execute"; permission java.lang.RuntimePermission "createClassLoader", "";) is not enough).

[3] http://packages.ubuntu.com/en/hardy-backports/tomcat6
[4] http://packages.ubuntu.com/en/intrepid/tomcat6
[5] http://archive.canonical.com/pool/partner/a/alfresco-community (partner-repository)

Take a breath, but don't restart Tomcat yet. More in the second post.

Björn

6

Dear eBox-team,

the smarthost authentication does not allow the '$'- or '§'-characters, although they could be part of some passwords.

Mail/Mail server options/Smarthost authentication

"The input contains invalid characters. All alphanumeric characters, plus these non alphanumeric chars: /.?&+:-@ and spaces are allowed."

Sorry that I did not open a ticket, but it was refused (possible spam).

Thank you very much in advance,

Björn  :)

<log>
INFO> Base.pm:194 EBox::CGI::Base::_checkForbiddenChars - Invalid characters in param value ***.
DEBUG> Base.pm:196 EBox::CGI::Base::_checkForbiddenChars - The input contains invalid characters. All alphanumeric characters, plus these non alphanumeric chars: /.?&+:-@ and spaces are allowed.
</log>
eBox version 1.1.30~svn14076

Pages: [1]