I have been trying to follow the documentation on how to reassign
GroupWise resources when the owner is deleted. I must be missing
something because it doesn't work. Here is the segment of a level 3
trace from the GroupWise driver and the remote loader. I have found
another reference to this process in some older documentation and there
it stated the the variable needed was gw:resource-owner-dn so I have
tried that as well. After that didn't work I tried just
resource-owner-dn.
Does anyone have this working? The default resource owner logic works
just fine but I want to reassign them to a specific user.
DRIVER TRACE ************************
<nds dtdversion="4.0" ndsversion="8.x">
<source>
<product edition="Advanced" version="4.0.1.0">DirXML</product>
<contact>Novell, Inc.</contact>
</source>
<input>
<delete cached-time="20130328222026.489Z" class-name="User"
event-id="vcedirtest2#20130328222026#3#1:f78d1a9d-8823-48fa-64b8-9d1a8df72388"
qualified-src-dn="O=CHC\OU=PHO\CN=vand4313d"
src-dn="\PSOFT-FP\CHC\PHO\vand4313d" src-entry-id="46680"
timestamp="1348766981#1">
<association
state="associated">mps-dom.mps-po.vand4313d{106}FB8E5901-17F0-0000-83DF-F6DE532A26F4</association>
</delete>
</input>
</nds>
Applying policy: %+C%14CCHC-GW-sub-otp-ResourceOwner%-C.
Applying to delete #1.
Evaluating selection criteria for rule 'Specify Resource Owner DN
for User Delete'.
(if-operation equal "delete") = TRUE.
(if-class-name equal "User") = TRUE.
Rule selected.
Evaluating selection criteria for rule 'Specify Resource Owner DN
for User Delete'.
(if-operation equal "delete") = TRUE.
(if-class-name equal "User") = TRUE.
Rule selected.
Applying rule 'Specify Resource Owner DN for User Delete'.
Action:
do-set-local-variable("OWNERPO",scope="policy",token-parse-dn(dest-dn-format="dot",length="1",src-dn-format="dot",start="1",token-association())).

arg-string(token-parse-dn(dest-dn-format="dot",length="1",src-dn-format="dot",start="1",token-association()))

token-parse-dn(dest-dn-format="dot",length="1",src-dn-format="dot",start="1",token-association())

token-parse-dn(dest-dn-format="dot",length="1",src-dn-format="dot",start="1",token-association())
token-association()
Token Value:
"mps-dom.mps-po.vand4313d{106}FB8E5901-17F0-0000-83DF-F6DE532A26F4".
Arg Value:
"mps-dom.mps-po.vand4313d{106}FB8E5901-17F0-0000-83DF-F6DE532A26F4".
Token Value: "mps-po".
Arg Value: "mps-po".
Action: do-if().
Evaluating conditions.
(if-local-variable 'OWNERPO' equal "mps-po") = TRUE.
Performing if actions.
Action:
do-set-xml-attr("gw:resource-ownerdn",".","\PSOFT-FP\CHC\GroupWise\mps-po\mpsDLRS
owner").
arg-string("\PSOFT-FP\CHC\GroupWise\mps-po\mpsDLRS owner")
token-text("\PSOFT-FP\CHC\GroupWise\mps-po\mpsDLRS
owner")
Arg Value: "\PSOFT-FP\CHC\GroupWise\mps-po\mpsDLRS
owner".
Action: do-if().
Evaluating conditions.
(if-local-variable 'OWNERPO' equal "stp-po") = FALSE.
Performing else actions.
Policy returned:

GroupWise Remote Loader
Trace********************************************* *********
DirXML: [03/28/13 17:20:27.00]: TRACE: <nds dtdversion="4.0"
ndsversion="8.x">
<source>
<product edition="Advanced"
version="4.0.1.0">DirXML</product>
<contact>Novell, Inc.</contact>
</source>
<input>
<delete cached-time="20130328222026.489Z"
class-name="User"
event-id="vcedirtest2#20130328222026#3#1:f78d1a9d-8823-48fa-64b8-9d1a8df72388"
gw:resource-ownerdn="\PSOFT-FP\CHC\GroupWise\mps-po\mpsDLRS owner"
qualified-src-dn="O=CHC\OU=PHO\CN=vand4313d"
src-dn="\PSOFT-FP\CHC\PHO\vand4313d" src-entry-id="46680"
timestamp="1348766981#1">
<association
state="associated">mps-dom.mps-po.vand4313d{106}FB8E5901-17F0-0000-83DF-F6DE532A26F4</association>
</delete>
</input>
</nds>
Thu Mar 28 17:20:27 CDT 2013
domain = /srv/mail/chc-dom
ndsEventID =
vcedirtest2#20130328222026#3#1:f78d1a9d-8823-48fa-64b8-9d1a8df72388
convertToDotFormat>in = \PSOFT-FP\CHC\PHO\vand4313d
convertEscapeSeq>new token = PSOFT-FP
getSegment>segment = PSOFT-FP
convertEscapeSeq>new token = CHC
getSegment>segment = CHC
convertEscapeSeq>new token = PHO
getSegment>segment = PHO
convertEscapeSeq>new token = vand4313d
getSegment>segment = vand4313d
convertToDotFormat>out = vand4313d.PHO.CHC
originalEvent = null
classification = null
Remote Loader: Waiting for receive...
GWobject.lookup>unsafeState 5 = 0
GWobject.lookup>moveStatus 3 = 0 (0)
GWobject.lookup>externalSync = false
GWobject.lookup>found object mps-dom.mps-po.vand4313d
Delete Event
Deleting object mps-dom.mps-po.vand4313d
GWobject.lookup>unsafeState 5 = 0
GWobject.lookup>moveStatus 3 = 0 (0)
GWobject.lookup>externalSync = false
GWobject.lookup>found object mps-dom.mps-po.vand4313d
getObjDN>Object DN = vand4313d.PHO.CHC
newResourceOwner = null
*** No resource-owner-dn specified ... using default
getObjDN>Object DN = MPS Meeting Room11.Resources.GroupWise.CHC
convertToSlashFormat>in = MPS Meeting Room11.Resources.GroupWise.CHC
convertEscapeSeq>new token = MPS Meeting Room11
getSegment>segment = MPS Meeting Room11
convertEscapeSeq>new token = Resources
getSegment>segment = Resources
convertEscapeSeq>new token = GroupWise
getSegment>segment = GroupWise
convertEscapeSeq>new token = CHC
getSegment>segment = CHC
convertToSlashFormat>out = \PSOFT-FP\CHC\GroupWise\Resources\MPS Meeting
Room11
Reassigning resource MPS Meeting Room11 from vand4313d to
IS_adminmps-po
queryNDS>
GWsubscriptionShim.exchangeDocs - Sending query to NDS ...


--
puot7808
------------------------------------------------------------------------
puot7808's Profile: https://forums.netiq.com/member.php?userid=393
View this thread: https://forums.netiq.com/showthread.php?t=47435