Update to methods.

uidNumber and gidNumber calculations assumed only one LDAP server.

Also update methods so that the functions are called automatically.