Changed search to comparison operator and not assignment.
Merge pull request #5 from kreeves/master

Search basedn fix.