Author Topic: Master/Slave Samba Shares and User Accounts  (Read 10548 times)

eboxbuggy

  • Zen Monk
  • **
  • Posts: 89
  • Karma: +0/-0
    • View Profile
Re: Master/Slave Samba Shares and User Accounts
« Reply #30 on: November 12, 2010, 01:55:14 pm »
Is there any documentation or post explaining what you mean by "master/slave".
This is something I always find a bit confusing with Zentyal, especially when looking at restrictions while running Samba, master, slave etc..
I'm not sure if this has been fixed but the previous limitation with EBOX is that if it is made a "master" LDAP server, all modules that would require username verification (samba, mail, etc) cannot be installed on the same system.

If we wanted samba, we had to create another EBOX to connect to the "master". We then ended up calling them "slaves".

In my case, my problems started when this slave tries to attach itself to the master. Giving a user admin access or configuring shares would cause nasty bugs ... why? I don't know ;D

Hopefully the latest 2.0.7 core & usersgroup would fix my problems. Will play around with it and report here if I get another error

eboxbuggy

  • Zen Monk
  • **
  • Posts: 89
  • Karma: +0/-0
    • View Profile
Re: Master/Slave Samba Shares and User Accounts
« Reply #31 on: November 12, 2010, 02:19:34 pm »
Did the same thing as before and borked my server ??? It just crashed ... I can't ssh to it anymore.
1) reinstall usersgroups on BOTH master & slave.
2) added new users/group on master
3) join slave to master
4) error

Code: [Select]
Trace
Failed to enable: Couldn't bind to LDAP server, result code: 49 at /usr/share/perl5/EBox/CGI/ServiceModule/ConfigureModuleController.pm line 74
EBox::CGI::ServiceModule::ConfigureModuleController::_process('EBox::CGI::ServiceModule::ConfigureModuleController=HASH(0x24...') called at /usr/share/perl5/EBox/CGI/Base.pm line 262
EBox::CGI::Base::run('EBox::CGI::ServiceModule::ConfigureModuleController=HASH(0x24...') called at /usr/share/perl5/EBox/CGI/Run.pm line 120
EBox::CGI::Run::run('EBox::CGI::Run', 'ServiceModule/ConfigureModuleController', 'EBox') called at /usr/share/ebox/cgi/ebox.cgi line 35
ModPerl::ROOT::ModPerl::Registry::usr_share_ebox_cgi_ebox_2ecgi::handler('Apache2::RequestRec=SCALAR(0x24f4d538)') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 204
eval {...} called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 204
ModPerl::RegistryCooker::run('ModPerl::Registry=HASH(0x24f76008)') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 170
ModPerl::RegistryCooker::default_handler('ModPerl::Registry=HASH(0x24f76008)') called at /usr/lib/perl5/ModPerl/Registry.pm line 31
ModPerl::Registry::handler('ModPerl::Registry', 'Apache2::RequestRec=SCALAR(0x24f4d538)') called at -e line 0
eval {...} called at -e line 0


exekias

  • Zentyal Staff
  • Zen Warrior
  • *****
  • Posts: 196
  • Karma: +21/-0
    • View Profile
    • The Big Bug Theory
Re: Master/Slave Samba Shares and User Accounts
« Reply #32 on: November 12, 2010, 07:25:29 pm »
Hi,

This seems an auth problem, are you sure you copied password string well? Try to paste it before in a visible field.

Best regards

eboxbuggy

  • Zen Monk
  • **
  • Posts: 89
  • Karma: +0/-0
    • View Profile
Re: Master/Slave Samba Shares and User Accounts
« Reply #33 on: November 13, 2010, 09:59:09 am »
Hello cperez,

So I did the whole thing again and again just to check if I could reproduce the error. Well, your update did fix the auth problem but found another one with Samba.

1) reinstall usersgroup on BOTH master & slave
2) added user1 and group1 on master
3) joined slave to master
4) JOY!  ;D
5) configured samba on slave
6) added user2, user3 on master
7) on slave, click on user1 EDIT = NO PROBLEM
#8 on slave, click user2 or user3 EDIT = ERROR

