Author Topic: [SOLVED] Zentyal 3.3 and OpenChange  (Read 7744 times)

Gilberto Ferreira

  • Zen Hero
  • *****
  • Posts: 516
  • Karma: +12/-1
    • View Profile
[SOLVED] Zentyal 3.3 and OpenChange
« on: October 11, 2013, 08:42:55 pm »
Hello all....


I tried used Zentyal 3.3 and Openchange in a fresh installation...
The system work pretty well... But when I tried add some user, I'm able to see the user in the Samba4 base using pdbedit -L but not in the webinterface... Like the image I send...

Some one have the same issu???

Thanks
« Last Edit: December 02, 2013, 10:58:59 am by jkerihuel »

jkerihuel

  • Zentyal Staff
  • Zen Warrior
  • *****
  • Posts: 152
  • Karma: +18/-3
    • View Profile
Re: Zentyal 3.3 and OpenChange
« Reply #1 on: October 12, 2013, 04:45:53 pm »
Hello all....


I tried used Zentyal 3.3 and Openchange in a fresh installation...
The system work pretty well... But when I tried add some user, I'm able to see the user in the Samba4 base using pdbedit -L but not in the webinterface... Like the image I send...

Some one have the same issu???

Thanks

Hi Gilberto,

I am a similar 3.3 Zentyal server (3.2 upgraded) and I am not able to reproduce the issue you encounter.

I have tried adding users through:
  • Web interface
  • Command-Line with samba-tool utility

In both cases users appear properly in the web interface and can be managed from there. If you add the user directly through the command-line as in the example below, does it show up in the interface?

Code: [Select]
# samba-tool user add foobar --surname=Bar --given-name=Foo --mial-address=foobar@zentyal-domain.lan --description="John Doe of Unix World"

Finally, can you double check your 3.3 system is up to date:
Code: [Select]
sudo apt-get update
sudo apt-get dist-upgrade

Kind Regards,
Julien
Twitter: http://twitter.com/jkerihuel
Key fingerprint = 08BA 50B1 9EFF 8E1E FB4A  24FA B2A9 D5F3 9624 1CC2

Gilberto Ferreira

  • Zen Hero
  • *****
  • Posts: 516
  • Karma: +12/-1
    • View Profile
Re: Zentyal 3.3 and OpenChange
« Reply #2 on: October 12, 2013, 04:57:47 pm »
Well...

I'll try it again... First time I just upgrade from 3.2 to 3.3...
Now I performe a fresh installation, but I do not add any user yet... Today is holiday here in Brazil... :)

I'll try it later and keep you posted...

Thanks a lot...

Gilberto Ferreira

  • Zen Hero
  • *****
  • Posts: 516
  • Karma: +12/-1
    • View Profile
Re: Zentyal 3.3 and OpenChange
« Reply #3 on: October 12, 2013, 08:53:09 pm »
Hi Julien

I try everything from scratch, but when I try to add an user, look what happen:

2013/10/12 15:49:14 INFO> SambaLdapUser.pm:210 EBox::SambaLdapUser::__ANON__ - Aborted User creation, removing from samba
2013/10/12 15:50:26 INFO> SambaLdapUser.pm:181 EBox::SambaLdapUser::_preAddUser - Creating user 'gilberto.ferreira'
2013/10/12 15:50:33 INFO> SambaLdapUser.pm:231 EBox::SambaLdapUser::_addUser - Setting 'gilberto.ferreira' password
2013/10/12 15:50:34 INFO> SambaLdapUser.pm:256 EBox::SambaLdapUser::_addUser - Setting home network drive for user 'gilberto.ferreira'
2013/10/12 15:50:37 INFO> SambaLdapUser.pm:262 EBox::SambaLdapUser::_addUser - Enabling 'gilberto.ferreira' account
2013/10/12 15:50:39 INFO> SambaLdapUser.pm:561 EBox::SambaLdapUser::_membersToSamba - Adding member 'TI/gilberto.ferreira' to Samba group 'TI'
2013/10/12 15:50:41 INFO> SambaLdapUser.pm:549 EBox::SambaLdapUser::_membersToSamba - Removing member 'TI/Gilberto Ferreira' from Samba group 'TI'
2013/10/12 15:50:44 ERROR> Base.pm:607 EBox::CGI::Base::setErrorFromException - Can't call method "dn" on an undefined value at /usr/share/perl5/EBox/Users/LdapObject.pm line 313.

