Ticket #2769 (closed task: fixed)
problem creating user mail account
| Reported by: | adrian@… | Owned by: | jamor@… |
|---|---|---|---|
| Milestone: | 2.0.X | Component: | base |
| Severity: | major | Keywords: | mail,user,add,account |
| Cc: |
Description
I get the following error when trying to create a user mail account:
Unknown error at EBox::MailUserLdap::setUserAccount objectClass: value #0 invalid per syntax
Some help would be great! Thanks Adrian
Attachments
Change History
comment:2 Changed 2 years ago by adrian@…
- Status changed from new to closed
- Resolution set to fixed
reinstalling ebox usersandgroups module has solved this but is not ideal
comment:3 Changed 2 years ago by adrian@…
- Keywords mail,user,add,account added
- priority changed from normal to high
- Status changed from closed to reopened
- Resolution fixed deleted
I have had the same problem on a differnt server, only this time it is not a s easy to simply reinstall zentyal as there are already user acounts set up. Please could there be an alternative fixbe made available? Thanks
Here is the output:
Trace
Unknown error at EBox::MailUserLdap::setUserAccount objectClass: value #0 invalid per syntax at /usr/share/perl5/EBox/Ldap.pm line 703
EBox::Ldap::_errorOnLdap('Net::LDAP::Modify=HASH(0x257e3fc0)', 'HASH(0x248ab9d0)') called at /usr/share/perl5/EBox/Ldap.pm line 364
EBox::Ldap::modify('EBox::Ldap=HASH(0x24842ef8)', 'uid=adrian,ou=Users,dc=server10,dc=cable,dc=virginmedia,dc=net', 'HASH(0x248ab9d0)') called at /usr/share/perl5/EBox/MailUserLdap.pm line 111
EBox::MailUserLdap::setUserAccount('EBox::MailUserLdap=HASH(0x25791de0)', 'adrian', 'adrian', 'jonesandjones.org.uk', 0) called at /usr/share/perl5/EBox/CGI/Mail/CreateAccount.pm line 57
EBox::CGI::Mail::CreateAccount::_process('EBox::CGI::Mail::CreateAccount=HASH(0x2578f460)') called at /usr/share/perl5/EBox/CGI/Base.pm line 262
EBox::CGI::Base::run('EBox::CGI::Mail::CreateAccount=HASH(0x2578f460)') called at /usr/share/perl5/EBox/CGI/Run.pm line 120
EBox::CGI::Run::run('EBox::CGI::Run', 'Mail/CreateAccount', '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(0x25792180)') 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(0x25791c70)') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 170
ModPerl::RegistryCooker::default_handler('ModPerl::Registry=HASH(0x25791c70)') called at /usr/lib/perl5/ModPerl/Registry.pm line 31
ModPerl::Registry::handler('ModPerl::Registry', 'Apache2::RequestRec=SCALAR(0x25792180)') called at -e line 0
eval {...} called at -e line 0
comment:4 Changed 2 years ago by adrian@…
- Severity changed from normal to major
This is now an important issue, any suggestions?
comment:5 Changed 2 years ago by jacalvo@…
- Owner changed from jacalvo@… to jamor@…
- Status changed from reopened to new
- Milestone changed from 2.0 to 2.0.X
comment:6 Changed 2 years ago by jamor@…
Hello,
it is a bit difficult to find the problem there. Could you provide my with a configuration backup?. You could send ti to jamor at zentyal.com
Thanks
comment:8 Changed 2 years ago by jamor@…
- Status changed from assigned to closed
- Resolution set to fixed
After looking in your backup I had seen the problem.
This is a problem of ebox-usersandgroups that is already fixed in the updated version (>= 2.0.12), it causes duplicate LDAP class entries. This duplicates entries raises various error including your email account error.
The easier way to solve this is erasing all LDAP data, the modules which use it and reinstall them in their newer versions. You can do it executing this command:
sudo /usr/share/ebox-usersandgroups/ebox-usersandgroups-reinstall
However you will need to configure again all the LDAP-based modules

ebox.log