Author Topic: error ldap enabling "Users and Groups" module  (Read 1278 times)

luiscndhz

  • Zen Apprentice
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
error ldap enabling "Users and Groups" module
« on: July 20, 2010, 01:16:11 »
I've got the next error when I try to enable this module.

A really nasty bug has occurred
Exception
Failed to enable: root command ldapadd -H 'ldapi://' -Y EXTERNAL -c -f /var/lib/ebox/tmp/slapd-master.ldif failed. Error output: ldap_sasl_interactive_bind_s: Can't contact LDAP server (-1) Command output: . Exit value: 255
Trace
Failed to enable: root command ldapadd -H 'ldapi://' -Y EXTERNAL -c -f /var/lib/ebox/tmp/slapd-master.ldif failed.
Error output: ldap_sasl_interactive_bind_s: Can't contact LDAP server (-1)

Command output: .
Exit value: 255 at /usr/share/perl5/EBox/CGI/ServiceModule/ConfigureModuleController.pm line 74
EBox::CGI::ServiceModule::ConfigureModuleController::_process('EBox::CGI::ServiceModule::ConfigureModuleController=HASH(0x25...') called at /usr/share/perl5/EBox/CGI/Base.pm line 262
EBox::CGI::Base::run('EBox::CGI::ServiceModule::ConfigureModuleController=HASH(0x25...') 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(0x25317ff0)') 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(0x25367e70)') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 170
ModPerl::RegistryCooker::default_handler('ModPerl::Registry=HASH(0x25367e70)') called at /usr/lib/perl5/ModPerl/Registry.pm line 31
ModPerl::Registry::handler('ModPerl::Registry', 'Apache2::RequestRec=SCALAR(0x25317ff0)') called at -e line 0
eval {...} called at -e line 0

What I can do?

luiscndhz

  • Zen Apprentice
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Re: error ldap enabling "Users and Groups" module
« Reply #1 on: July 20, 2010, 01:36:02 »
Additionally I have this error message in console:

Starting OpenLDAP: slapd failed
The operation failed but no output was produced. For hints on what went
wrong please refer to the system's logfiles (e.g. /var/log/syslog) or
try running the daemon in Debug mode like via "slapd -d 16383"

jbhewitt

  • Zen Apprentice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: error ldap enabling "Users and Groups" module
« Reply #2 on: July 20, 2010, 05:28:07 »
Is this with eBox 1.4?

Is this a fresh setup?

Looks like slapd is not starting, perhaps you should try and restart it (/etc/init.d/slapd restart) and see if it starts up.

luiscndhz

  • Zen Apprentice
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Re: error ldap enabling "Users and Groups" module
« Reply #3 on: July 20, 2010, 03:58:21 »
Yes, it is a fresh installation and restarting the service slapd does not work either.

version installed 1.5

luiscndhz

  • Zen Apprentice
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Re: error ldap enabling "Users and Groups" module
« Reply #4 on: July 21, 2010, 03:14:40 »
What I did at this point is to install the version 1.4 from an ISO and now it works, but I still do not know why it did not work before.

fin1to

  • Zen Apprentice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: error ldap enabling "Users and Groups" module
« Reply #5 on: July 26, 2010, 07:40:57 »
I have this exact problem,

I didn't add a single User or Group and updated the software.

When updates were done, I couldn't get access to Ldap again.

Another Issue I have is that when I login to my user It can not add user, but it logs in anyway but when I sudo anything it takes forever.

I looked at /var/log/sys.log I see it says myuser is already mounted.

Then I skimped down looking for LDAP errors all it says is Ldap Could not be started =-1
I don't have the exact error cause it's impossible to copy paste. There simply too much written there


I also get this at boot

Starting OpenLDAP: slapd failed
The operation failed but no output was produced. For hints on what went
wrong please refer to the system's logfiles (e.g. /var/log/syslog) or
try running the daemon in Debug mode like via "slapd -d 16383"
...

then it says try
slapd -h 'ldap:/// ldapi:/// ldaps:///' -g openldap -u openldap -F /etc/ldap/slapd.d

it says do this to get the exact error but I get nothing.

This is a Fresh install over Ubuntu 10.04 LTS 64-bit and Ebox.

Saturn2888

  • Zen Hero
  • *****
  • Posts: 707
  • Karma: +1/-0
    • View Profile
Re: error ldap enabling "Users and Groups" module
« Reply #6 on: July 26, 2010, 01:10:58 »
:: COMMENTS ::

I could've sworn I wrote a post on this myself from 4 days ago, but it's not there. I'm having issues with slapd too I think only because my log file was showing the ldapi connection couldn't happen. Then I did purge samba and purge slapd as well as rm -rf /var/lib/ldap* && sudo rm -rf /etc/ldap/*. Now my log shows this:

Code: [Select]
2010/07/26 05:47:24 ERROR> Ldap.pm:721 EBox::Ldap::_errorOnLdap - Unknown error at EBox::UsersAndGroups::listSlaves invalid DN
2010/07/26 05:47:42 ERROR> Ldap.pm:719 EBox::Ldap::_errorOnLdap - $VAR1 = {
          'base' => 'ou=Groups,',
          'attrs' => [
                       'cn',
                       'gidNumber',
                       'description'
                     ],
          'filter' => '(objectclass=*)',
          'scope' => 'one'
        };
2010/07/26 05:47:42 ERROR> Ldap.pm:721 EBox::Ldap::_errorOnLdap - Unknown error at EBox::UsersAndGroups::groups invalid DN
2010/07/26 05:50:02 ERROR> Ldap.pm:719 EBox::Ldap::_errorOnLdap - $VAR1 = {
          'base' => 'ou=slaves,',
          'filter' => '(objectClass=slaveHost)',
          'scope' => 'sub'
        };
2010/07/26 05:50:02 ERROR> Ldap.pm:721 EBox::Ldap::_errorOnLdap - Unknown error at EBox::UsersAndGroups::listSlaves invalid DN
2010/07/26 05:55:03 ERROR> Ldap.pm:719 EBox::Ldap::_errorOnLdap - $VAR1 = {
          'base' => 'ou=slaves,',
          'filter' => '(objectClass=slaveHost)',
          'scope' => 'sub'
        };
2010/07/26 05:55:03 ERROR> Ldap.pm:721 EBox::Ldap::_errorOnLdap - Unknown error at EBox::UsersAndGroups::listSlaves invalid DN
2010/07/26 06:00:03 ERROR> Ldap.pm:719 EBox::Ldap::_errorOnLdap - $VAR1 = {
          'base' => 'ou=slaves,',
          'filter' => '(objectClass=slaveHost)',
          'scope' => 'sub'
        };
2010/07/26 06:00:03 ERROR> Ldap.pm:721 EBox::Ldap::_errorOnLdap - Unknown error at EBox::UsersAndGroups::listSlaves invalid DN

:: SOLUTION ::

I completely forgot though, issac gave me some things to run a long time ago which I still have saved in a text file, those are:

Code: [Select]
/usr/share/ebox-usersandgroups/ebox-usersandgroups-reinstall
/usr/share/ebox/ebox-unconfigure-module samba
/usr/share/ebox/ebox-unconfigure-module mail

The reinstall should fix everything. I've seen a recent ticket marked as solved when that was run to fix it and did it myself just now. I only wish there way a way to export and import lists of users to make this whole process easier.