id	summary	reporter	owner	description	type	status	milestone	component	severity	resolution	keywords	cc
4771	kadmin: adding HTTP/home-server.home: ldap_sasl_bind_s: Can't contact LDAP server	seanwalter@…	scabrero@zentyal.com	"1. Uninstalled and then reinstalled the following, because samba had stopped working:
- File sharing
- Printer sharing
- Users and groups
- User Corner
- HTTP Proxy
- FTP

2. Went to Dashboard to see what was and wasn't enabled. Most / all of the above were not enabled.

3. Clicked on Module Status go enable the above modules.

4. Received the unexpected error reported here

'''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 'HTTP/home-server.home'
kadmin -l ext -k '/etc/squid3/HTTP.keytab' 'HTTP/home-server.home'
chown root:proxy '/etc/squid3/HTTP.keytab'
chmod 440 '/etc/squid3/HTTP.keytab' failed. 
Error output: kadmin: kadm5_create_principal: ldap_sasl_bind_s: Can't contact LDAP server
 kadmin: adding HTTP/home-server.home: 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 'HTTP/home-server.home'
kadmin -l ext -k '/etc/squid3/HTTP.keytab' 'HTTP/home-server.home'
chown root:proxy '/etc/squid3/HTTP.keytab'
chmod 440 '/etc/squid3/HTTP.keytab' failed. 
Error output: kadmin: kadm5_create_principal: ldap_sasl_bind_s: Can't contact LDAP server
 kadmin: adding HTTP/home-server.home: 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(0x7f79aa522950)', 'error', 'ARRAY(0x7f79a7f105e0)', 'exitValue', 1, ...) called at /usr/share/perl5/EBox/Sudo.pm line 216
	EBox::Sudo::_rootError('/usr/bin/sudo -p sudo: /var/lib/zentyal/tmp/UZ296hZgU1.cmd 2>...', 'set -e\x{a}kadmin -l add -r --max-ticket-life=\'1 day\' --max-ren...', 256, 'ARRAY(0x7f79aa522950)', 'ARRAY(0x7f79a7f105e0)') called at /usr/share/perl5/EBox/Sudo.pm line 185
	EBox::Sudo::_root(1, 'kadmin -l add -r --max-ticket-life=\'1 day\' --max-renewable-...', 'kadmin -l ext -k \'/etc/squid3/HTTP.keytab\' \'HTTP/home-serv...', 'chown root:proxy \'/etc/squid3/HTTP.keytab\'', 'chmod 440 \'/etc/squid3/HTTP.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/squid3/HTTP.keytab\' \'HTTP/home-serv...', 'chown root:proxy \'/etc/squid3/HTTP.keytab\'', 'chmod 440 \'/etc/squid3/HTTP.keytab\'') called at /usr/share/perl5/EBox/KerberosModule.pm line 110
	EBox::KerberosModule::kerberosCreatePrincipals('EBox::Squid=HASH(0x7f79a7194b08)') called at /usr/share/perl5/EBox/Samba.pm line 324
	EBox::Samba::enableService('EBox::Samba=HASH(0x7f79a9669158)', undef) called at /usr/share/perl5/EBox/ServiceManager.pm line 95
	EBox::ServiceManager::moduleStatus('EBox::ServiceManager=HASH(0x7f79aa494898)') called at /usr/share/perl5/EBox/CGI/ServiceModule/StatusView.pm line 54
	EBox::CGI::ServiceModule::StatusView::_process('EBox::CGI::ServiceModule::StatusView=HASH(0x7f79aa473648)') called at /usr/share/perl5/EBox/CGI/Base.pm line 274
	EBox::CGI::Base::run('EBox::CGI::ServiceModule::StatusView=HASH(0x7f79aa473648)') 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(0x7f79aa45ed50)') 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(0x7f79aa4b2328)') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 170
	ModPerl::RegistryCooker::default_handler('ModPerl::Registry=HASH(0x7f79aa4b2328)') called at /usr/lib/perl5/ModPerl/Registry.pm line 31
	ModPerl::Registry::handler('ModPerl::Registry', 'Apache2::RequestRec=SCALAR(0x7f79aa45ed50)') called at -e line 0
	eval {...} called at -e line 0

}}}"	defect	closed	3.0	base	normal	duplicate		