2013/10/12 15:51:14 INFO> Group.pm:252 EBox::Samba::Group::updateZentyal - Updating zentyal group 'TI'
2013/10/12 15:51:16 ERROR> Base.pm:607 EBox::CGI::Base::setErrorFromException - Can't call method "dn" on an undefined value at /usr/share/perl5/EBox/Users/LdapObject.pm line 313.

And now I can see the user that I add!!!

So odd!!!

Gilberto Ferreira

  • Zen Hero
  • *****
  • Posts: 516
  • Karma: +12/-1
    • View Profile
Re: Zentyal 3.3 and OpenChange
« Reply #4 on: October 12, 2013, 09:13:12 pm »
There's another weird thing happen...

When I try add an user, the web interface do not show me any action... any notification that user is under creation or not...
I meant... It was better that webadmin show some notification... just to warnning the user admin that something happen...
Like this:


Gilberto Ferreira

  • Zen Hero
  • *****
  • Posts: 516
  • Karma: +12/-1
    • View Profile
Re: Zentyal 3.3 and OpenChange
« Reply #5 on: October 12, 2013, 09:22:16 pm »
Now... I try insert other user, named luis.felipe...
Look:

2013/10/12 16:17:11 INFO> SambaLdapUser.pm:181 EBox::SambaLdapUser::_preAddUser - Creating user 'luis.felipe'
2013/10/12 16:17:17 INFO> SambaLdapUser.pm:231 EBox::SambaLdapUser::_addUser - Setting 'luis.felipe' password
2013/10/12 16:17:18 INFO> SambaLdapUser.pm:256 EBox::SambaLdapUser::_addUser - Setting home network drive for user 'luis.felipe'
2013/10/12 16:17:21 INFO> SambaLdapUser.pm:262 EBox::SambaLdapUser::_addUser - Enabling 'luis.felipe' account
2013/10/12 16:17:23 INFO> SambaLdapUser.pm:549 EBox::SambaLdapUser::_membersToSamba - Removing member 'Users/Gilberto Ferreira' from Samba group 'TI'
2013/10/12 16:17:23 INFO> SambaLdapUser.pm:561 EBox::SambaLdapUser::_membersToSamba - Adding member 'Users/gilberto.ferreira' to Samba group 'TI'
2013/10/12 16:17:23 INFO> SambaLdapUser.pm:561 EBox::SambaLdapUser::_membersToSamba - Adding member 'TI/luis.felipe' to Samba group 'TI'
2013/10/12 16:17:43 INFO> s4sync:161 main:: - Deleting Zentyal user 'luis.felipe'
2013/10/12 16:17:43 INFO> SambaLdapUser.pm:549 EBox::SambaLdapUser::_membersToSamba - Removing member 'Users/Gilberto Ferreira' from Samba group 'TI'
2013/10/12 16:17:43 INFO> SambaLdapUser.pm:549 EBox::SambaLdapUser::_membersToSamba - Removing member 'TI/Luis Felipe' from Samba group 'TI'
2013/10/12 16:17:43 INFO> SambaLdapUser.pm:561 EBox::SambaLdapUser::_membersToSamba - Adding member 'Users/gilberto.ferreira' to Samba group 'TI'
2013/10/12 16:17:49 INFO> Group.pm:252 EBox::Samba::Group::updateZentyal - Updating zentyal group 'TI'
2013/10/12 16:17:49 INFO> Group.pm:342 EBox::Samba::Group::_membersToZentyal - Adding member 'TI/Luis Felipe' to Zentyal group 'TI'
2013/10/12 16:17:49 ERROR> Group.pm:358 EBox::Samba::Group::_membersToZentyal - Cannot add member 'TI/Luis Felipe' to Zentyal group 'TI' because it's not a known object.
2013/10/12 16:18:21 INFO> Group.pm:252 EBox::Samba::Group::updateZentyal - Updating zentyal group 'TI'

