Ticket #3976 (closed defect: worksforme)
When creating user: Unknown error at EBox::CaptivePortal::LdapUser::setQuota objectclass: value #0 invalid per syntax
| Reported by: | anonymous | Owned by: | jamor@… |
|---|---|---|---|
| Milestone: | 2.2.X | Component: | users |
| Severity: | major | Keywords: | |
| Cc: | karoly.madar@… |
Description (last modified by jamor@…) (diff)
while creating a new user, i am getting a error like this
"Unknown error at EBox::CaptivePortal::LdapUser::setQuota objectclass: value #0 invalid per syntax"
also the user and group tab showing that, the user is already exists while add the new user
Error
Unknown error at EBox::CaptivePortal::LdapUser::setQuota objectclass: value #0 invalid per syntax
Trace
Unknown error at EBox::CaptivePortal::LdapUser::setQuota objectclass: value #0 invalid per syntax at /usr/share/perl5/EBox/Ldap.pm line 701
EBox::Ldap::_errorOnLdap('Net::LDAP::Modify=HASH(0xbd828ac0)', 'HASH(0xbd81fa88)') called at /usr/share/perl5/EBox/Ldap.pm line 363
EBox::Ldap::modify('EBox::Ldap=HASH(0xbb58d9d0)', 'uid=cse,ou=Users,dc=zentyal', 'HASH(0xbd81fa88)') called at /usr/share/perl5/EBox/CaptivePortal/LdapUser.pm line 147
EBox::CaptivePortal::LdapUser::setQuota('EBox::CaptivePortal::LdapUser=HASH(0xbc9c0000)', 'cse', 0) called at /usr/share/perl5/EBox/CaptivePortal/LdapUser.pm line 236
EBox::CaptivePortal::LdapUser::_addUser('EBox::CaptivePortal::LdapUser=HASH(0xbc9c0000)', 'cse', 123456) called at /usr/share/perl5/EBox/UsersAndGroups.pm line 887
EBox::UsersAndGroups::initUser('EBox::UsersAndGroups=HASH(0xbb9b5440)', 'cse', 123456) called at /usr/share/perl5/EBox/UsersAndGroups.pm line 1077
EBox::UsersAndGroups::addUser('EBox::UsersAndGroups=HASH(0xbb9b5440)', 'HASH(0xbd82da98)') called at /usr/share/perl5/EBox/CGI/UsersAndGroups/AddUser.pm line 77
EBox::CGI::UsersAndGroups::AddUser::_process('EBox::CGI::UsersAndGroups::AddUser=HASH(0xbd7936a0)') called at /usr/share/perl5/EBox/CGI/Base.pm line 275
EBox::CGI::Base::run('EBox::CGI::UsersAndGroups::AddUser=HASH(0xbd7936a0)') called at /usr/share/perl5/EBox/CGI/Run.pm line 129
EBox::CGI::Run::run('EBox::CGI::Run', 'UsersAndGroups/AddUser', 'EBox') called at /usr/share/zentyal/cgi/ebox.cgi line 34
ModPerl::ROOT::ModPerl::Registry::usr_share_zentyal_cgi_ebox_2ecgi::handler('Apache2::RequestRec=SCALAR(0xbd73f2a0)') 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(0xbd7cba28)') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 170
ModPerl::RegistryCooker::default_handler('ModPerl::Registry=HASH(0xbd7cba28)') called at /usr/lib/perl5/ModPerl/Registry.pm line 31
ModPerl::Registry::handler('ModPerl::Registry', 'Apache2::RequestRec=SCALAR(0xbd73f2a0)') called at -e line 0
eval {...} called at -e line 0
Attachments
Change History
Changed 14 months ago by anonymous
-
attachment
zentyal.log
added
comment:1 Changed 14 months ago by jamor@…
- Severity changed from normal to major
- Summary changed from Bug report from Zentyal Server to When creating user: Unknown error at EBox::CaptivePortal::LdapUser::setQuota objectclass: value #0 invalid per syntax
- Component changed from base to captiveportal
- Description modified (diff)
- Reporter New user creation error deleted
comment:2 Changed 14 months ago by jamor@…
- Status changed from new to closed
- Resolution set to fixed
Fixed in [551c91a]
To hotfix:
- Grab the new version of LdapUser?.pm from http://git.zentyal.org/zentyal.git/blob_plain/551c91a29f7b823a66e9aed9d00d6dca9a726de3:/main/captiveportal/src/EBox/CaptivePortal/LdapUser.pm
- Use it to replace /usr/share/perl5/EBox/CaptivePortal/LdapUser.pm
- Execute 'sudo /etc/init.d/zentyal apache restart'
The changeset also includes improvement to make less confusing the set quota dialog for users when bandwidth limitation is disabled. This changes span into several files and are not needed for the main error. If you want them patch the server with the whole changeset.
Regards,
Javier
comment:3 Changed 9 months ago by karoly.madar@…
- Status changed from closed to reopened
- Resolution fixed deleted
- Component changed from captiveportal to users
- Severity changed from major to critical
While I am creating a new user, getting the same error above. Until a month ago it worked well. After the new user created there is no sambasamaccount objectclass on newly created user in ldap. Captive portal and firewall module turned on or off does nothing. With old accounts everything is fine.
comment:4 follow-up: ↓ 5 Changed 9 months ago by jamor@…
- Status changed from reopened to accepted
Please, try the fix. Enabling or disabling the captive portal does nothing because the LDAP schemas are added/removed regardless of its state.
comment:5 in reply to: ↑ 4 Changed 9 months ago by karoly.madar@…
- Cc karoly.madar@… added
Replying to jamor@…:
Please, try the fix. Enabling or disabling the captive portal does nothing because the LDAP schemas are added/removed regardless of its state.
I tried and got : Can't locate object method 'get' via package 'backup_user' (perhaps you forgot to load 'backup_user'?) even If I created new or wanted to edit old users.
comment:6 Changed 8 months ago by karoly.madar@…
I would need some help with this issue. I am forced to install client images with ldap auth and pam_mount which is ready and some user that was created after a point doesn't have samba "account" on ldap. So I am stuck. Any advice would be appreciated.
comment:7 Changed 8 months ago by jamor@…
- Severity changed from critical to major
Can't locate object method 'get' via package 'backup_user' (perhaps you forgot to load 'backup_user'?) ->
I am a bit lost with this error message could you paste all the trace of this message?.
comment:8 Changed 8 months ago by karoly.madar@…
Ok I have changed LdapUser?.pm under /usr/share/perl5/EBox/CaptivePortal/ as It was advised. After that I am getting this message when trying to edit or create user:
Can't locate object method 'get' via package 'jozsadaniel' (perhaps you forgot to load 'jozsadaniel'?)
Technical:
Trace
Can't locate object method "get" via package "jozsadaniel" (perhaps you forgot to load "jozsadaniel"?) at /usr/share/perl5/EBox/CaptivePortal/LdapUser.pm line 76.
So the situation is worse than it was earlier.
comment:9 Changed 8 months ago by jamor@…
Forget about the fix, it was for a 2.3 version of captiveprotal but it was not with the correct version there, my bad.
We will try the following:
First, reinstall zentyal-captive to recover your old file, use this command:
apt-get install --reinstall zentyal-captiveportal
Then we will try to force the load of LDAP schemas with this command:
sudo perl -MEBox -MEBox::Global -e'EBox::init(); $capt = EBox::Global->modInstance('captiveportal'); $capt->performLDAPActions(); 1'
(This subthread was from ticket #5002 for zentyal-captive=2.2)
comment:10 Changed 8 months ago by karoly.madar@…
- Status changed from accepted to closed
- Resolution set to worksforme
Works Thank you
zentyal.log