Please check for true as boolean value and not as string:
```ruby
if node['openldap']['tls'] == true
```