Adds or updates a private password credential.
If oldPassword is not null, the oldPassword will first be
checked (authenticated).
Parameters: uid - The LDAP uid attribute. Parameters: oldPassword - The old PasswordCredential. Parameters: newPassword - The new PasswordCredential. throws: SecurityException - when the lookup fails because the user does notexist or the non-null password is not correct. Throws aSecurityException.