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.


Messages - Gray

Pages: [1] 2
1
Hi

That's a surprise? I thought this would be quite a popular topic? I'll persevere with my experiments but, in the meantime, if anyone has any pointers I'd be grateful.

Thanks

2
Hi

O/S: Ubuntu 9.4.0-1ubuntu1~20.04.1
Zentyal: 7.0.5

I've seen a number of posts about this topic but haven't found one that answers the question yet? It seems to me it would be a fairly common requirement and therefore worth tackling.

My Zentyal server has a second drive; that second drive is mounted at /data and has a /shares subdirectory i.e. /data/shares. The shares directory is where I store my shared files (which are shared out to Windows clients). End-users will variously get an N, P, S, X and/or Z drive on their PC and for consistency's sake I would like to also put their home directories, 'H', in the /data/shares/ folder.

I've tried editing many .conf files plus useradd / adduser routines etc etc and, by amending shares.conf.mas, I have managed to persuade Windows clients to map H: to the /data/shares/username folders. However, I have to manually create those home directories (i.e. /data/shares/username) because no matter how I try, when adding new users using Zentyal webadmin the home folders are still added as /home/username !

Anyone any idea how I would force Zentyal to create new users' home folders as /data/shares/username?

Thanks

3
Hi Turalyon

Yes, hopefully so!  :)

I've found there to be differing server naming requirements dependent upon the environment they are being built in. For anyone else experiencing this issue with Zentyal, simply just use the server name (NetBIOS name in Windows), e.g. hsm-dc00, as the hostname as opposed to an FQDN. Ensure you update the Linux hostname in /etc/hostname before installing Zentyal.

Thanks

4
Hi Turalyon

Again, thanks for the assistance.

I put the DNS Forwarder details back into webadmin and restarted the server a couple of times and now the details in webadmin appear to have been committed to /etc/resolv.conf.

Actually, I suspect I may have caused this issue myself by mistakenly using the more familiar resolvconf routine and thus conflicting with Zentyal.

thnx and regards

5
Hi

O/S: Ubuntu 9.4.0-1ubuntu1~20.04.1
Zentyal: 7.0.5

I am trying to set the IP Address of my DNS Server in my Zentyal host (I am not using the DNS module in Zentyal). My Zentyal server IP address is 172.31.88.250 and I want it to use another host at 172.31.0.2 for its DNS lookups. 

I have added a forwarder into webadmin but it does not get committed. Equally, updating /etc/resolv.conf, is not persistent. So at the moment my Zentyal server cannot find the 'outside world'. Zentyal was installed over Ubuntu and I can't seem to shake the original Ubuntu DNS Name Server settings which are now obsolete.

Can anyone help please?


6
Installation and Upgrades / Re: Fresh Install - Certificate Problem
« on: November 28, 2022, 07:07:28 pm »
Hi

Ok I've tried with a /etc/hostname of simply hsm-dc00 which has resolved the errors in the zentyal.log but webadmin->general configuration->hostname and domain->   still shows the old entry i.e. the FQDN.

When I try to correct this in webadmin I get the following error:

Code: [Select]
Invalid value for Host domain: hsm-ad.nnnnnnnnnnnnnnnn.co.uk.hsm-ad.nnnnnnnnnnnnnnnn.co.uk. The length must be between 2 and 48 characters

My guess is that I should have used just hsm-dc00 as my hostname when first building the server. I have corrected this in webadmin by first changing the domain name to test.local, changing the hostname to him-dc00 and then changing, again, the domain name. Prior to this I changed my /etc/hostname file to him-dc00.

Hopefully all should be ok now...

Thanks

7
Installation and Upgrades / Re: Fresh Install - Certificate Problem
« on: November 28, 2022, 06:54:26 pm »
Hi

Indeed it does seem to be a problem.. I've just restarted the server and checked the zentyal.log log to find:-

