Author Topic: Users and Computers  (Read 2298 times)

holest

  • Zen Apprentice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Users and Computers
« on: November 15, 2013, 08:20:00 pm »
Hello!

I would like to ask, if its normal if i make something at Zentyal admin's "Users and Computers/Manage", like add users/ous/groups it's works great, but if i use dsa.msc (from windows) and i try to drag groups or ou-s or users, ou-s and groups disappears, users stay unchanged?
Is it a bug, if i add a user or group at computers, it's not appear at zentyal admin ui, but at dsa.msc (i know its not the place for them, but missclicked)?
Why i can't "drap and drop" groups/ou-s/users at zentyal admin ui?
I tryed "drag&drop dsa.msc" with sernet samba4 and it's worked there, but zentyal have much more options so i would much more like to use zentyal, if i can change the structure of ou-s and groups.

Thanks:
Holest

BrettonWoods

  • Guest
Re: Users and Computers
« Reply #1 on: November 15, 2013, 08:42:40 pm »
I have various users and groups. I have had problems with RSAT tools.
Deleting a group policy in RSAT has rendered Samba unusable.

The rule of thumb is if there is a Zentyal tool use the zentyal tool. I know its a pain to delete users and recreate them in another OU but there is no drag and drop.

The only thing I am using RSAT for is the group policy editor where there is no Zentyal tool.

Drag and drop would be great.

You should be able to use the RSAT user manager but I haven't just in case.

ap1821

  • Zen Monk
  • **
  • Posts: 72
  • Karma: +4/-0
    • View Profile
Re: Users and Computers
« Reply #2 on: November 18, 2013, 11:58:26 am »
I have a GPO which can not be deleted. Neither via sambatool or RSAT GPO editor. But group policy, that one GPO and samba works very well. For this reason I try not to create lots of unneccesary GPO's.
A known bug is that GPO stops working after creating a guest share.

I also use "Active Directory Users and Computers" to block user accounts, remove computers from domain etc. For adding/removing users, adding groups etc... I use Zentyal tools.
I am curious to know if it is possible to reset samba4/gpo's if it stops working? Or am I forced then to restore system from backup?
« Last Edit: November 18, 2013, 12:15:23 pm by ap1821 »

holest

  • Zen Apprentice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: Users and Computers
« Reply #3 on: November 18, 2013, 05:07:22 pm »
Can you tell me what you call "zentyal tool"? Do you mean the web gui of the zentyal?

Thanks:
Holest

ap1821

  • Zen Monk
  • **
  • Posts: 72
  • Karma: +4/-0
    • View Profile
Re: Users and Computers
« Reply #4 on: November 18, 2013, 10:44:28 pm »
Yes, Zentyal built-in web administrative GUI.

holest

  • Zen Apprentice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: Users and Computers
« Reply #5 on: November 22, 2013, 04:42:08 pm »
Thanks.

So if i want to upload ~200 users, i have to make it manually trough web gui one-by-one? Because i don't see any option at this perl script:

Code: [Select]
#!/usr/bin/perl

use strict;
use warnings;

use EBox;
use EBox::Users::User;

EBox::init();

my $parent = EBox::Users::User->defaultContainer();

open (my $USERS, 'users.csv');

while (my $line = <$USERS>) {
    chomp ($line);
    my ($username, $givenname, $surname, $password) = split(',', $line);
    EBox::Users::User->create(
    uid => $username,
        parent => $parent,
        givenname => $givenname,
        surname => $surname,
        password => $password
    );
}

close ($USERS);

1;

to set users organization unit or group?

Sorry this is my first time i use domain controller and i don't really understand it, can someone link me an easy to understand description about it?

I try to make something like this:

Code: [Select]
mydomain.com
----> Computers
dc.mydomain.com
----> Domain Controllers
----> Groups
group1
group2
group3
----> Users
------ ----> All Users Organization Unit
------ ------ ----> Admins OU
admin1
admin2
------ ------ ----> Users OU
------ ------ ------ ----> OU1
ou1 user1
ou1 user2
------ ------ ------ ------ ----> OU1a
ou1a user1
ou1a user2
------ ------ ------ ------ ----> OU1b
ou1b user1
ou1b user2
------ ------ ------ ----> OU2
ou2 user1
ou2 user2
------ ------ ------ ----> OU3
ou3 user1
ou3 user2

Because i cant move users from OU to OU i have to put users in the final place at OU-s.
Can someone link me his/her own structure please?

Thanks:
Holest

robb

  • Guest
Re: Users and Computers
« Reply #6 on: November 22, 2013, 05:09:55 pm »
The script you are referring to is from Zentyal 2.x branche. The script is not suitable for Zentyal 3.x with Samba4.
Unless you can moduify it yourself or write from scratch a script to add multiple users in 1 go, I am afraid you are stuck with adding them by hand.
My perl knowledge is next to nothing, so I can't help you out here... :-[

Besides that, as far I understood Zentyal Samba4 implementation, there is nothing available for multi OU support or moving accounts or devices from 1 OU to another.

It would be nice if we can get an update on this from Julien if and when the implementation for Multi OU support is planned.
« Last Edit: November 22, 2013, 05:13:58 pm by robb »

holest

  • Zen Apprentice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: Users and Computers
« Reply #7 on: November 23, 2013, 11:55:37 am »
Thanks for your answer!

The script you are referring to is from Zentyal 2.x branche. The script is not suitable for Zentyal 3.x with Samba4.
Unless you can moduify it yourself or write from scratch a script to add multiple users in 1 go, I am afraid you are stuck with adding them by hand.
My perl knowledge is next to nothing, so I can't help you out here... :-[
bah

Besides that, as far I understood Zentyal Samba4 implementation, there is nothing available for multi OU support or moving accounts or devices from 1 OU to another.
I don't really understand this. Non of thees functions works even in the payed version?

thanks:
Holest