Package: pynslcd
Version: 0.9.4-2
Severity: important
Dear Arthur,
pynslcd fail to start here on debian-lan. I attach the debug log.
This problem does not happen with nslcd, where things work.
Best regards,
Andi
-- System Information:
Debian Release: jessie/sid
APT prefers testing-updates
APT policy: (500, 'testing-updates'), (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 3.14-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages pynslcd depends on:
ii adduser 3.113+nmu3
ii debconf [debconf-2.0] 1.5.53
ii python-daemon 1.5.5-1
ii python-ldap 2.4.10-1
ii python-pyasn1 0.1.7-1
ii python-pyasn1-modules 0.0.5-0.1
ii python-setproctitle 1.1.8-1
pn python:any <none>
Versions of packages pynslcd recommends:
ii bind9-host [host] 1:9.9.5.dfsg-4
ii ldap-utils 2.4.39-1.1+b1
ii libnss-ldapd [libnss-ldap] 0.9.4-2
ii libpam-krb5 4.6-3
ii nscd 2.19-9
ii nslcd-utils 0.9.4-2
Versions of packages pynslcd suggests:
pn kstart <none>
-- debconf information:
nslcd/ldap-bindpw: (password omitted)
nslcd/ldap-sasl-krb5-ccname: /var/run/nslcd/nslcd.tkt
nslcd/ldap-sasl-realm:
nslcd/ldap-cacertfile: /etc/ssl/certs/ca-certificates.crt
* nslcd/ldap-starttls: true
nslcd/ldap-sasl-authcid:
nslcd/restart-failed:
libraries/restart-without-asking: false
* nslcd/ldap-reqcert: demand
* nslcd/ldap-base: dc=intern
nslcd/ldap-auth-type: none
nslcd/disable-screensaver:
* nslcd/ldap-uris: ldap://ldap
nslcd/xdm-needs-restart:
nslcd/ldap-sasl-secprops:
nslcd/ldap-sasl-mech:
nslcd/ldap-binddn:
nslcd/ldap-sasl-authzid:
nslcd/restart-services:
pynslcd: DEBUG: NSS_LDAP nss-pam-ldapd 0.9.4
pynslcd: DEBUG: tls_cacertdir=None
pynslcd: DEBUG: binddn=None
pynslcd: DEBUG: tls_key=None
pynslcd: DEBUG: uid='nslcd'
pynslcd: DEBUG: rootpwmoddn=None
pynslcd: DEBUG: idle_timelimit=0
pynslcd: DEBUG: bind_timelimit=10
pynslcd: DEBUG: uri='ldap://ldap'
pynslcd: DEBUG: ldap_version=3
pynslcd: DEBUG: tls_randfile=None
pynslcd: DEBUG: pam_password_prohibit_message=None
pynslcd: DEBUG: logs=[('syslog', 20)]
pynslcd: DEBUG: validnames=<_sre.SRE_Pattern object at 0x7fa67aca05f8>
pynslcd: DEBUG: nss_min_uid=0
pynslcd: DEBUG: tls_cacertfile='/etc/ldap/slapd.crt'
pynslcd: DEBUG: re=<module 're' from '/usr/lib/python2.7/re.pyc'>
pynslcd: DEBUG: gid='nslcd'
pynslcd: DEBUG: ldap=<module 'ldap' from
'/usr/lib/python2.7/dist-packages/ldap/__init__.pyc'>
pynslcd: DEBUG: nss_initgroups_ignoreusers=set([])
pynslcd: DEBUG: scope=2
pynslcd: DEBUG: tls_cert=None
pynslcd: DEBUG: nss_nested_groups=False
pynslcd: DEBUG: reconnect_invalidate=set([])
pynslcd: DEBUG: sasl_secprops=None
pynslcd: DEBUG: ParseError=<class 'cfg.ParseError'>
pynslcd: DEBUG: ssl='STARTTLS'
pynslcd: DEBUG: reconnect_sleeptime=1
pynslcd: DEBUG: bindpw=None
pynslcd: DEBUG: deref=0
pynslcd: DEBUG: pam_authz_searches=[]
pynslcd: DEBUG: sasl_canonicalize=None
pynslcd: DEBUG: bases=['dc=intern']
pynslcd: DEBUG: referrals=True
pynslcd: DEBUG: logging=<module 'logging' from
'/usr/lib/python2.7/logging/__init__.pyc'>
pynslcd: DEBUG: pagesize=0
pynslcd: DEBUG: sasl_mech=None
pynslcd: DEBUG: tls_reqcert=2
pynslcd: DEBUG: read=<function read at 0x7fa677706578>
pynslcd: DEBUG: tls_ciphers=None
pynslcd: DEBUG: reconnect_retrytime=10
pynslcd: DEBUG: rootpwmodpw=None
pynslcd: DEBUG: timelimit=0
pynslcd: DEBUG: sasl_realm=None
pynslcd: DEBUG: threads=5
pynslcd: DEBUG: sasl_authcid=None
pynslcd: DEBUG: sasl_authzid=None
pynslcd: version 0.9.4 starting
pynslcd: accepting connections
pynslcd: DEBUG: started thread thread0
Exception in thread thread0:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/sbin/pynslcd", line 256, in worker
session = search.Connection()
File "/usr/share/pynslcd/search.py", line 62, in __init__
self.start_tls_s()
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 836, in
start_tls_s
res = self._apply_method_s(SimpleLDAPObject.start_tls_s,*args,**kwargs)
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 819, in
_apply_method_s
return func(self,*args,**kwargs)
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 564, in
start_tls_s
return self._ldap_call(self._l.start_tls_s)
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 99, in
_ldap_call
result = func(*args,**kwargs)
SERVER_DOWN: {'info': 'A TLS packet with unexpected length was received.',
'desc': "Can't contact LDAP server"}
pynslcd: DEBUG: started thread thread1
Exception in thread thread1:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/sbin/pynslcd", line 256, in worker
session = search.Connection()
File "/usr/share/pynslcd/search.py", line 62, in __init__
self.start_tls_s()
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 836, in
start_tls_s
res = self._apply_method_s(SimpleLDAPObject.start_tls_s,*args,**kwargs)
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 819, in
_apply_method_s
return func(self,*args,**kwargs)
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 564, in
start_tls_s
return self._ldap_call(self._l.start_tls_s)
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 99, in
_ldap_call
result = func(*args,**kwargs)
SERVER_DOWN: {'info': 'A TLS packet with unexpected length was received.',
'desc': "Can't contact LDAP server"}
pynslcd: DEBUG: started thread thread2
pynslcd: DEBUG: started thread thread3
pynslcd: DEBUG: started thread thread4
Exception in thread thread3:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/sbin/pynslcd", line 256, in worker
session = search.Connection()
File "/usr/share/pynslcd/search.py", line 62, in __init__
self.start_tls_s()
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 836, in
start_tls_s
res = self._apply_method_s(SimpleLDAPObject.start_tls_s,*args,**kwargs)
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 819, in
_apply_method_s
return func(self,*args,**kwargs)
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 564, in
start_tls_s
return self._ldap_call(self._l.start_tls_s)
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 99, in
_ldap_call
result = func(*args,**kwargs)
SERVER_DOWN: {'info': 'A TLS packet with unexpected length was received.',
'desc': "Can't contact LDAP server"}
Exception in thread thread4:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/sbin/pynslcd", line 256, in worker
session = search.Connection()
File "/usr/share/pynslcd/search.py", line 62, in __init__
self.start_tls_s()
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 836, in
start_tls_s
res = self._apply_method_s(SimpleLDAPObject.start_tls_s,*args,**kwargs)
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 819, in
_apply_method_s
return func(self,*args,**kwargs)
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 564, in
start_tls_s
return self._ldap_call(self._l.start_tls_s)
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 99, in
_ldap_call
result = func(*args,**kwargs)
SERVER_DOWN: {'info': 'A TLS packet with unexpected length was received.',
'desc': "Can't contact LDAP server"}
Exception in thread thread2:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/sbin/pynslcd", line 256, in worker
session = search.Connection()
File "/usr/share/pynslcd/search.py", line 62, in __init__
self.start_tls_s()
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 836, in
start_tls_s
res = self._apply_method_s(SimpleLDAPObject.start_tls_s,*args,**kwargs)
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 819, in
_apply_method_s
return func(self,*args,**kwargs)
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 564, in
start_tls_s
return self._ldap_call(self._l.start_tls_s)
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 99, in
_ldap_call
result = func(*args,**kwargs)
SERVER_DOWN: {'info': 'A TLS packet with unexpected length was received.',
'desc': "Can't contact LDAP server"}