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 - andreas-h

Pages: [1]
Installation and Upgrades / how to redirect http:// to zentyal webadmin
« on: December 09, 2015, 06:53:54 pm »
I'm on Zentyal 4.2.  I configured the webadmin interface to run on  I would like to create a redirect in the Nginx configuration, so that http://zentyal gets redirected to the webadmin interface.

In order to do this, I copied /usr/share/zentyal/stubs/core/nginx.conf.mas to  /etc/zentyal/stubs/core/nginx.conf.mas, and added the following section:

Code: [Select]
    server {
        listen 80;
        return 301$request_uri;

However, after restarting the webadmin via service zentyal webadmin restart, nginx is still not listening on port 80.  What am I doing wrong?

Directory and Authentication / How to set uidNumber
« on: December 08, 2015, 06:05:29 pm »
How can I explicitly set the uidNumber of a new user?  The web interface doesn't allow this.  So I searched around and found a Perl script, which I modified a bit:

Code: [Select]
use strict;
use warnings;

use EBox;
use EBox::Global;


my $global = EBox::Global->getInstance(1);
my $users = $global->modInstance('samba');


foreach my $user (@{$users->users()}) {
    my $username = $user->name();
    my $uidNumber = $user->uidNumber();
    print "$username :: $uidNumber\n";
    if ($username eq 'myusername') {
        $uidNumber = '1111';
    if ($uidNumber != $user->uidNumber()) {
        $user->set('uidNumber', $uidNumber);
        print "$username UID changed to $uidNumber\n";

my $prov = new EBox::Samba::Provision();

Now, first I create a user 'myusername' in the web interface.  If then I run the script once, I see the output

Code: [Select]
Administrator :: 2500
Guest :: 2501
myusername :: 2502
myusername UID changed to 1111

However, how can I verify this actually worked?  Because when I run the script again, the output looks like this:

Code: [Select]
Administrator :: 2500
Guest :: 2501

And this seems like the $users->users() list doesn't include myusername any more ...

Installation and Upgrades / Use external LDAP for authentication
« on: July 23, 2015, 07:23:23 pm »

I'm looking into deploying Zentyal for our working group. Our institute (of which the working group is a part) has its own LDAP server.

All members of our working group have an account on the institute's LDAP directory.

Is it possible to have Zentyal use the institute's LDAP for password authentication and possibly for UID lookup? If so, what do I need to do?

Pages: [1]