I add luis.felipe under Users, and everything is ok.
After that, I try insert other user, named gilberto.ferreira, under TI OU...
But both users desappears in webadmin... :(
So I delete luis.felipe and both, luis.felipe and gilberto.ferreira desappears in webadmin!!!!

But when I use pdbedit -L the user luis.felipe is still there!!!


This is the packages installed:

ii  zentyal                               3.2                                     Zentyal - Core metapackage
ii  zentyal-ca                            3.3~26                                  Zentyal - Certification Authority
ii  zentyal-common                        3.3~26                                  Zentyal - Common Library
ii  zentyal-core                          3.3~27                                  Zentyal - Core
ii  zentyal-dhcp                          3.3~26                                  Zentyal - DHCP Service
ii  zentyal-dns                           3.3~27                                  Zentyal - DNS Service
ii  zentyal-firewall                      3.3~26                                  Zentyal - Firewall
ii  zentyal-mail                          3.3~27                                  Zentyal - Mail Service
ii  zentyal-monitor                       3.3~26                                  Zentyal - Monitor
ii  zentyal-network                       3.3~27                                  Zentyal - Network Configuration
ii  zentyal-ntp                           3.3~26                                  Zentyal - NTP Service
ii  zentyal-objects                       3.3~26                                  Zentyal - Network Objects
ii  zentyal-openchange                    3.3~27                                  Zentyal - OpenChange server
ii  zentyal-openvpn                       3.3~26                                  Zentyal - VPN Service
ii  zentyal-remoteservices                3.3~26                                  Zentyal - Cloud Client
ii  zentyal-samba                         3.3~27                                  Zentyal - File Sharing and Domain Services
ii  zentyal-services                      3.3~26                                  Zentyal - Network Services
ii  zentyal-software                      3.3~26                                  Zentyal - Software Management
ii  zentyal-users                         3.3~27                                  Zentyal - Users and Computers
ii  zentyal-webserver                     3.3~26                                  Zentyal - Web Server

rsrs..... So odd man!!!
« Last Edit: October 12, 2013, 09:24:16 pm by Gilberto Ferreira »

jkerihuel

  • Zentyal Staff
  • Zen Warrior
  • *****
  • Posts: 152
  • Karma: +18/-3
    • View Profile
Re: Zentyal 3.3 and OpenChange
« Reply #6 on: October 16, 2013, 12:40:40 pm »
Hi Gilberto,

I'll check with the Q/A team if we schedule a time to reproduce your scenario locally.

Any information you could send (privately or directly appended to this thread) that would help us reproduce your environment, steps and moves would be really appreciated. You alreayd provided several information, I just want to make sure that there is no missing steps or anything.

Best Regards,
Julien.
Twitter: http://twitter.com/jkerihuel
Key fingerprint = 08BA 50B1 9EFF 8E1E FB4A  24FA B2A9 D5F3 9624 1CC2

Gilberto Ferreira

  • Zen Hero
  • *****
  • Posts: 516
  • Karma: +12/-1
    • View Profile
Re: Zentyal 3.3 and OpenChange
« Reply #7 on: October 16, 2013, 02:11:51 pm »
Hello again Julien...

My scenario is simply...

I have a Zentyal installation into a Oracle VirtualBox, with 1 GB of memory and 8 GB of Hard Disk.
Two NIC's: One external and One Internal.

First of all, I have used a ISO to install Zentyal 3.2. Then so quickly as possible, after boot the system, I change source.list to 3.3 and I make an update/dist-upgrade and rebooted the system...
After that, I installed some packages:

  • Network
  • DHCP
  • DNS
  • Firewall
  • File and Share
  • Users and Groups
And finally
  • OpenChange


Of course, others packs are installed too, 'cause it have dependencies...
After that, I adjusted the system, to fit my network: set the home.lan to DNS and SAMBA domain.... and reboot the system...
I provisioning Openchange, too...

So, I tried add some users... And when I tried add it, I get the error report in previously sent logs...
The user doesn't appears in web interface.... But when I used pdbedit -L they are there!

I hope this can help you and your Q/A Team found something...

Note:

I try it right now, and get the errors log's again:

Here the system create the user:

2013/10/16 09:41:35 INFO> SambaLdapUser.pm:181 EBox::SambaLdapUser::_preAddUser - Creating user 'gilberto.ferreira'

Setting password:

2013/10/16 09:41:42 INFO> SambaLdapUser.pm:231 EBox::SambaLdapUser::_addUser - Setting 'gilberto.ferreira' password

Adjust the home driver:

2013/10/16 09:41:44 INFO> SambaLdapUser.pm:256 EBox::SambaLdapUser::_addUser - Setting home network drive for user 'gilberto.ferreira'

Enable the user:

2013/10/16 09:41:46 INFO> SambaLdapUser.pm:262 EBox::SambaLdapUser::_addUser - Enabling 'gilberto.ferreira' account

Adding the user to TI Group:

2013/10/16 09:41:48 INFO> SambaLdapUser.pm:561 EBox::SambaLdapUser::_membersToSamba - Adding member 'TI/gilberto.ferreira' to Samba group 'TI'

And, the strange part, delete the user!!! Without any intervation....

2013/10/16 09:42:08 INFO> s4sync:161 main:: - Deleting Zentyal user 'gilberto.ferreira'
2013/10/16 09:42:11 INFO> SambaLdapUser.pm:549 EBox::SambaLdapUser::_membersToSamba - Removing member 'TI/Gilberto Ferreira' from Samba group 'TI'
2013/10/16 09:42:12 INFO> Group.pm:252 EBox::Samba::Group::updateZentyal - Updating zentyal group 'TI'
2013/10/16 09:42:13 INFO> Group.pm:342 EBox::Samba::Group::_membersToZentyal - Adding member 'TI/Gilberto Ferreira' to Zentyal group 'TI'
2013/10/16 09:42:13 ERROR> Group.pm:358 EBox::Samba::Group::_membersToZentyal - Cannot add member 'TI/Gilberto Ferreira' to Zentyal group 'TI' because it's not a known object

BUT!!!! If i search the user with pdbedit -L, he is there!

 pdbedit -L
ldb_wrap open of idmap.ldb
ADSERVER$:4294967295:
mail-adserver:4294967295:
gilberto.ferreira:4294967295:
Administrator:0:
dns-adserver:3000016:
krbtgt:3000017:
nobody:65534:nobody



Regards...
« Last Edit: October 16, 2013, 02:48:30 pm by Gilberto Ferreira »

Gilberto Ferreira

  • Zen Hero
  • *****
  • Posts: 516
  • Karma: +12/-1
    • View Profile
Re: Zentyal 3.3 and OpenChange
« Reply #8 on: October 16, 2013, 03:13:21 pm »
I make a dist-upgrade today, and now I run with zentyal-samba, zentyal-core and zentyal-users 3.3~29...

Before this packages was 3.3~27....

But the errors still remain:

2013/10/16 10:10:24 INFO> SambaLdapUser.pm:181 EBox::SambaLdapUser::_preAddUser - Creating user 'gilberto.ferreira'
2013/10/16 10:10:31 INFO> SambaLdapUser.pm:231 EBox::SambaLdapUser::_addUser - Setting 'gilberto.ferreira' password
2013/10/16 10:10:32 INFO> SambaLdapUser.pm:256 EBox::SambaLdapUser::_addUser - Setting home network drive for user 'gilberto.ferreira'
2013/10/16 10:10:35 INFO> SambaLdapUser.pm:262 EBox::SambaLdapUser::_addUser - Enabling 'gilberto.ferreira' account
2013/10/16 10:10:37 INFO> SambaLdapUser.pm:561 EBox::SambaLdapUser::_membersToSamba - Adding member 'TI/gilberto.ferreira' to Samba group 'TI'
2013/10/16 10:10:40 INFO> s4sync:161 main:: - Deleting Zentyal user 'gilberto.ferreira'
2013/10/16 10:10:41 INFO> SambaLdapUser.pm:549 EBox::SambaLdapUser::_membersToSamba - Removing member 'TI/Gilberto Ferreira' from Samba group 'TI'
2013/10/16 10:11:13 INFO> Group.pm:252 EBox::Samba::Group::updateZentyal - Updating zentyal group 'TI'


Cheers

Gilberto Ferreira

  • Zen Hero
  • *****
  • Posts: 516
  • Karma: +12/-1
    • View Profile
Re: Zentyal 3.3 and OpenChange
« Reply #9 on: October 16, 2013, 03:20:32 pm »
Just to update the Saga! rs

I remove openchange and still get the same error:

2013/10/16 10:18:59 INFO> SambaLdapUser.pm:181 EBox::SambaLdapUser::_preAddUser - Creating user 'gilberto.ferreira'
2013/10/16 10:19:10 INFO> SambaLdapUser.pm:231 EBox::SambaLdapUser::_addUser - Setting 'gilberto.ferreira' password
2013/10/16 10:19:12 INFO> SambaLdapUser.pm:256 EBox::SambaLdapUser::_addUser - Setting home network drive for user 'gilberto.ferreira'
2013/10/16 10:19:16 INFO> SambaLdapUser.pm:262 EBox::SambaLdapUser::_addUser - Enabling 'gilberto.ferreira' account
2013/10/16 10:19:19 INFO> s4sync:161 main:: - Deleting Zentyal user 'gilberto.ferreira'
2013/10/16 10:19:20 INFO> SambaLdapUser.pm:561 EBox::SambaLdapUser::_membersToSamba - Adding member 'TI/gilberto.ferreira' to Samba group 'TI'
2013/10/16 10:19:24 INFO> SambaLdapUser.pm:549 EBox::SambaLdapUser::_membersToSamba - Removing member 'TI/Gilberto Ferreira' from Samba group 'TI'
2013/10/16 10:19:58 INFO> Group.pm:252 EBox::Samba::Group::updateZentyal - Updating zentyal group 'TI'

Gilberto Ferreira

  • Zen Hero
  • *****
  • Posts: 516
  • Karma: +12/-1
    • View Profile
Re: Zentyal 3.3 and OpenChange
« Reply #10 on: October 16, 2013, 03:46:46 pm »
I remove both zentyal-users and zentyal-samba, but still get errror:

2013/10/16 10:45:19 INFO> SambaLdapUser.pm:181 EBox::SambaLdapUser::_preAddUser - Creating user 'gilberto.ferreira'
2013/10/16 10:45:24 INFO> SambaLdapUser.pm:231 EBox::SambaLdapUser::_addUser - Setting 'gilberto.ferreira' password
2013/10/16 10:45:26 INFO> SambaLdapUser.pm:256 EBox::SambaLdapUser::_addUser - Setting home network drive for user 'gilberto.ferreira'
2013/10/16 10:45:29 INFO> SambaLdapUser.pm:262 EBox::SambaLdapUser::_addUser - Enabling 'gilberto.ferreira' account
2013/10/16 10:45:31 INFO> SambaLdapUser.pm:561 EBox::SambaLdapUser::_membersToSamba - Adding member 'TI/gilberto.ferreira' to Samba group 'TI'
2013/10/16 10:45:33 WARN> OU.pm:98 EBox::Samba::OU::updateZentyal - updateZentyal called in OU OU=TI,DC=home,DC=lan. No implemented editables changes in OU
2013/10/16 10:45:33 INFO> s4sync:161 main:: - Deleting Zentyal user 'gilberto.ferreira'
2013/10/16 10:45:34 INFO> SambaLdapUser.pm:549 EBox::SambaLdapUser::_membersToSamba - Removing member 'TI/Gilberto Ferreira' from Samba group 'TI'
2013/10/16 10:45:35 INFO> Group.pm:252 EBox::Samba::Group::updateZentyal - Updating zentyal group 'TI'
2013/10/16 10:45:35 INFO> Group.pm:342 EBox::Samba::Group::_membersToZentyal - Adding member 'TI/Gilberto Ferreira' to Zentyal group 'TI'
2013/10/16 10:45:35 ERROR> Group.pm:358 EBox::Samba::Group::_membersToZentyal - Cannot add member 'TI/Gilberto Ferreira' to Zentyal group 'TI' because it's not a known object.
2013/10/16 10:46:06 INFO> Group.pm:252 EBox::Samba::Group::updateZentyal - Updating zentyal group 'TI'

Gilberto Ferreira

  • Zen Hero
  • *****
  • Posts: 516
  • Karma: +12/-1
    • View Profile
Re: Zentyal 3.3 and OpenChange
« Reply #11 on: October 17, 2013, 12:03:11 am »
Hello again

I do a fresh installation with Zentyal 3.2.
I install users & groups, File Sharing, and add one user, called gilberto.ferreira (it's me! =) )

So, alter alter source.list, remove 3.2 and set to 3.3.
After upgrade the system, I notice that 3.3 delete the user that I previously add!

2013/10/16 18:57:03 INFO> Service.pm:985 EBox::Module::Service::restartService - Restarting service for module: samba
2013/10/16 18:57:20 INFO> Service.pm:985 EBox::Module::Service::restartService - Restarting service for module: webadmin
2013/10/16 18:57:24 INFO> Service.pm:985 EBox::Module::Service::restartService - Restarting service for module: logs
2013/10/16 18:57:24 INFO> Service.pm:985 EBox::Module::Service::restartService - Restarting service for module: events
2013/10/16 18:57:53 INFO> s4sync:161 main:: - Deleting Zentyal user 'gilberto.ferreira'
2013/10/16 18:57:54 INFO> SambaLdapUser.pm:549 EBox::SambaLdapUser::_membersToSamba - Removing member 'TI/Gilberto Ferreira' from Samba group 'TI'
2013/10/16 18:58:28 INFO> Group.pm:252 EBox::Samba::Group::updateZentyal - Updating zentyal group 'TI'

I can't understand such behavior!!

Now, any other that user that I add, will be delete by the system!

Please, can you fix this problem???? Thanks

Gilberto Ferreira

  • Zen Hero
  • *****
  • Posts: 516
  • Karma: +12/-1
    • View Profile
Re: Zentyal 3.3 and OpenChange
« Reply #12 on: October 17, 2013, 12:22:57 am »
I think I figure out what happen here...

I create another user, called Teste, and set this user to any group, and create it under Users OU.
Now, user was normally created... It's still there!

BUT! When I try to create a user under TI OU that I previously create, Zentyal simple delete the user!

So, that is the resume:

Create an user under a bultin OU: works!

Create an user under a create OU: doesn't works!

I try another thing here: I create a OU called Directory and try add an user called Paul, under that OU.
The user created, but after 15 seconds, the user seems to be delete:

2013/10/16 19:17:58 INFO> SambaLdapUser.pm:181 EBox::SambaLdapUser::_preAddUser - Creating user 'paul'
2013/10/16 19:18:01 INFO> SambaLdapUser.pm:231 EBox::SambaLdapUser::_addUser - Setting 'paul' password
2013/10/16 19:18:02 INFO> SambaLdapUser.pm:256 EBox::SambaLdapUser::_addUser - Setting home network drive for user 'paul'
2013/10/16 19:18:04 INFO> SambaLdapUser.pm:262 EBox::SambaLdapUser::_addUser - Enabling 'paul' account
2013/10/16 19:18:19 INFO> s4sync:161 main:: - Deleting Zentyal user 'paul'


First screenshot, show the user create under Directory OU and the second, is the same screen, but after an F5 refresh...

So weird!...

Gilberto Ferreira

  • Zen Hero
  • *****
  • Posts: 516
  • Karma: +12/-1
    • View Profile
Re: Zentyal 3.3 and OpenChange
« Reply #13 on: October 17, 2013, 03:28:51 pm »
Some can help!!!!

jkerihuel

  • Zentyal Staff
  • Zen Warrior
  • *****
  • Posts: 152
  • Karma: +18/-3
    • View Profile
Re: Zentyal 3.3 and OpenChange
« Reply #14 on: October 17, 2013, 04:06:38 pm »
Hi Gilberto,

As you are referring to different issues: failure with multi-OU while initially reporting about OpenChange, can you try with an OpenChange user from the default OU instead so we can close this ticket?

The multi-OU issue will be handled either in a different thread or preferably through a trac ticket directly.

Best Regards,
Julien.
Twitter: http://twitter.com/jkerihuel
Key fingerprint = 08BA 50B1 9EFF 8E1E FB4A  24FA B2A9 D5F3 9624 1CC2