I have not touched usersandgroups for a little while on two ebox servers so I don't know when this problem developed but this morning I ran an update and tried usersandgroups afterwards. The first difficulty I encounterd was I tried to authenticate a linux box with ebox - that failed last week and I tried again today. This lead me to look at users and that is when I ran into problems this morning.
First I noticed on a ebox that was already running usersandgroups that all my users, when I went to edit, showed asterisk and jabber as disabled and egroupware showed as default profile even on my account which was set to an admin profile I had created.
If I tried to change asterisk, for example to enabled, I got this
A really nasty bug has occurred
Exception
Unknown error at EBox::AsteriskLdapUser::_addUser objectClass: value #0 invalid per syntax
Trace
Unknown error at EBox::AsteriskLdapUser::_addUser objectClass: value #0 invalid per syntax at /usr/share/perl5/EBox/Ldap.pm line 637
EBox::Ldap::_errorOnLdap('Net::LDAP::Modify=HASH(0xa7d5a3c)', 'HASH(0x969a57c)') called at /usr/share/perl5/EBox/Ldap.pm line 344
EBox::Ldap::modify('EBox::Ldap=HASH(0x993d288)', 'uid=peter.roots,ou=Users,dc=dcmc', 'HASH(0x969a57c)') called at /usr/share/perl5/EBox/AsteriskLdapUser.pm line 119
EBox::AsteriskLdapUser::_addUser('EBox::AsteriskLdapUser=HASH(0xa979b54)', 'peter.roots') called at /usr/share/perl5/EBox/AsteriskLdapUser.pm line 243
EBox::AsteriskLdapUser::setHasAccount('EBox::AsteriskLdapUser=HASH(0xa979b54)', 'peter.roots', 1) called at /usr/share/perl5/EBox/CGI/Asterisk/AsteriskUserOptions.pm line 48
EBox::CGI::Asterisk::AsteriskUserOptions::_process('EBox::CGI::Asterisk::AsteriskUserOptions=HASH(0xa98ec6c)') called at /usr/share/perl5/EBox/CGI/Base.pm line 261
EBox::CGI::Base::run('EBox::CGI::Asterisk::AsteriskUserOptions=HASH(0xa98ec6c)') called at /usr/share/perl5/EBox/CGI/Run.pm line 120
EBox::CGI::Run::run('EBox::CGI::Run', 'Asterisk/AsteriskUserOptions', 'EBox') called at /usr/share/ebox/cgi/ebox.cgi line 19
ModPerl::ROOT::ModPerl::Registry::usr_share_ebox_cgi_ebox_2ecgi::handler('Apache2::RequestRec=SCALAR(0xa783684)') 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(0xa7a45e0)') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 170
ModPerl::RegistryCooker::default_handler('ModPerl::Registry=HASH(0xa7a45e0)') called at /usr/lib/perl5/ModPerl/Registry.pm line 31
ModPerl::Registry::handler('ModPerl::Registry', 'Apache2::RequestRec=SCALAR(0xa783684)') called at -e line 0
eval {...} called at -e line 0
I get a similar error if I try to add a new user (I have not tried to delete one though)
my jabber and asterisk clients think I am online and dashboard thinks one other user is online with asterisk (though I can't get at his computer just now to check if I can communicate with him) even all the accounts are currently shown as disabled.
On another ebox machine, that had usersandgroups installed but not activated I tried to activate it and failed. I uninstalled uag, reinstalled it and tried to activate it again and got this
A really nasty bug has occurred
Exception
Failed to enable: Can't connect to LDAP server
Trace
Failed to enable: Can't connect to LDAP server at /usr/share/perl5/EBox/CGI/ServiceModule/ConfigureModuleController.pm line 74
EBox::CGI::ServiceModule::ConfigureModuleController::_process('EBox::CGI::ServiceModule::ConfigureModuleController=HASH(0xa3...') called at /usr/share/perl5/EBox/CGI/Base.pm line 261
EBox::CGI::Base::run('EBox::CGI::ServiceModule::ConfigureModuleController=HASH(0xa3...') 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 19
ModPerl::ROOT::ModPerl::Registry::usr_share_ebox_cgi_ebox_2ecgi::handler('Apache2::RequestRec=SCALAR(0x8f45ab8)') 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(0xa3b1e50)') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 170
ModPerl::RegistryCooker::default_handler('ModPerl::Registry=HASH(0xa3b1e50)') called at /usr/lib/perl5/ModPerl/Registry.pm line 31
ModPerl::Registry::handler('ModPerl::Registry', 'Apache2::RequestRec=SCALAR(0x8f45ab8)') called at -e line 0
eval {...} called at -e line 0
The first server was set a the ldap master and has been working fine the second I was trying to set up as a master (later plan was to reinstall the old one and set as slave).
Under users the mode of the second server is set to master, the ldap password is present the AD user is set to eboxadsync (I did not do that, that appeared after I reinstalled uag). I have tried reentering the ldap password in case this had messed up somewhere
I am guessing these two issues are somehow related to each other, presumably due to a problem in the ldap server, but have no idea where to go from here.
Incidentally the egroupware server (on first ebox server) is working but any attempt to alter a user results in something like this
ldap_modify(,uid=finance.office,ou=Users,dc=dcmc,Array ( [objectclass] => Array (
- => inetorgperson [1] => posixaccount [2] => passwordholder [3] => asterisksipuser [4] => asteriskvoicemail [5] => eboxegwaccount [6] => userjabberaccount [7] => couriermailaccount [8] => usereboxmail [9] => top [10] => person [11] => organizationalperson [12] => shadowaccount ) [uidnumber] => 2006 [uid] => finance.office [gidnumber] => 1901 [givenname] => Finance [sn] => Office [mail] => finance.office@dcmc.or.tz [cn] => Finance Office [shadowexpire] => Array ( ) ) ) Invalid syntaxldap_modify(,'cn=__USERS__,ou=Groups,dc=dcmc',Array ( [memberuid] => Array (
- => peter.roots [1] => finance.office ) ) ))
Should this be of any help in tracking down what is going wrong
Thanks
Peter