updating pkey in the case of logging thru LDAP