Code: [Select]
Trace
Unknown error at EBox::SambaLdapUser::_getAccountFlags Referral received at /usr/share/perl5/EBox/Ldap.pm line 699
EBox::Ldap::_errorOnLdap('Net::LDAP::Search=HASH(0x23571300)', 'HASH(0x22a57460)') called at /usr/share/perl5/EBox/Ldap.pm line 338
EBox::Ldap::search('EBox::Ldap=HASH(0x2259bea8)', 'HASH(0x22a57460)') called at /usr/share/perl5/EBox/SambaLdapUser.pm line 841
EBox::SambaLdapUser::_getAccountFlags('EBox::SambaLdapUser=HASH(0x23549468)', 'user2') called at /usr/share/perl5/EBox/SambaLdapUser.pm line 851
EBox::SambaLdapUser::_userSharing('EBox::SambaLdapUser=HASH(0x23549468)', 'user2') called at /usr/share/perl5/EBox/SambaLdapUser.pm line 434
EBox::SambaLdapUser::_userAddOns('EBox::SambaLdapUser=HASH(0x23549468)', 'user2') called at /usr/share/perl5/EBox/UsersAndGroups.pm line 2249
EBox::UsersAndGroups::allUserAddOns('EBox::UsersAndGroups=HASH(0x227a3728)', 'user2') called at /usr/share/perl5/EBox/CGI/UsersAndGroups/User.pm line 50
EBox::CGI::UsersAndGroups::User::_process('EBox::CGI::UsersAndGroups::User=HASH(0x23516bb8)') called at /usr/share/perl5/EBox/CGI/Base.pm line 262
EBox::CGI::Base::run('EBox::CGI::UsersAndGroups::User=HASH(0x23516bb8)') called at /usr/share/perl5/EBox/CGI/Run.pm line 120
EBox::CGI::Run::run('EBox::CGI::Run', 'UsersAndGroups/User', 'EBox') called at /usr/share/ebox/cgi/ebox.cgi line 35
ModPerl::ROOT::ModPerl::Registry::usr_share_ebox_cgi_ebox_2ecgi::handler('Apache2::RequestRec=SCALAR(0x23571350)') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 204
eval {...} called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 204
ModPerl::RegistryCooker::run('ModPerl::Registry=HASH(0x2353a7c8)') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 170
ModPerl::RegistryCooker::default_handler('ModPerl::Registry=HASH(0x2353a7c8)') called at /usr/lib/perl5/ModPerl/Registry.pm line 31
ModPerl::Registry::handler('ModPerl::Registry', 'Apache2::RequestRec=SCALAR(0x23571350)') called at -e line 0
eval {...} called at -e line 0
« Last Edit: November 13, 2010, 10:02:45 am by eboxbuggy »

eboxbuggy

  • Zen Monk
  • **
  • Posts: 89
  • Karma: +0/-0
    • View Profile
Re: Master/Slave Samba Shares and User Accounts
« Reply #34 on: November 13, 2010, 10:14:04 am »
same thing happens when I add a new group. group2 then EDIT it on slave
Code: [Select]
Trace
Unknown error at EBox::SambaLdapUser::sharingName Referral received at /usr/share/perl5/EBox/Ldap.pm line 699
EBox::Ldap::_errorOnLdap('Net::LDAP::Search=HASH(0x234ffe80)', 'HASH(0x22a565c0)') called at /usr/share/perl5/EBox/Ldap.pm line 338
EBox::Ldap::search('EBox::Ldap=HASH(0x2259bea8)', 'HASH(0x22a565c0)') called at /usr/share/perl5/EBox/SambaLdapUser.pm line 736
EBox::SambaLdapUser::sharingName('EBox::SambaLdapUser=HASH(0x2372ef98)', 'group2') called at /usr/share/perl5/EBox/SambaLdapUser.pm line 633
EBox::SambaLdapUser::_groupSharing('EBox::SambaLdapUser=HASH(0x2372ef98)', 'group2') called at /usr/share/perl5/EBox/SambaLdapUser.pm line 459
EBox::SambaLdapUser::_groupAddOns('EBox::SambaLdapUser=HASH(0x2372ef98)', 'group2') called at /usr/share/perl5/EBox/UsersAndGroups.pm line 2281
EBox::UsersAndGroups::allGroupAddOns('EBox::UsersAndGroups=HASH(0x227a3728)', 'group2') called at /usr/share/perl5/EBox/CGI/UsersAndGroups/Group.pm line 51
EBox::CGI::UsersAndGroups::Group::_process('EBox::CGI::UsersAndGroups::Group=HASH(0x236a3c60)') called at /usr/share/perl5/EBox/CGI/Base.pm line 262
EBox::CGI::Base::run('EBox::CGI::UsersAndGroups::Group=HASH(0x236a3c60)') called at /usr/share/perl5/EBox/CGI/Run.pm line 120
EBox::CGI::Run::run('EBox::CGI::Run', 'UsersAndGroups/Group', 'EBox') called at /usr/share/ebox/cgi/ebox.cgi line 35
ModPerl::ROOT::ModPerl::Registry::usr_share_ebox_cgi_ebox_2ecgi::handler('Apache2::RequestRec=SCALAR(0x23711260)') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 204
eval {...} called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 204
ModPerl::RegistryCooker::run('ModPerl::Registry=HASH(0x23727330)') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 170
ModPerl::RegistryCooker::default_handler('ModPerl::Registry=HASH(0x23727330)') called at /usr/lib/perl5/ModPerl/Registry.pm line 31
ModPerl::Registry::handler('ModPerl::Registry', 'Apache2::RequestRec=SCALAR(0x23711260)') called at -e line 0
eval {...} called at -e line 0

