in reply to Ldap bind syntax

#\ before @ ok?
It will be ok if the password actually has the \. Since you are using single quotes, \ will not be interpreted as escaping @.
If the password is ch@t!! then pass it as 'ch@t!!'.
'ch\@t!!' is not he same as "ch\@t!!"

update OP was edited and the question removed