Fixing validation of id parameter.
[PLINK-507] - Support for ActiveDirectory deployments with sAMAccountName as loginName of users.
Merging changes from PR 341.
Merge pull request #345 from pedroigor/master

[PLINK-507] - Support for ActiveDirectory deployments with sAMAccountName as loginName of users.