go-ldap/ldap — pull request #6 by mzimmerman (2014-12-05 16:04:40+00:00)
Title: Adding EscapeFilter function

In order to do LDAP queries from user given input, an escape function should be provided to mitigate ldap injection

Not taking credit for this code - thanks @niemeyer - https://github.com/go-mup/mup/commit/896d6908e5b8ea1fbb26cc73d9be3f816aabeb11