ClearFoundation Tracker - ClearOS
View Issue Details
0000478ClearOSapp-samba - Windows Networkingpublic2012-03-09 19:352012-04-18 19:39
user2 
user2 
normalmajoralways
closedfixed 
 
6.2.0 RC 1 
0000478: Samba is configured to use start tls for LDAP ; slapd is not configured this way
By default, samba uses start tls when talking to an LDAP server (see man smb.conf, parameter "ldap ssl"). For ClearOS, this configuration is wrong, because slapd is not set up for ssl.

In my case, I'm pretty much certain that this misconfiguration exposes bugs in slapd which lead to it becoming progressively less responsive.. see http://www.clearfoundation.com/component/option,com_kunena/Itemid,232/catid,26/func,view/id,32600/limit,10/limitstart,20/#35057 [^]

I've listed the severity as major, because failing slapd was definitely a major problem for me.

But in any case, samba shouldn't be using ssl when talking to ldap, the samba and slapd configurations should align.
To fix this, just add

ldap ssl = no

to /etc/openldap/templates/smb.ldap.conf.template

Note that you won't see direct evidence of this misconfiguration unless you turn on debugging in samba; in /etc/samba/smb.conf add

ldap debug level = 264
ldap debug threshold = 1

After this, you'll get messages in the samba logs repeated for every single ldap connection:

[2011/10/29 22:36:39.253617, 1] lib/ldap_debug_handler.c:25(samba_ldap_log_print_fn)
[LDAP] TLS certificate verification: Error, self signed certificate
[2011/10/29 22:36:39.268720, 1] lib/ldap_debug_handler.c:25(samba_ldap_log_print_fn)
[LDAP] TLS: unable to get peer certificate.
No tags attached.
Issue History
2012-03-09 19:35user2New Issue
2012-03-09 19:35user2Statusnew => assigned
2012-03-09 19:35user2Assigned To => user2
2012-03-09 19:35user2Issue generated from: 0000456
2012-03-09 19:38user2Note Added: 0000436
2012-03-09 19:38user2Statusassigned => resolved
2012-03-09 19:38user2Fixed in Version => 6.2.0 RC 1
2012-03-09 19:38user2Resolutionopen => fixed
2012-03-09 19:39user2Categorysamba => app-samba - Windows Networking
2012-04-18 19:39user2Statusresolved => closed

Notes
(0000436)
user2   
2012-03-09 19:38   
This was fixed in version 6 development (June 2011):

http://code.clearfoundation.com/svn/diff.php?repname=ClearOS&path=%2Fwebconfig%2Fapps%2Fsamba%2Ftrunk%2Fpackaging%2Fsmb.ldap.conf&rev=1600&peg=1600 [^]