Modify

Ticket #1407 (closed defect: fixed)

Opened 4 years ago

Last modified 3 years ago

Missing LDAP entries when removing the egroupware and the apache module

Reported by: paul@… Owned by: jacalvo@…
Milestone: Component: samba
Severity: normal Keywords: samba egroupware ldap
Cc:

Description

Unknown error at EBox::Ldap::modifyAttribute unrecognized objectClass 'eboxEgwAccount'

I installed the current ebox package some time ago; it works good for me, but the samba module misses the possibility to set aliases, so i went to remove egroupware+samba (apt-get remove ebox-...). It succeed, but after rebooting the status of the samba module says it is not loaded even samba runs fine (as service).

sudo /etc/init.d/ebox samba restart says Unknown error at EBox::Ldap::modifyAttribute unrecognized objectClass 'eboxEgwAccount'

Please fix it or send me a workaround... Thanks

Attachments

egroupware_workaround.pl Download (611 bytes) - added by jacalvo@… 4 years ago.
deletes eboxEgwAccount objectClass on all users
ebox.log.gz Download (21.0 KB) - added by paul@… 4 years ago.
ebox.log

Change History

comment:1 Changed 4 years ago by jacalvo@…

  • Owner changed from juruen@… to jacalvo@…
  • Status changed from new to assigned

Paul, could you please specify which exact version of these modules are you using? Thanks.

comment:2 Changed 4 years ago by paul@…

The german ebox Version is the current packages from the ppa repo:  http://ppa.launchpad.net/ebox/ubuntu hardy main

eBox - eGroupware - 1.0.2-0ubuntu1~ppa1~hardy1 eBox common library for server and client 1.0-0ubuntu1~ppa1~hardy1 eBox-Plattform - Basisframework 1.0.1-0ubuntu1~ppa1~hardy1 eBox - Dateifreigabe (samba) 1.0.3-0ubuntu1~ppa1~hardy1

comment:3 Changed 4 years ago by jacalvo@…

Ok, thanks, we'll try to reproduce and fix your issue.

comment:4 Changed 4 years ago by jacalvo@…

I can't reproduce the same behaviour, but you can try if this workaround fixes your problem. I attach here the script egroupware_workaround.pl, you only have to copy it to your ebox machine and execute it as root.

Changed 4 years ago by jacalvo@…

deletes eboxEgwAccount objectClass on all users

Changed 4 years ago by paul@…

ebox.log

comment:5 Changed 4 years ago by paul@…

Still the same error... I uploaded my ebox.log.

Maybe it helps...

comment:6 Changed 4 years ago by jacalvo@…

I can't see how this error comes after executing my script...

Correct me if I'm wrong, your current status is with ebox-samba package installed and ebox-egroupware package uninstalled, isn't it?

Try the following:

Check the content of /etc/ldap/slapd.conf.

If the line "include /etc/ldap/schema/ebox-egw-account.schema" is not present, try to add it.

Then do an /etc/init.d/slapd restart

comment:7 Changed 4 years ago by paul@…

That was the solution Maybe during deinstallation process this entry got lost?

Thanks a lot...

comment:8 Changed 4 years ago by jacalvo@…

  • Status changed from assigned to closed
  • Resolution set to fixed

Yes, I suppose that, but when I tried to reproduce your issue I didn't get that error.

Glad to hear you've solved the problem :)

comment:9 Changed 3 years ago by ibon.castilla@…

  • Status changed from closed to reopened
  • Resolution fixed deleted

Hi there:

I see this error today too. This has been my procedure:

  • Add eBox (1.2.9.2-0ubuntu1~ppa1~hardy1).
  • Add EGroupware (1.2.1-0ubuntu1~ppa1~hardy1).
  • Try it out, add some users, but finally uninstall ebox-egroupware.
  • Add mail (1.2.3-0ubuntu1~ppa1~hardy1).
  • Everything fine, but when I try to change the password to one user same error shows up.

To solve this I must to install ebox-egroupware again and activate it, then I could change the password to that user.

It seems to me that uninstalling ebox-egroupware some process removes EGroupware schema from /etc/ldap/slapd.conf (this is correct, because you don't have to use it anymore), but the users at the LDAP still have the fields relationed to EGroupware, so the error might be there: those fields should be erased at the uninstall process.

Cheers, Ibon.

comment:10 Changed 3 years ago by jacalvo@…

  • Status changed from reopened to closed
  • Resolution set to fixed

I can't reproduce this anymore in 1.5, reopen if still happens.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.