I'm trying to rename an entry in a OpenLDAP db using "do_rename_object"
in IDM and the LDAP driver. The entry has an initial DN of:
cn=paultest, ou=people,dc=umich,dc=edu
I want to rename the entry and change the rdn attribute at the same
time
such that the entry's dn is:
uid=xpaul,ou=people,dc=umich,dc=edu

The shim insists on forcing the rdn attribute to be 'cn'. How can I
stop the
shim from doing this?

part of the document submitted to the shim:
<rename class-name="umichPerson"
event-id="messageinabottle#20090116192859#3#1"
qualified-src-dn="dc=edu\dc=umich\OU=People\uniqueID=xpaul"
src-dn="\UMICH-DEV-03\edu\umich\People\xpaul" src-entry-id="446534">
<association>cn=paul t
uniqname,ou=people,dc=umich,dc=edu</association>
<new-name>uid=xpaul,OU=People,dc=umich,dc=edu</new-name>
</rename>

and the shim:
[01/16/09 14:28:59.916]:umod ST:umod_changelog: LDAP Rename cn=paul t
uniqname,ou=people,dc=umich,dc=edu
newRDN=cn=uid=xpaul,OU=People,dc=umich,dc=edu
deleteOldRdn=false



Novell eDirectory 8.8
IDM 3.5.11

Here is the document submitted to the shim:

