|
| Delete User in different location |
 |
Wed, 07 May 2008 10:26:01 GMT |
Hi
Some background description: I created an workflow such that when I
created an OU=module1 in a container (OU=Applications), an account is
created in another container (OU=Application Accounts). So if I create
another OU=module2 in the container (OU=Applications) , another account
is created in the container (OU=Application Accounts). See below for a
clearer picture.
OU=module1, OU=Applications cn=module1, OU=Application Accounts
OU=module2, OU=Applications cn=module2, OU=Application Accounts
. .
. .
OU=module5, OU=Applications cn=module5, OU=Application Accounts
I want to create another workflow such that if I delete the OU=module1
in the container (OU=Applications), the account (CN=module1) in the
container (OU=Application Accounts) is also deleted. The problem I
faced is I do not know how to formulate the Entity dn for deleting the
account (CN=module1) as the account is in different container. For
deleting the OU=module1, I know the Entity dn is set as
"flowdata.get('start/request_form/ou'). Please help. Thanks in
advance.
Alan
--
yesyys
------------------------------------------------------------------------
yesyys's Profile: http://forums.novell.com/member.php?userid=16554
View this thread: http://forums.novell.com/showthread.php?t=326927
|
| Post Reply
|
| Re: Delete User in different location |
 |
Wed, 07 May 2008 11:12:25 GMT |
On 05/07/2008 12:26 PM, yesyys wrote:
> Hi
>
> Some background description: I created an workflow such that when I
> created an OU=module1 in a container (OU=Applications), an account is
> created in another container (OU=Application Accounts). So if I create
> another OU=module2 in the container (OU=Applications) , another account
> is created in the container (OU=Application Accounts). See below for a
> clearer picture.
>
> OU=module1, OU=Applications cn=module1, OU=Application Accounts
> OU=module2, OU=Applications cn=module2, OU=Application Accounts
> . .
> . .
> OU=module5, OU=Applications cn=module5, OU=Application Accounts
>
> I want to create another workflow such that if I delete the OU=module1
> in the container (OU=Applications), the account (CN=module1) in the
> container (OU=Application Accounts) is also deleted. The problem I
> faced is I do not know how to formulate the Entity dn for deleting the
> account (CN=module1) as the account is in different container. For
> deleting the OU=module1, I know the Entity dn is set as
> "flowdata.get('start/request_form/ou'). Please help. Thanks in
> advance.
>
> Alan
>
>
You will need to parse 'start/request_form/ou' to extract module1 value,
regular expression would be of help here. Use a mapping activity to
create the new flowdata with the value, say called objectName
Then your DN expression will be:
|
| Post Reply
|
| Re: Delete User in different location |
 |
Thu, 08 May 2008 02:26:02 GMT |
Hi
How to parse 'start/request_form/ou' to extract module1 value? Using
JavaScript? I have no experience in writing JavaScript. Mind to write a
sample script on extracting the value for my reference?
U mentioned about using the mapping activity to create the new
flowdata. There is Source Expression and Target Expression. I have read
the documentation on the mapping actvity. I am not very clear of what I
should put in the Source Expression and Target Expression for this
situation.
Thanks
Alan
jgdasilva;1552418 Wrote:
> On 05/07/2008 12:26 PM, yesyys wrote:
>
> > Hi
> >
> > Some background description: I created an workflow such that when I
> > created an OU=module1 in a container (OU=Applications), an account
> is
> > created in another container (OU=Application Accounts). So if I
> create
> > another OU=module2 in the container (OU=Applications) , another
> account
> > is created in the container (OU=Application Accounts). See below for
> a
> > clearer picture.
> >
> > OU=module1, OU=Applications cn=module1, OU=Application Accounts
> > OU=module2, OU=Applications cn=module2, OU=Application Accounts
> > . .
> > . .
> > OU=module5, OU=Applications cn=module5, OU=Application Accounts
> >
> > I want to create another workflow such that if I delete the
> OU=module1
> > in the container (OU=Applications), the account (CN=module1) in the
> > container (OU=Application Accounts) is also deleted. The problem I
> > faced is I do not know how to formulate the Entity dn for deleting
> the
> > account (CN=module1) as the account is in different container. For
> > deleting the OU=module1, I know the Entity dn is set as
> > "flowdata.get('start/request_form/ou'). Please help. Thanks in
> > advance.
> >
> > Alan
> >
> >
>
>
> You will need to parse 'start/request_form/ou' to extract module1
> value,
> regular expression would be of help here. Use a mapping activity to
> create the new flowdata with the value, say called objectName
>
> Then your DN expression will be:
>
> 'CN=' + flowdata.get('objectName') + ',OU=Application Accounts'
--
yesyys
------------------------------------------------------------------------
yesyys's Profile: http://forums.novell.com/member.php?userid=16554
View this thread: http://forums.novell.com/showthread.php?t=326927
|
| Post Reply
|
| Re: Delete User in different location |
 |
