Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor valid? and explicitly check for null bytes in login and pass…
…word Return false if there is a null byte in either the login or password. From my testing, ldap would raise an error and net/ldap would return false anyway, but explicitly checking seems like a good approach anyway. Do the conversion to strings up front to DRY up some code.
- Loading branch information
1 parent
15b25b2
commit 73c5750
Showing
1 changed file
with
10 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters