Fix some issues with the ldap scripts

Submitted by: Rodney Lewis <rodney@tortoiseblog.com>
Merge branch 'master' of github.com:pcbsd/pcbsd