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

Pages: [1]
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 https://zentyal.my.domain.com:443.  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 https://zentyal.my.domain.com$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?

2
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]
#!/usr/bin/perl
use strict;
use warnings;

use EBox;
use EBox::Global;

EBox::init();

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

$users->_loadSchemas();

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);
        $user->save();
        print "$username UID changed to $uidNumber\n";
    };
}

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

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

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

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]