Bulk NIS Users Password Change

Hi All,

I am having Solaris 5.10 acting as NIS.

How do i change multiple user password in NIS in a batch.

I have predefined users with their passwords to be set:

Example:

user1 password1
user2 password2

Pls advise.