Modify

Ticket #4557 (closed defect: fixed)

Opened 11 months ago

Last modified 8 months ago

kadmin: adding IMAP/apsrv.apsrv.lan: ldap_sasl_bind_s: Can't contact LDAP server

Reported by: pexy@… Owned by: scabrero@…
Milestone: 3.0 Component: base
Severity: normal Keywords:
Cc:

Description (last modified by jacalvo@…) (diff)

After installed system modules, immediately occured this error

Error

root command set -e
kadmin -l add -r --max-ticket-life='1 day' --max-renewable-life='1 week' --attributes='' --expiration-time=never --pw-expiration-time=never --policy=default 'IMAP/apsrv.apsrv.lan'
kadmin -l ext -k '/etc/dovecot/dovecot.keytab' 'IMAP/apsrv.apsrv.lan'
chown root:dovecot '/etc/dovecot/dovecot.keytab'
chmod 440 '/etc/dovecot/dovecot.keytab' failed. 
Error output: kadmin: kadm5_create_principal: ldap_sasl_bind_s: Can't contact LDAP server
 kadmin: adding IMAP/apsrv.apsrv.lan: ldap_sasl_bind_s: Can't contact LDAP server

Command output: . 
Exit value: 1

Trace

root command set -e
kadmin -l add -r --max-ticket-life='1 day' --max-renewable-life='1 week' --attributes='' --expiration-time=never --pw-expiration-time=never --policy=default 'IMAP/apsrv.apsrv.lan'
kadmin -l ext -k '/etc/dovecot/dovecot.keytab' 'IMAP/apsrv.apsrv.lan'
chown root:dovecot '/etc/dovecot/dovecot.keytab'
chmod 440 '/etc/dovecot/dovecot.keytab' failed. 
Error output: kadmin: kadm5_create_principal: ldap_sasl_bind_s: Can't contact LDAP server
 kadmin: adding IMAP/apsrv.apsrv.lan: ldap_sasl_bind_s: Can't contact LDAP server

Command output: . 
Exit value: 1 at /usr/share/perl5/Error.pm line 182
	Error::throw('EBox::Exceptions::Sudo::Command', 'cmd', 'set -e\x{a}kadmin -l add -r --max-ticket-life=\'1 day\' --max-ren...', 'output', 'ARRAY(0x7f6dae10ba88)', 'error', 'ARRAY(0x7f6da943e6b8)', 'exitValue', 1, ...) called at /usr/share/perl5/EBox/Sudo.pm line 215
	EBox::Sudo::_rootError('/usr/bin/sudo -p sudo: /var/lib/zentyal/tmp/1NSu5gxERv.cmd 2>...', 'set -e\x{a}kadmin -l add -r --max-ticket-life=\'1 day\' --max-ren...', 256, 'ARRAY(0x7f6dae10ba88)', 'ARRAY(0x7f6da943e6b8)') called at /usr/share/perl5/EBox/Sudo.pm line 184
	EBox::Sudo::_root(1, 'kadmin -l add -r --max-ticket-life=\'1 day\' --max-renewable-...', 'kadmin -l ext -k \'/etc/dovecot/dovecot.keytab\' \'IMAP/apsrv...', 'chown root:dovecot \'/etc/dovecot/dovecot.keytab\'', 'chmod 440 \'/etc/dovecot/dovecot.keytab\'') called at /usr/share/perl5/EBox/Sudo.pm line 137
	EBox::Sudo::root('kadmin -l add -r --max-ticket-life=\'1 day\' --max-renewable-...', 'kadmin -l ext -k \'/etc/dovecot/dovecot.keytab\' \'IMAP/apsrv...', 'chown root:dovecot \'/etc/dovecot/dovecot.keytab\'', 'chmod 440 \'/etc/dovecot/dovecot.keytab\'') called at /usr/share/perl5/EBox/KerberosModule.pm line 110
	EBox::KerberosModule::kerberosCreatePrincipals('EBox::Mail=HASH(0x7f6dade1b598)') called at /usr/share/perl5/EBox/Samba.pm line 315
	EBox::Samba::enableService('EBox::Samba=HASH(0x7f6dade1c138)', undef) called at /usr/share/perl5/EBox/ServiceManager.pm line 95
	EBox::ServiceManager::moduleStatus('EBox::ServiceManager=HASH(0x7f6dade40a58)') called at /usr/share/perl5/EBox/CGI/ServiceModule/StatusView.pm line 54
	EBox::CGI::ServiceModule::StatusView::_process('EBox::CGI::ServiceModule::StatusView=HASH(0x7f6dab0a2558)') called at /usr/share/perl5/EBox/CGI/Base.pm line 274
	EBox::CGI::Base::run('EBox::CGI::ServiceModule::StatusView=HASH(0x7f6dab0a2558)') called at /usr/share/perl5/EBox/CGI/Run.pm line 132
	EBox::CGI::Run::run('EBox::CGI::Run', 'ServiceModule/StatusView', '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(0x7f6dab0b4418)') 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(0x7f6dab0a2360)') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 170
	ModPerl::RegistryCooker::default_handler('ModPerl::Registry=HASH(0x7f6dab0a2360)') called at /usr/lib/perl5/ModPerl/Registry.pm line 31
	ModPerl::Registry::handler('ModPerl::Registry', 'Apache2::RequestRec=SCALAR(0x7f6dab0b4418)') called at -e line 0
	eval {...} called at -e line 0

Attachments

zentyal.log Download (98.3 KB) - added by anonymous 11 months ago.
zentyal.log

Change History

Changed 11 months ago by anonymous

zentyal.log

comment:1 Changed 11 months ago by jacalvo@…

  • Owner changed from jamor@… to scabrero@…
  • Description modified (diff)
  • Summary changed from Bug report from Zentyal Server to kadmin: adding IMAP/apsrv.apsrv.lan: ldap_sasl_bind_s: Can't contact LDAP server

comment:2 Changed 11 months ago by jamor@…

Hello Pexy,

  • you are able to add users and groups to your server?.
  • doing a 'sudo /etc/init.d/zentyal users restart' , fixes the issue?
Last edited 11 months ago by jamor@… (previous) (diff)

comment:3 Changed 9 months ago by jacalvo@…

  • Status changed from new to accepted

this has been fixed in a non-merged-yet branch but will be merged and released soon, thanks for reporting!

comment:4 Changed 8 months ago by jacalvo@…

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

this should be fixed in Zentyal 3.0 RC2, let us know if you find any other issue

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.