[01/16/09 14:28:59.878]:umod ST:Submitting document to subscriber
shim:
[01/16/09 14:28:59.879]:umod ST:
<nds dtdversion="3.5" ndsversion="8.x">
<source>
<product version="3.5.11.20080307 ">DirXML</product>
<contact>Novell, Inc.</contact>
</source>
<input>
<modify class-name="umichPerson"
event-id="messageinabottle#20090116192859#3#1" from-merge="true"
qualified-src-dn="dc=edu\dc=umich\OU=People\uniqueID=xpaul"
src-dn="\UMICH-DEV-03\edu\umich\People\xpaul" src-entry-id="446534">
<association>cn=paul t
uniqname,ou=people,dc=umich,dc=edu</association>
<modify-attr attr-name="OU">
<remove-all-values/>
</modify-attr>
<modify-attr attr-name="homepostaladdress">
<remove-all-values/>
</modify-attr>
<modify-attr attr-name="homepostaladdress">
<remove-all-values/>
</modify-attr>
<modify-attr attr-name="uid">
<remove-all-values/>
</modify-attr>
<modify-attr attr-name="registrationStatus">
<remove-all-values/>
</modify-attr>
<modify-attr attr-name="postalAddress">
<remove-all-values/>
</modify-attr>
<modify-attr attr-name="OU">
<add-value>
<value timestamp="1232134139#14"
type="string">Alumni</value>
<value timestamp="1232134139#15" type="string">ITCS-Info Tech
Central Srvs - Faculty and Staff</value>
<value timestamp="1232134139#16" type="string">Info Tech
Central Services - Faculty and Staff</value>
<value timestamp="1232134139#17" type="string">Int
Med-Nephrology - Faculty and Staff</value>
<value timestamp="1232134139#18" type="string">Medical School
- Faculty and Staff</value>
</add-value>
</modify-attr>
<modify-attr attr-name="sn">
<add-value>
<value timestamp="1232134139#19" type="string">xpaul</value>
</add-value>
</modify-attr>
<modify-attr attr-name="uid">
<add-value>
<value timestamp="1232134139#50" type="string">xpaul</value>
</add-value>
</modify-attr>
<modify-attr attr-name="objectClass">
<add-value>
<value type="string">posixAccount</value>
</add-value>
</modify-attr>
<modify-attr attr-name="loginShell">
<remove-all-values/>
<add-value>
<value type="string">/bin/whocares</value>
</add-value>
</modify-attr>
<modify-attr attr-name="homeDirectory">
<remove-all-values/>
<add-value>
<value type="string">/user/xpaul</value>
</add-value>
</modify-attr>
<modify-attr attr-name="uidNumber">
<remove-all-values/>
<add-value>
<value type="string">123824</value>
</add-value>
</modify-attr>
<modify-attr attr-name="gidNumber">
<remove-all-values/>
<add-value>
<value type="string">1234</value>
</add-value>
</modify-attr>
<modify-attr attr-name="ferpa">
<remove-all-values/>
</modify-attr>
<modify-attr attr-name="displayname">
<remove-all-values/>
<add-value>
<value>NonBlank DisplayName</value>
</add-value>
</modify-attr>
<modify-attr attr-name="donotpublish">
<remove-all-values/>
</modify-attr>
<modify-attr attr-name="hidecn">
<remove-all-values/>
</modify-attr>
<modify-attr attr-name="campus">
<remove-all-values/>
</modify-attr>
<modify-attr attr-name="classstanding">
<remove-all-values/>
</modify-attr>
<modify-attr attr-name="term">
<remove-all-values/>
</modify-attr>
<modify-attr attr-name="termstart">
<remove-all-values/>
</modify-attr>
<modify-attr attr-name="umichLegalNameOfRecord">
<remove-all-values/>
</modify-attr>
<modify-attr attr-name="umichPreferredNameOfRecord">
<remove-all-values/>
</modify-attr>
</modify>
<rename class-name="umichPerson"
event-id="messageinabottle#20090116192859#3#1"
qualified-src-dn="dc=edu\dc=umich\OU=People\uniqueID=xpaul"
src-dn="\UMICH-DEV-03\edu\umich\People\xpaul" src-entry-id="446534">
<association>cn=paul t
uniqname,ou=people,dc=umich,dc=edu</association>
<new-name>uid=xpaul,OU=People,dc=umich,dc=edu</new-name>
</rename>
</input>
</nds>
[01/16/09 14:28:59.888]:umod ST:umod_changelog: LDAP Modify: cn=paul t
uniqname,ou=people,dc=umich,dc=edu
LDAPModification: (operation=replace,(LDAPAttribute: {type='OU',
values='Alumni','ITCS-Info Tech Central Srvs - Faculty and Staff','Info
Tech Central Services - Faculty and Staff','Int Med-Nephrology - Faculty
and Staff','Medical School - Faculty and Staff'}))
LDAPModification: (operation=replace,(LDAPAttribute:
{type='homepostaladdress'}))
LDAPModification: (operation=replace,(LDAPAttribute:
{type='homepostaladdress'}))
LDAPModification: (operation=replace,(LDAPAttribute: {type='uid',
value='xpaul'}))
LDAPModification: (operation=replace,(LDAPAttribute:
{type='registrationStatus'}))
LDAPModification: (operation=replace,(LDAPAttribute:
{type='postalAddress'}))
LDAPModification: (operation=add,(LDAPAttribute: {type='sn',
value='xpaul'}))
LDAPModification: (operation=add,(LDAPAttribute: {type='objectClass',
value='posixAccount'}))
LDAPModification: (operation=replace,(LDAPAttribute:
{type='loginShell', value='/bin/whocares'}))
LDAPModification: (operation=replace,(LDAPAttribute:
{type='homeDirectory', value='/user/xpaul'}))
LDAPModification: (operation=replace,(LDAPAttribute:
{type='uidNumber', value='123824'}))
LDAPModification: (operation=replace,(LDAPAttribute:
{type='gidNumber', value='1234'}))
LDAPModification: (operation=replace,(LDAPAttribute:
{type='ferpa'}))
LDAPModification: (operation=replace,(LDAPAttribute:
{type='displayname', value='NonBlank DisplayName'}))
LDAPModification: (operation=replace,(LDAPAttribute:
{type='donotpublish'}))
LDAPModification: (operation=replace,(LDAPAttribute:
{type='hidecn'}))
LDAPModification: (operation=replace,(LDAPAttribute:
{type='campus'}))
LDAPModification: (operation=replace,(LDAPAttribute:
{type='classstanding'}))
LDAPModification: (operation=replace,(LDAPAttribute: {type='term'}))
LDAPModification: (operation=replace,(LDAPAttribute:
{type='termstart'}))
LDAPModification: (operation=replace,(LDAPAttribute:
{type='umichLegalNameOfRecord'}))
LDAPModification: (operation=replace,(LDAPAttribute:
{type='umichPreferredNameOfRecord'}))
[01/16/09 14:28:59.916]:umod ST:umod_changelog: LDAP Rename cn=paul t
uniqname,ou=people,dc=umich,dc=edu
newRDN=cn=uid=xpaul,OU=People,dc=umich,dc=edu
deleteOldRdn=false
[01/16/09 14:28:59.917]:umod ST:umod_changelog:
LDAPInterface.doLDAPRename() Error: LDAPException: Invalid DN Syntax
(34) Invalid DN Syntax
LDAPException: Server Message: invalid new RDN
LDAPException: Matched DN:
[01/16/09 14:28:59.918]:umod ST:SubscriptionShim.execute() returned:


--
prtnovell
------------------------------------------------------------------------
prtnovell's Profile: http://forums.novell.com/member.php?userid=3716
View this thread: http://forums.novell.com/showthread.php?t=357163