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 - francesco_r

Pages: [1]
With the query nothing is found. But /var/log/mail.log is regularly written.
SMTP filter query instead works nicely.
Some suggestions to restore the log in ebox gui?

Thank you

Installation and Upgrades / eGroupware and Ldap AddressBook
« on: August 06, 2009, 11:51:02 am »
I have tried to convert the egroupware addressbook to ldap but without success.
I used these docs to start my work:

Egw needs the rfc2307bis.schema for ldap. Instead ubuntu, like other distribution, use nis.schema as default. Only the latests OpenSuse use the rfc2307bis.schema.
The mayor problem seems to be samba, and in particular the tool smbldap_tools, part of samba package, that support only nis.schema.
Suse/novell, to resolve this issue, developed another app, ldapsmb:

I found other useful links of other persons that patched smbldap_tools for the same problem:

But if i understand correctly, ebox write directly in to ldap database so the hack would be in the ebox code base, or i'm wrong?

Can some ebox developer point me in the right direction?

Thank you very much

I have upgraded from a previous Ebox 0.10 (Debian Sarge) to stable 1.0 but i have a problem with openvpn.
All the users and other configs are ok, only OpenVPN have errors. When i try to activate the module i have this error with debug enabled:

Code: [Select]
\n$VAR1 = bless( {
                 '-stacktrace' => 'Cannot activate the server because  is not fully configured; please edit the configuration and retry at /usr/share/perl5/EBox/OpenVPN/Model/ line 269
EBox::OpenVPN::Model::Servers::_validateService(\'EBox::OpenVPN::Model::Servers=HASH(0xa428c20)\', \'add\', \'HASH(0xab14f7c)\', \'HASH(0xab14f7c)\') called at /usr/share/perl5/EBox/OpenVPN/Model/ line 177
EBox::OpenVPN::Model::Servers::validateTypedRow(\'EBox::OpenVPN::Model::Servers=HASH(0xa428c20)\', \'add\', \'HASH(0xab14f7c)\', \'HASH(0xab14f7c)\') called at /usr/share/perl5/EBox/Model/ line 902
EBox::Model::DataTable::addTypedRow(\'EBox::OpenVPN::Model::Servers=HASH(0xa428c20)\', \'HASH(0xab14f7c)\', \'readOnly\', \'undef\', \'id\', \'undef\') called at /usr/share/perl5/EBox/Model/ line 838
EBox::Model::DataTable::addRow(\'EBox::OpenVPN::Model::Servers=HASH(0xa428c20)\', \'filter\', \'\', \'advertisedNetworks\', \'undef\', \'name\', \'ProfitsGroup\', \'interfaceNumber\', \'undef\', ...) called at /usr/share/perl5/EBox/CGI/Controller/ line 79
EBox::CGI::Controller::DataTable::addRow(\'EBox::CGI::Controller::DataTable=HASH(0xaadc0d8)\') called at /usr/share/perl5/EBox/CGI/Controller/ line 201
EBox::CGI::Controller::DataTable::_process(\'EBox::CGI::Controller::DataTable=HASH(0xaadc0d8)\') called at /usr/share/perl5/EBox/CGI/ line 166
EBox::CGI::ClientRawBase::run(\'EBox::CGI::Controller::DataTable=HASH(0xaadc0d8)\') called at /usr/share/perl5/EBox/CGI/ line 86
EBox::CGI::Run::run(\'EBox::CGI::Run\', \'OpenVPN/Controller/Servers\') called at /usr/share/ebox/cgi/ebox.cgi line 19
ModPerl::ROOT::ModPerl::Registry::usr_share_ebox_cgi_ebox_2ecgi::handler(\'Apache2::RequestRec=SCALAR(0x8d88914)\') called at /usr/lib/perl5/ModPerl/ line 204
eval {...} called at /usr/lib/perl5/ModPerl/ line 204
ModPerl::RegistryCooker::run(\'ModPerl::Registry=HASH(0x8d889b0)\') called at /usr/lib/perl5/ModPerl/ line 170
ModPerl::RegistryCooker::default_handler(\'ModPerl::Registry=HASH(0x8d889b0)\') called at /usr/lib/perl5/ModPerl/ line 31
ModPerl::Registry::handler(\'ModPerl::Registry\', \'Apache2::RequestRec=SCALAR(0x8d88914)\') called at -e line 0
eval {...} called at -e line 0
                 '-file' => '/usr/share/perl5/EBox/OpenVPN/Model/',
                 '-text' => 'Cannot activate the server because  is not fully configured; please edit the configuration and retry',
                 '-line' => 269,
                 '-package' => 'EBox::OpenVPN::Model::Servers'
               }, 'EBox::Exceptions::External' );

If i remember correctly before was activated the firewall and was enabled all the traffic in eth0 (the only installed interface). Now the firewall is deactivated because if i activate it i have another (from /var/log/ebox/ebox.log):

Code: [Select]
2009/05/08 16:01:32 INFO> EBox::Global::saveAllModules - Saving config and restarting services: firewall mailfilter
2009/05/08 16:01:32 INFO> EBox::Module::save - Restarting service for module: firewall
2009/05/08 16:01:33 WARN> EBox::Logs::getModTableInfos - tableInfo() in openvpnmust return a reference to a list of hashes not the hash itself
2009/05/08 16:01:33 WARN> EBox::Logs::getModTableInfos - tableInfo() in squidmust return a reference to a list of hashes not the hash itself
2009/05/08 16:01:33 DEBUG> EBox::Events::Model::Watcher::LogFiltering::new - Missing argument: tableInfo
2009/05/08 16:01:33 WARN> EBox::Events::__ANON__ - model EBox::Events::Model::Watcher::LogFiltering cannot be instantiated
2009/05/08 16:01:34 DEBUG> EBox::Services::serviceConfiguration - id serv7862 not esiste.

Installation and Upgrades / Add Recycle Bin to samba shares
« on: December 15, 2008, 03:06:58 pm »
This little guide explain how to add an hidden .recycle folder in top of each samba share.

Code: [Select]
sudo nano /usr/share/ebox/stubs/samba/smb.conf.mas
Add in each section of [home] , [<% $group->{'sharename'} %>] and [<% $share->{share} %>] after the browseable row this:

Code: [Select]
vfs object = recycle
recycle:keeptree = Yes
recycle:versions = Yes
recycle:touch = Yes
recycle:maxsize = 500000000
recycle:exclude = *.tmp|*.temp|*.o|*.obj|~$*|*.~??

Do some changes in the samba ebox module so it rewrite the smb.conf.

With the above settings the recycle bin will not save the files above 500MB. See the samba manual for other useful settings:

Add a script to /etc/cron.daily to delete the files after 30days of deletion:
Code: [Select]
sudo nano /etc/cron.daily/purge_samba_recycleand write in it:
Code: [Select]
find /home/samba/*/*/.recycle/* -atime 30 | xargs rm -rf

Make the script executable
Code: [Select]
sudo chmod +x /etc/cron.daily/purge_samba_recycle


PS: remember to rewrite these mods if you update the samba ebox module

Installation and Upgrades / PPTP VPN server with Ebox PDC authentication
« on: December 13, 2008, 12:17:50 am »
I like OpenVPN, especially for Site-to-Site VPN. But for road warriors, PPTP is more simple to setup and immediately available in Windows and Max OSX.
This simple guide explain how to setup a PPTP server in Ebox using the Ebox Samba credentials.
I know that at the moment  the internal Ebox firewall does not support the Protocol IP 47 GRE (is it right?) and so i think it's a problem. In my setup i use an external router with port forwarding of 1723/TCP to the lan ip of Ebox and works well.

Install winbind and pptpd
Code: [Select]
sudo apt-get install winbind pptpdYou can leave all the default settings and modify only a few things:
Code: [Select]
sudo nano /etc/pptpd.conf and add
Code: [Select]
remoteip This is the range of unused IP address for the clients in the same subnet of the Ebox server (my server is for example at

Enable the Samba/PDC authentication in PPTP instead of the flat chap secrets:
Code: [Select]
sudo nano /etc/ppp/pptpd-optionsand add
Code: [Select]
ntlm_auth-helper "/usr/bin/ntlm_auth --helper-protocol=ntlm-server-1"

Restart PPTPD:
Code: [Select]
sudo /etc/init.d/pptpd restart
UPDATE 06/08/2009

Perhaps the winbind version supplied with Ubuntu Hardy is buggy, i don't know. But you must join the domain to make it works:
Code: [Select]
sudo net rpc join -U administratorwhere "administrator" is an ebox user with administration rights.

Now on a windows client create a connection toward the public IP address of the server and login with the ebox username/password (PDC account must be enabled)
In the Windows client remember to remove from the VPN connection the "default remote gateway" options in the TCP/IP properties.


Pages: [1]