Thu, 08 May 2008 05:29:22 GMT |
On 05/08/2008 04:26 AM, yesyys wrote:
> Hi
>
> How to parse 'start/request_form/ou' to extract module1 value? Using
> JavaScript? I have no experience in writing JavaScript. Mind to write a
> sample script on extracting the value for my reference?
>
> U mentioned about using the mapping activity to create the new
> flowdata. There is Source Expression and Target Expression. I have read
> the documentation on the mapping actvity. I am not very clear of what I
> should put in the Source Expression and Target Expression for this
> situation.
>
> Thanks
> Alan
>
The Target expression is the variable you want to create and the source
is the expression of where the value you will put in the target.
So if you have a input with the new module such as:
flowdata.newlocaion
Your source expression will be something like:
(function () {
var newName = flowdata.get('newlocation').toString().match(/OU=(.*),.*/);
return newName[0];
})();
Target: flowdata.newName
You may want to get a good JavaScript reference (O'Rielly books are
usally pretty good) or find something online. Also google can be a good
tool to find code examples.
Also look into training on the Roles Based Provisioning Module. This
|
| Post Reply
|
| Re: Delete User in different location |
 |
Thu, 08 May 2008 09:06:02 GMT |
Hi
Sorry, pardon me for my inexperience in the JavaScript. May I know what
is to be put inside the match () function? Is it something like below?
(function () {
var newName =
flowdata.get("start/request_form/orgUnit").toString().match("OU=m
odule*");
return newName[0];
})();
I got error message "Dataitem [MAP0] with expression [...] failed to
evaluate. I know the match () function is to match a string inside the
bracket against some string specified. for example,
var str="Hello world!";
document.write(str.match("world") + "<br />");
Output: world
Thanks
Alan
jgdasilva;1553207 Wrote:
> On 05/08/2008 04:26 AM, yesyys wrote:
>
> > Hi
> >
> > How to parse 'start/request_form/ou' to extract module1 value? Using
> > JavaScript? I have no experience in writing JavaScript. Mind to write
> a
> > sample script on extracting the value for my reference?
> >
> > U mentioned about using the mapping activity to create the new
> > flowdata. There is Source Expression and Target Expression. I have
> read
> > the documentation on the mapping actvity. I am not very clear of what
> I
> > should put in the Source Expression and Target Expression for this
> > situation.
> >
> > Thanks
> > Alan
> >
>
> The Target expression is the variable you want to create and the
> source
> is the expression of where the value you will put in the target.
>
> So if you have a input with the new module such as:
>
> flowdata.newlocaion
>
>
> Your source expression will be something like:
>
> (function () {
> var newName =
> flowdata.get('newlocation').toString().match(/OU=(.*),.*/);
> return newName[0];
> })();
>
> Target: flowdata.newName
>
> You may want to get a good JavaScript reference (O'Rielly books are
> usally pretty good) or find something online. Also google can be a
> good
> tool to find code examples.
>
> Also look into training on the Roles Based Provisioning Module. This
> stuff can get pretty complicated.
--
yesyys
------------------------------------------------------------------------
yesyys's Profile: http://forums.novell.com/member.php?userid=16554
View this thread: http://forums.novell.com/showthread.php?t=326927
|
| Post Reply
|
|
|