Improved the flexibility of "kn-ldap" PHP commandline script