Setting Multiple Different Passwords

Hi,

I have two resources which are assigned to all users.

When a new user is created, I generate two random passwords.

I would like the first password to be set on the first resource

and the second password to be set on the second resource.

Is this possible? I would I express this in XPRESS ?

Thanks,

John I

[357 byte] By [johnia] at [2007-11-27 6:44:29]
# 1

Anyone?

I know how to set the same password on a selected set of resource

accounts, but not how to set *different* passwords on different

resource accounts.

One workaround is to do this:

checkout userview

set password1 on resourceAccount1

checkin userview

checkout userview

set password2 on resourceAccount2

checkin userview

This should work, but it involves checking out the

userview twice, which is slow and inelegant.

Is there any way I could do this with one checkout/checkin ?

Thanks,

John I

johnia at 2007-7-12 18:15:48 > top of Java-index,Web & Directory Servers,Directory Servers...
# 2

> This should work, but it involves checking out the

> userview twice, which is slow and inelegant.

> Is there any way I could do this with one

> checkout/checkin ?

No because you only set password.password not accounts[$RESOURCE_NAME].password

YOu have to have an activity similar to the following and you then have to change which resource you're changing the password on

<Action id='1' application='com.waveset.session.WorkflowServices'>

<Argument name='op' value='checkoutView'/>

<Argument name='type' value='User'/>

<Argument name='id' value='$(accountId)'/>

<Argument name='authorized' value='true'/>

<Argument name='processInputs.isCreate' value='true'/>

</Action>

<Action id='2' checkError='true'>

<Condition>

<isFalse>

<ref>WF_ACTION_ERROR</ref>

</isFalse>

</Condition>

<expression>

<block>

<set name='view.password.password'>

<ref>myRandomPassword</ref>

</set>

<set name='view.password.confirmPassword'>

<ref>myRandomPassword</ref>

</set>

<set name='view.password.selectAll'>

<s>false</s>

</set>

<set>

<ref>view.password.accounts[Lighthouse]</ref>

<s>selected</s>

<Boolean>true</Boolean>

</set>

<set>

<ref>view.password.accounts[Lighthouse]</ref>

<s>expireFeature</s>

<Boolean>false</Boolean>

</set>

</block>

</expression>

</Action>

<Action id='3' application='com.waveset.session.WorkflowServices' checkError='true'>

<Comments>Checkin the disable view, note that this will launch another process.</Comments>

<Condition>

<isFalse>

<ref>WF_ACTION_ERROR</ref>

</isFalse>

</Condition>

<Argument name='op' value='checkinView'/>

<Argument name='view' value='$(view)'/>

<Argument name='authorized' value='true'/>

</Action>

<Transition to='Change Password Expiry'/>

<WorkflowEditor x='251' y='34'/>

</Activity>

calumsma at 2007-7-12 18:15:48 > top of Java-index,Web & Directory Servers,Directory Servers...
# 3
So if I set:<set name='accounts[resource1].password'><s>pw1</s></set><set name='accounts[resource2].password'><s>pw2</s></set>would this work?Thanks,John I
johnia at 2007-7-12 18:15:48 > top of Java-index,Web & Directory Servers,Directory Servers...