One thing I noticed again was that master had some pending operations listed ... will try my old fix to see if it will work

eboxbuggy

  • Zen Monk
  • **
  • Posts: 89
  • Karma: +0/-0
    • View Profile
Re: Master/Slave Samba Shares and User Accounts
« Reply #35 on: November 13, 2010, 10:28:48 am »
Well ... deleting the pending operations didn't fix it for me this time:
http://forum.zentyal.org/index.php?topic=2968.msg13398#msg13398

It's an old bug from EBOX I really hope someone could fix this ;D

Can confirm also that new users are NOT created by samba.
« Last Edit: November 13, 2010, 10:59:29 am by eboxbuggy »

eboxbuggy

  • Zen Monk
  • **
  • Posts: 89
  • Karma: +0/-0
    • View Profile
Re: Master/Slave Samba Shares and User Accounts
« Reply #36 on: November 13, 2010, 03:40:36 pm »
started all over again but this time edit LDAP users on master without adding samba module on slave just to check if LDAP works

i'm still getting pending operations ... however if i check the users & groups on slave, they are updated ... even if i move around the users to different groups ... they will still get updated on slave ... ???

why have pending operations when the updates are pushed to slave? force sync doesn't do anything
ebox.log says this:
Code: [Select]
2010/11/13 22:34:24 DEBUG> SOAPClient.pm:108 EBox::SOAPClient::__ANON__ - 200 OK
2010/11/13 22:34:24 DEBUG> slave-sync:79 main::__ANON__ - Trying to run method updateGroup with param GROUP1 on slave HASH(0xa5b4e20) failed
2010/11/13 22:34:26 DEBUG> SOAPClient.pm:108 EBox::SOAPClient::__ANON__ - 200 OK
2010/11/13 22:34:26 DEBUG> slave-sync:79 main::__ANON__ - Trying to run method updateGroup with param GROUP4 on slave HASH(0xa5b4e20) failed
2010/11/13 22:35:05 DEBUG> SOAPClient.pm:108 EBox::SOAPClient::__ANON__ - 200 OK
2010/11/13 22:35:05 DEBUG> slave-sync:79 main::__ANON__ - Trying to run method updateGroup with param GROUP5 on slave HASH(0xab961c8) failed
2010/11/13 22:35:06 DEBUG> SOAPClient.pm:108 EBox::SOAPClient::__ANON__ - 200 OK

eboxbuggy

  • Zen Monk
  • **
  • Posts: 89
  • Karma: +0/-0
    • View Profile
Re: Master/Slave Samba Shares and User Accounts
« Reply #37 on: November 16, 2010, 03:46:34 pm »
:o
fixed it ...

note to self:
DO NOT FORGET to update /etc/hosts
« Last Edit: November 16, 2010, 05:45:03 pm by eboxbuggy »