Hello, I have following policy

Code:
--------------------

if class name equal "User"
and if source attribute 'CN' available

set local variable("userCN", scope="policy", Attribute("CN"))
set local variable("genUID", scope="policy", XPath("External:newUid()"))
add source attribute value("Object Class", "posixAccount")
set source attribute value("uidNumber", Local Variable("genUID"))
set source attribute value("gidNumber", Local Variable("genUID"))
set source attribute value("homeDirectory", Local Variable("userCN")
set source attribute value("UID", Local Variable("userCN")

--------------------


here is the input in the trace log
<nds dtdversion="3.5" ndsversion="8.x">
<source>
<product version="3.6.10.4747">DirXML</product>
<contact>Novell, Inc.</contact>
</source>
<input>
<modify class-name="User" dest-dn="\META-TEST\data\people\prj1736_sta"
dest-entry-id="1528720" event-id="meta1#20150623170257#3#1">
<modify-attr attr-name="Object Class">
<add-value>
<value>posixAccount</value>
</add-value>
</modify-attr>
<modify-attr attr-name="uidNumber">
<remove-all-values/>
<add-value>
<value>100324362</value>
</add-value>
</modify-attr>
<modify-attr attr-name="gidNumber">
<remove-all-values/>
<add-value>
<value>100324362</value>
</add-value>
</modify-attr>
<modify-attr attr-name="homeDirectory">
<remove-all-values/>
<add-value>
<value>/home/prj1736_sta</value>
</add-value>
</modify-attr>
<modify-attr attr-name="UID">
<remove-all-values/>
<add-value>
<value>prj1736_sta</value>
</add-value>
</modify-attr>
</modify>
</input>
</nds>

but it result in error
DirXML Log Event -------------------
Driver: \META-TEST\system\services\idm\driverset1\meta-null-posixattrs
Channel: Subscriber
Status: Error
Message: Code(-9010) An exception occurred: novell.jclient.JCException:
modifyEntry -609 ERR_MISSING_MANDATORY

can experts tell me what required attribute is missing? Using Apache
Directory Studio, I can manually add uidNumber for an existing user
record with no problem by right click objectClass, add new value
"posixAccount", then followed the prompt entering uidNumber, gidNumber,
homeDirectory, uid. I think the driver is doing the same work, but why
it failed?


--
yiqian
------------------------------------------------------------------------
yiqian's Profile: https://forums.netiq.com/member.php?userid=9901
View this thread: https://forums.netiq.com/showthread.php?t=53748