Code: [Select]
2022/11/28 17:41:03 DEBUG> HostName.pm:167 EBox::SysInfo::Model::HostName::validateTypedRow - Invalid value for Host name: hsm-dc00.hsm-ad.nnnnnnnnnnnnnnnn.co.uk.
2022/11/28 17:41:37 DEBUG> HostName.pm:180 EBox::SysInfo::Model::HostName::validateTypedRow - Invalid value for Host domain: hsm-ad.nnnnnnnnnnnnnnnn.co.uk.hsm-ad.nnnnnnnnnnnnnnnn.co.uk.
My /etc/hostname is as follows:-

Code: [Select]
hsm-dc00.hsm-ad.nnnnnnnnnnnnnnnn.co.uk

Maybe in this context it should not be the FQDN but simply hsm-dc00?

Thanks


8
Installation and Upgrades / Re: Fresh Install - Certificate Problem
« on: November 28, 2022, 06:30:45 pm »
Hi

Interesting.... ?

My Domain Name will be nnnnnnnnnnnnnnnn.co.uk  - 22 chars inc the dots (periods)
My Active Directory Name will be hsm-ad.nnnnnnnnnnnnnnnn.co.uk - 29 chars inc the dots (periods)
My Zentyal Server Name will be hsm-dc00.hsm-ad.nnnnnnnnnnnnnnnn.co.uk - 38 chars inc the dots (periods)

I am just about to set up the AD in Zentyal. I wonder if the char length will be an issue?

Thanks

9
Installation and Upgrades / Re: Fresh Install - Certificate Problem
« on: November 28, 2022, 01:32:53 pm »
Hi

Yes, I've just looked in that file and found the following:-

Code: [Select]
2022/11/25 19:29:16 INFO> Base.pm:256 EBox::Module::Base::saveConfig - Saving config for module: sysinfo
2022/11/25 19:29:16 INFO> Base.pm:231 EBox::Module::Base::save - Restarting service for module: sysinfo
2022/11/25 19:29:17 ERROR> Sudo.pm:240 EBox::Sudo::_rootError - root command set -e
openssl req -new -x509 -batch -subj /CN=hsm-zen.hsm-ad.nnnnnnnnnnnnnnnn.co.uk.hsm-ad.nnnnnnnnnnnnnnnn.co.uk/  -sha1 -days 3650 -key /var/lib/zentyal/conf/ssl/ssl.key > /var/lib/zentyal/conf/ssl/ssl.cert
chmod 0400 /var/lib/zentyal/conf/ssl/ssl.cert failed.
Error output: problems making Certificate Request
 139645905614144:error:0D07A097:asn1 encoding routines:ASN1_mbstring_ncopy:string too long:../crypto/asn1/a_mbstr.c:107:maxsize=64

Command output: .
Exit value: 1 at root command set -e
openssl req -new -x509 -batch -subj /CN=hsm-zen.hsm-ad.nnnnnnnnnnnnnnnn.co.uk.hsm-ad.nnnnnnnnnnnnnnnn.co.uk/  -sha1 -days 3650 -key /var/lib/zentyal/conf/ssl/ssl.key > /var/lib/zentyal/conf/ssl/ssl.cert
chmod 0400 /var/lib/zentyal/conf/ssl/ssl.cert failed.
Error output: problems making Certificate Request
 139645905614144:error:0D07A097:asn1 encoding routines:ASN1_mbstring_ncopy:string too long:../crypto/asn1/a_mbstr.c:107:maxsize=64

