convert age to int
Merge pull request #2 from chaoranxie/patch-1

convert age parameter into a integer type
add support for ldap authentication