Hi,

sorry to bother you but we have a problem with the function unique name.

This function works well for two groups named testgroup but when space
are added to the CN we saw the error "Entry already exists" and the
unique name function returned no results.

Can someone tell us the limit of this function ? When it doesn't work and
what solution can be used when this function does not work ?

thank you very much

Laurence

the traces:

[11/07/07 09:32:54.465]: eDirInternes PT: Policy returned:
[11/07/07 09:32:54.466]: eDirInternes PT:
<nds dtdversion="3.0" ndsversion="8.x">
<source>
<product version="3.0.10.20060630 ">DirXML</product>
<contact>Novell, Inc.</contact>
</source>
<input>
<add class-name="Group" event-id="CONTAINER6#20071107083229#99#0"
qualified-src-dn="O=Organization\OU=S_CONTAINER1\OU=REZ1
\OU=VRS\OU=CONTAINER2\CN=GROUP TEST PROJECT" src-
dn="\ELAB_Organization\Organization\S_CONTAINER1\R EZ1\VRS\CONTAINER2
\GROUP TEST PROJECT" src-entry-id="34461">
<association>{806923B5-AC18-db11-BFA7-000C29751B71}</association>
<add-attr attr-name="CN">
<value timestamp="1153481599#2" type="string">CN=GROUP TEST
PROJECT</value>
<value naming="true" timestamp="1153481599#10"
type="string">GROUP TEST PROJECT</value>
</add-attr>
<add-attr attr-name="Description">
<value timestamp="1153481599#4" type="string">description of
group</value>
</add-attr>
<add-attr attr-name="GUID">
<value timestamp="1153481599#11"
type="octet">ffffffffffffffffffffff</value>
</add-attr>
</add>
</input>
</nds>
[11/07/07 09:32:54.475]: eDirInternes PT: Applying object placement
policies.
[11/07/07 09:32:54.476]: eDirInternes PT: Applying policy: %+C%
14CPlacement Rule%-C.
[11/07/07 09:32:54.490]: eDirInternes PT: Evaluating selection
criteria for rule 'Groups'.
[11/07/07 09:32:54.491]: eDirInternes PT: (if-class-name
equal "Group") = TRUE.
[11/07/07 09:32:54.492]: eDirInternes PT: Rule selected.
[11/07/07 09:32:54.492]: eDirInternes PT: Applying rule 'Groups'.
[11/07/07 09:32:54.493]: eDirInternes PT: Action: do-set-local-
variable("valueOfCNGroup",token-op-attr("CN")).
[11/07/07 09:32:54.494]: eDirInternes PT: arg-string(token-op-attr
("CN"))
[11/07/07 09:32:54.495]: eDirInternes PT: token-op-attr("CN")
[11/07/07 09:32:54.495]: eDirInternes PT: Token
Value: "CN=GROUP TEST PROJECT".
[11/07/07 09:32:54.496]: eDirInternes PT: Arg Value: "CN=GROUP
TEST PROJECT".
[11/07/07 09:32:54.497]: eDirInternes PT: Action: do-strip-xpath("*
[@attr-name='CN']").
[11/07/07 09:32:54.498]: eDirInternes PT: Action: do-set-op-dest-dn
(arg-dn(token-global-variable("Global-Racine")+token-global-variable
("Global-value1")+"\"+token-unique-name("CN",arg-dn(token-global-variable
("Global-Racine")+token-global-variable("Global-value1")),token-local-
variable("valueOfCNGroup")))).
[11/07/07 09:32:54.501]: eDirInternes PT: arg-dn(token-global-
variable("Global-Racine")+token-global-variable("Global-value1")
+"\"+token-unique-name("CN",arg-dn(token-global-variable("Global-Racine")
+token-global-variable("Global-value1")),token-local-variable
("valueOfCNGroup")))
[11/07/07 09:32:54.503]: eDirInternes PT: token-global-variable
("Global-Racine")
[11/07/07 09:32:54.504]: eDirInternes PT: Token
Value: "project1".
[11/07/07 09:32:54.505]: eDirInternes PT: token-global-variable
("Global-value1")
[11/07/07 09:32:54.506]: eDirInternes PT: Token
Value: "\container3\container4\SYS\Groupes".
[11/07/07 09:32:54.507]: eDirInternes PT: token-text("\")
[11/07/07 09:32:54.507]: eDirInternes PT: token-unique-name
("CN",arg-dn(token-global-variable("Global-Racine")+token-global-variable
("Global-value1")),token-local-variable("valueOfCNGroup"))
[11/07/07 09:32:54.509]: eDirInternes PT: arg-dn(token-global-
variable("Global-Racine")+token-global-variable("Global-value1"))
[11/07/07 09:32:54.510]: eDirInternes PT: token-global-
variable("Global-Racine")
[11/07/07 09:32:54.511]: eDirInternes PT: Token
Value: "project1".
[11/07/07 09:32:54.512]: eDirInternes PT: token-global-
variable("Global-value1")
[11/07/07 09:32:54.513]: eDirInternes PT: Token
Value: "\container3\container4\SYS\Groupes".
[11/07/07 09:32:54.514]: eDirInternes PT: Arg
Value: "project1\container3\container4\SYS\Groupes".
[11/07/07 09:32:54.515]: eDirInternes PT: arg-string(token-
local-variable("valueOfCNGroup"))
[11/07/07 09:32:54.516]: eDirInternes PT: token-local-
variable("valueOfCNGroup")
[11/07/07 09:32:54.517]: eDirInternes PT: Token
Value: "CN=GROUP TEST PROJECT".
[11/07/07 09:32:54.518]: eDirInternes PT: Arg
Value: "CN=GROUP TEST PROJECT".
[11/07/07 09:32:54.518]: eDirInternes PT: Query from policy
[11/07/07 09:32:54.519]: eDirInternes PT:
<nds dtdversion="3.0" ndsversion="8.x">
<source>
<product version="3.0.10.20060630 ">DirXML</product>
<contact>Novell, Inc.</contact>
</source>
<input>
<query class-name="Group" dest-dn="project1\container3\container4
\SYS\Groupes" scope="subtree">
<search-class class-name="Group"/>
<search-attr attr-name="CN">
<value>CN=GROUP TEST PROJECT</value>
</search-attr>
<read-attr/>
</query>
</input>
</nds>
[11/07/07 09:32:54.524]: eDirInternes PT: Pumping XDS to
eDirectory.
[11/07/07 09:32:54.525]: eDirInternes PT: Performing
operation query for project1\container3\container4\SYS\Groupes.
[11/07/07 09:32:54.528]: eDirInternes PT: Query from policy
result
[11/07/07 09:32:54.529]: eDirInternes PT:
<nds dtdversion="3.0" ndsversion="8.x">
<source>
<product version="3.0.10.20060630 ">DirXML</product>
<contact>Novell, Inc.</contact>
</source>
<output>
<status event-id="0" level="success"></status>
</output>
</nds>
[11/07/07 09:32:54.531]: eDirInternes PT: Token
Value: "CN=GROUP TEST PROJECT".
[11/07/07 09:32:54.532]: eDirInternes PT: Arg Value: "project1
\container3\container4\SYS\Groupes\CN=GROUP TEST PROJECT".
[11/07/07 09:32:54.534]: eDirInternes PT: Policy returned:
[11/07/07 09:32:54.534]: eDirInternes PT:
<nds dtdversion="3.0" ndsversion="8.x">
<source>
<product version="3.0.10.20060630 ">DirXML</product>
<contact>Novell, Inc.</contact>
</source>
<input>
<add class-name="Group" dest-dn="project1\container3\container4
\SYS\Groupes\CN=GROUP TEST PROJECT" event-
id="CONTAINER6#20071107083229#99#0" qualified-src-
dn="O=Organization\OU=S_CONTAINER1\OU=REZ1\OU=VRS\ OU=CONTAINER2\CN=GROUP
TEST PROJECT" src-dn="\ELAB_Organization\Organization\S_CONTAINER1\R EZ1
\VRS\CONTAINER2\GROUP TEST PROJECT" src-entry-id="34461">
<association>{806923B5-AC18-db11-BFA7-000C29751B71}</association>
<add-attr attr-name="Description">
<value timestamp="1153481599#4" type="string">description of
group</value>
</add-attr>
<add-attr attr-name="GUID">
<value timestamp="1153481599#11"
type="octet">ffffffffffffffffffffff</value>
</add-attr>
</add>
</input>
</nds>
[11/07/07 09:32:54.542]: eDirInternes PT: Found non-class attribute GUID.
[11/07/07 09:32:54.543]: eDirInternes PT: Applying command transformation
policies.