Command output: .
Exit value: 1 at /usr/share/perl5/EBox/Sudo.pm line 240
EBox::Sudo::_rootError('/usr/bin/sudo -p sudo: /var/lib/zentyal/tmp/uUJbWvl7TK.cmd 2> /var/lib/zentyal/tmp/stderr', 'set -e^Jopenssl req -new -x509 -batch -subj /CN=hsm-zen.hsm-ad.nnnnnnnnnnnnnnnn.co.uk.hsm-ad.nnnnnnnnnnnnnnnn.co.uk/  -sha1 -days 3650 -key /var/lib/zentyal/conf/ssl/ssl.key > /var/lib/zentyal/conf/ssl/ssl.cert^Jchmod 0400 /var/lib/zentyal/conf/ssl/ssl.cert', 256, 'ARRAY(0x56410efa6af0)', 'ARRAY(0x56410e9e5508)') called at /usr/share/perl5/EBox/Sudo.pm line 210
EBox::Sudo::_root(1, 'openssl req -new -x509 -batch -subj /CN=hsm-zen.hsm-ad.nnnnnnnnnnnnnnnn.co.uk.hsm-ad.nnnnnnnnnnnnnnnn.co.uk/  -sha1 -days 3650 -key /var/lib/zentyal/conf/ssl/ssl.key > /var/lib/zentyal/conf/ssl/ssl.cert', 'chmod 0400 /var/lib/zentyal/conf/ssl/ssl.cert') called at /usr/share/perl5/EBox/Sudo.pm line 153
EBox::Sudo::root('openssl req -new -x509 -batch -subj /CN=hsm-zen.hsm-ad.nnnnnnnnnnnnnnnn.co.uk.hsm-ad.nnnnnnnnnnnnnnnn.co.uk/  -sha1 -days 3650 -key /var/lib/zentyal/conf/ssl/ssl.key > /var/lib/zentyal/conf/ssl/ssl.cert', 'chmod 0400 /var/lib/zentyal/conf/ssl/ssl.cert') called at /usr/share/perl5/EBox/Util/Certificate.pm line 63
EBox::Util::Certificate::generateCert('/var/lib/zentyal/conf/ssl', '/var/lib/zentyal/conf/ssl/ssl.key', 1, 'hsm-zen.hsm-ad.nnnnnnnnnnnnnnnn.co.uk.hsm-ad.nnnnnnnnnnnnnnnn.co.uk') called at /usr/share/zentyal/create-certificate line 29
2022/11/25 19:29:17 ERROR> Sudo.pm:240 EBox::Sudo::_rootError - root command /usr/share/zentyal/change-hostname hsm-zen.hsm-ad.nnnnnnnnnnnnnnnn.co.uk hsm-ad.nnnnnnnnnnnnnnnn.co.uk failed.
Error output: problems making Certificate Request
 139645905614144:error:0D07A097:asn1 encoding routines:ASN1_mbstring_ncopy:string too long:../crypto/asn1/a_mbstr.c:107:maxsize=64

Command output: .
Exit value: 1 at root command /usr/share/zentyal/change-hostname hsm-zen.hsm-ad.nnnnnnnnnnnnnnnn.co.uk hsm-ad.nnnnnnnnnnnnnnnn.co.uk failed.
Error output: problems making Certificate Request
 139645905614144:error:0D07A097:asn1 encoding routines:ASN1_mbstring_ncopy:string too long:../crypto/asn1/a_mbstr.c:107:maxsize=64

Command output: .
Exit value: 1 at /usr/share/perl5/EBox/Sudo.pm line 240
EBox::Sudo::_rootError('/usr/bin/sudo -p sudo: /var/lib/zentyal/tmp/AxbV5gJLrX.cmd 2> /var/lib/zentyal/tmp/stderr', '/usr/share/zentyal/change-hostname hsm-zen.hsm-ad.nnnnnnnnnnnnnnnn.co.uk hsm-ad.nnnnnnnnnnnnnnnn.co.uk', 256, 'ARRAY(0x5647d2c38be0)', 'ARRAY(0x5647d022a258)') called at /usr/share/perl5/EBox/Sudo.pm line 210
EBox::Sudo::_root(1, '/usr/share/zentyal/change-hostname hsm-zen.hsm-ad.nnnnnnnnnnnnnnnn.co.uk hsm-ad.nnnnnnnnnnnnnnnn.co.uk') called at /usr/share/perl5/EBox/Sudo.pm line 153
EBox::Sudo::root('/usr/share/zentyal/change-hostname hsm-zen.hsm-ad.nnnnnnnnnnnnnnnn.co.uk hsm-ad.nnnnnnnnnnnnnnnn.co.uk') called at /usr/share/perl5/EBox/SysInfo.pm line 170
EBox::SysInfo::_setConf('EBox::SysInfo=HASH(0x5647d23237e0)') called at /usr/share/perl5/EBox/Module/Base.pm line 995
EBox::Module::Base::_regenConfig('EBox::SysInfo=HASH(0x5647d23237e0)') called at /usr/share/perl5/EBox/Module/Base.pm line 234
eval {...} at /usr/share/perl5/EBox/Module/Base.pm line 233
EBox::Module::Base::save('EBox::SysInfo=HASH(0x5647d23237e0)') called at /usr/share/zentyal/initial-setup line 56

