I decided to start this topic because of some facts that have happened in the last few months:
The decision made by Inverse regarding SOGo.
The decision made by Nethesis to use WebTop as the main email groupware app on NS 7.
Samba4 Active Directory on NS 7.
There are a lot of discussions here about WebTop and NS but I think is better to split them in two main directions, based on how the users are authenticated:
by OpenLDAP
by Samba AD:
- locally
- remotely
Thus, we will have two distinct approaches, each with its peculiarities, at least during the first configuration.
Maybe I’m wrong and there is no reason to do this split.
Anyway, in this topic I will address the following situation: WebTop with Samba AD running locally.
This situation is pretty common for SOHO environment, when we have a single dedicated server (bare metal server).
I invite all who want to test or have tested this kind of configuration, to share their own experience or to rise issues.
Because today I made some tests with SOGo and I don’t want that the installation of the NS Beta2 to be altered, tomorrow I will do a new installation from scratch and I will begin the tests with WebTop and Samba AD.
After that, I created the user without password and I changed the password after, without issues.
The next user was created without issues, even I set the password during the process.
I’m not at the office now.
I will retest from scratch in the afternoon.
WebTop groupware (WebTop groupware)
package from Software center.
After I have launched the WebTop app from Status-> Application and I introduced the login credentials (Username: admin; Password: admin), the following error page has appeared, even if the server was rebooted (please see the attached print screen).
PS:
Is not the first time when I encountered this issue.
At those times, there were only simple tests to see how WebTop looks and I solved by reinstalling the NS. So, is not related to the “PTY” issue.
Sep 11, 2016 2:47:57 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [Start] in context with path [/webtop] threw exception [java.lang.NullPointerException] with root cause java.lang.NullPointerException
The database has not been created.
You should try to dig in the log when webtop was installed, the error should be inside the nethserver-webtop4-update event.
This is the scripts which creates the db:/etc/e-smith/events/actions/nethserver-webtop4-conf
there is a postgres function we have created for Nethesis to allow automatic deletion of a single user when that user is deleted from the entire system (ldap etc).
This function is written in plpgsql.
For this reason, the webtop initialization script of NethServer has sql code to ensure that this language is installed (via a “create language plpgsql”).
I bet there are times where postgres is already in use on the system and have plpgsql already installed, causing the error on that sql statement.
First, I don’t know what do you mean when you refer to “language”. Is about “programmer language” or about “language” as English, Italian, …
If is the last case, I always use English (US).
The PGSQL was installed by WebTop.
The installation of the WebTop was like I have described above.
Usually, when I have installed WebTop I had only one user created: Samba AD Administrator.
I will reinstall NS and WebTop from scratch, by this procedure:
Install NS 7b2 from scratch (bare-metal server).
Make all updates.
Edit the “Organizations contacts”.
Edit the “Self-signed certificate”.
Install the “Account provider: Samba Active Directory” package, from Software center.
admin-todo reminder on Dashboard for Administrator’s password: Change password for user administrator@test.abt.ro (first time, from “Nethesis,1234”)
Install Email (Email server and filter)
Install POP3 proxy (Intercept POP3 connections and scan messages for virtus and spam)
The FQDN of the server will be “pdc-ad.test.abt.ro”.
As I said, I intend to test this configuration as AiO Server.
The registrations for mail server (MX, …) are kept on an External Name Server.
I think that I must to create an alias: Configuration -> DNS -> Server alias -> Create New:mail.test.abt.ro. Is this correct?
If YES, when I must create this alias: before install WebTop, or after? (By me, doesn’t matter, but …)
It is the language used by the postgres store procedures.
It looks like some of install steps preceding Webtop, is already creating the plpgsql, and this is not a considered case by the NethServer Webtop install script.
Maybe @giacomo can find some way to run all the webtop install script without the “create language”, and create that in a separate script that is not blocking when failing?
Yes, I think this is the solution, just check that you have version 9 of Postgres.
In any case, just check it works on a bare machine where you didn’t install webtop yet.