LDAP works, but it gives an error when installing SSO Winbind and SAmba are configured on the servers Apache 2 Server Configuration

smb.conf

really redirect before you start page output
- line 1341 of /lib/outputrenderers.php: call to debugging()
- line 3105 of /lib/weblib.php: call to core_renderer->redirect_message()
- line 32 of /auth/ldap/ntlmsso_finish.php: call to redirect()
What could be the mistake?
Thanks!