It looks like a permission error of some kind?

I called the installation script from a user with sudoer rights and I'm pretty sure I used the sudo command.... I am starting to doubt myself now though!

In the meantime I created my own key and certificate, placed them in the /var/lib/zentyal/conf/ssl/ and modified /usr/share/zentyal/stubs/core/nginx.conf.mas around line 115 to look for them (rather than a .pem file)

Thanks

10
Installation and Upgrades / Fresh Install - Certificate Problem
« on: November 25, 2022, 08:59:17 pm »
Hi

O/S: Ubuntu 9.4.0-1ubuntu1~20.04.1
Zentyal: 7.0.5

I've been attempting to install Zentyal to a vanilla Linux instance using the following steps:-

sudo apt-get update
sudo apt dist-upgrade
wget https://zentyal.com/zentyal_installer.sh
sudo chmod u+x zentyal_installer.sh
sudo ./zentyal_installer.sh

Unfortunately I was unable to access the web admin page @ port 8443 so I started to look around.

In the var/log/nginx/error.log  I discovered the the following:-

Code: [Select]
2022/11/25 19:29:41 [emerg] 28204#28204: cannot load certificate "/var/lib/zentyal/conf/ssl/ssl.pem": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/var/lib/zentyal/conf/ssl/ssl.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)
2022/11/25 19:29:41 [emerg] 28246#28246: cannot load certificate "/var/lib/zentyal/conf/ssl/ssl.pem": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/var/lib/zentyal/conf/ssl/ssl.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)
2022/11/25 19:29:42 [emerg] 28278#28278: cannot load certificate "/var/lib/zentyal/conf/ssl/ssl.pem": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/var/lib/zentyal/conf/ssl/ssl.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)
2022/11/25 19:29:42 [emerg] 28312#28312: cannot load certificate "/var/lib/zentyal/conf/ssl/ssl.pem": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/var/lib/zentyal/conf/ssl/ssl.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)
2022/11/25 19:29:42 [emerg] 28331#28331: cannot load certificate "/var/lib/zentyal/conf/ssl/ssl.pem": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/var/lib/zentyal/conf/ssl/ssl.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)
2022/11/25 19:29:43 [emerg] 28359#28359: cannot load certificate "/var/lib/zentyal/conf/ssl/ssl.pem": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/var/lib/zentyal/conf/ssl/ssl.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)
2022/11/25 19:29:43 [emerg] 28360#28360: cannot load certificate "/var/lib/zentyal/conf/ssl/ssl.pem": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/var/lib/zentyal/conf/ssl/ssl.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)
2022/11/25 19:29:43 [emerg] 28362#28362: cannot load certificate "/var/lib/zentyal/conf/ssl/ssl.pem": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/var/lib/zentyal/conf/ssl/ssl.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)
Looking in the /var/lib/zentyal/conf/ssl/ there are only two files:-

Code: [Select]
drwx------ 2 root root 4096 Nov 25 19:29 .
drwxr-xr-x 5 ebox adm  4096 Nov 25 19:29 ..
-rw------- 1 root root    0 Nov 25 19:29 ssl.cert
-r-------- 1 root root 3243 Nov 25 19:29 ssl.key

There is NO .pem file and the .cert file is EMPTY? Consequently, nginx cannot start.

