Use maintuser_pwd_expiration to set the password expiration interval for the maintenance user at the server level.
Replication Server automatically changes the password when the password expires. Before you set a nonzero value for maintuser_pwd_expiration, you must enable maintenance user password protection by setting hide_maintuser_pwd to on
configure replication server set maintuser_pwd_expiration to 14
The range of values is 0 to 32,767 days. The default password expiration interval for the maintenance user is the value set in the Replication Server password_expiration option. The default for password_expiration is 0 days which means the password does not expire.