Fix template logic for slapd.conf