I presume I cannot combine the two into a .pem because the .cert is empty? So, since I am evaluating Zentyal, can I create my own self-signed cert/keys and insert them here? Or is there an easier fix?

Thanks

11
Hi

Any ideas on this anyone? In my last attempt, I merely installed zentyal-network via apt-get, rebooted the instance and can no longer ssh into the system. I didn't even get round to logging in to webadmin and configuring the network module. Just the simple act of installing zentyal-network and rebooting the server kills ssh access?

I've run out of ideas....

12
Hi

In my latest attempt; the EC2 console shows the Ubuntu Instance has having-

A private IP of 172.31.64.11 on subnet-044be0caa9b23a78c
Eth0 has a Network ID of eni-0d901ed7d3a3d7a2f on the same subnet
An Elastic IP associated to the above interface with a resulting Public IP of 54.158.XXX.XX (I've previously tried associating the Elastic IP to the instance which did not resolve the issue)

I can connect to the instance with both Session Manager and EC2 Instance Connect

I then:-
Upgraded the distribution with sudo apt list-upgrade
Added the Zentyal Distros to the sources.list inc keys
Updated apt with sudo apt-get update
Installed ONLY zentyal-network with sudo apt-get install zentyal-network (leaving port at default of 8443)
Updated the password for user ubuntu
Removed ufw (just in case) with sudo apt-get purge ufw
Checked the IP Address with ip a   which shows 172.31.64.11/20
Checked the Gateway address with route -n  which is 172.31.64.1

I can then log into web admin where I:-

Set the interface for eth0 with a static address of 172.31.64.11 (external left unticked)
Added a gateway of 172.31.64.1
Added a DNS of 172.31.0.2 and 8.8.8.8  (checked the 172 address from ipconfig on a Windows DHCP client)
Saved the changes
Enabled the network module and saved the changes.

At this point :-
webadmin is still responsive
EC2 Instance Connect is still responsive
Session Manager fails to connect

I then reboot the system from webadmin. When the instance restarts I cannot login via any of the three methods?

Has anyone successfully installed Zentyal on EC2? Maybe the network constraints of AWS are just incompatible with it?

Thanks







13
Hi

Thanks for the update.

I've managed to get to that point i.e. where I can login to web admin and get to Zentyal's Network Module config. I've then set ETH0 as a static IP using the IP address and subnet mask as listed in the Ubuntu terminal with

Code: [Select]
ip a

In my case 172.31.92.23/20 is shown so I set zentyal using that IP address with a subnet mask off 255.255.240.0. This IP address has an Elastic address associated with it in the EC2 console.

Alas, as soon as I start the network module, connectivity is lost.

I've tried many different permutations .... maybe I need to use a different IP address to that Ubuntu has attached to its ETH0 (obviously with the same subnet)?

Thanks

14
Hi All

For those of you who, like me, do not have in-depth EC2/Linux knowledge, here's how I got the network module installed.....

Code: [Select]
sudo nano /etc/apt/sources.listnavigate to the end of the file and add the following line
Code: [Select]
deb http://packages.zentyal.org/zentyal 7.0 main extraCTRL + X and save the changes
reboot the instance, log back in and call
Code: [Select]
wget -q http://keys.zentyal.org/zentyal-7.0-packages-org.asc -O- | sudo apt-key add -then
Code: [Select]
sudo apt-get updateyou can then search for zentyal packages with
Code: [Select]
apt-cache search zentyalAmongst them you will see zentyal-network
Code: [Select]
sudo apt-get install zentyal-network


15
Ahh...  I see ... thanks .. I'm guessing there is a network module equivalent of :-

Code: [Select]
sudo apt-get install zenbuntu-desktop
Say,

Code: [Select]
sudo apt-get install zenbuntu-network
A quick

Code: [Select]
apt-cache search zentyal
reveals nothing?


There is a reference to extending the apt repositories with zentyal but I can't help but think it's well out-of-date? i.e.

deb http://archive.zentyal.org/zentyal <zentyal-version> main extra   

as that directory doesn't seem to exist?

Thanks


Pages: [1] 2