Subject: Move a user to another organisation with adminp using Lotus Script
Feedback Type: Question
Product Area: Other
Technical Area: Application Development
Platform: Windows
Release: 8.5.2
Reproducible: Not applicable
I am trying to use Lotus Script to move a user from one organisation to another. I have done this manualy using administrator so I know the basic setup is working but seem unable to duplicate this in script.
So CN=User Name/O=oldDomain
will become
CN=User Name/O=newDomain
I am using the following code:
strCertifierPath = path of the certifier file
for the new domain
strCertPassword = password of the certifier file for the new domain
oldDomain = old domain name
newDomain = new domain name
adminp.CertificateAuthorityOrg = "/" & oldDomain
adminp.CertifierFile = strCertifierPath
adminp.CertifierPassword = strCertPassword
'Do recertification
noteID=adminp.MoveUserInHierarchyRequest(userName, "O=" & newDomain, True)
If Err <> 0 Then
If CStr(Err) = "4000" Then
'what error handling should I put here to get the request to relaunch?
End If
End If
The error that I get in certlog is
ERROR:4000
ERROR MESSAGE: Notes error: The selected certifier is not an ancestor of the entity to be updated
This seems to imply that I need to use the original certifier in the process of changing to the new
So in my error handling for 4000 I was thinking of doing the Requests move user again code. BUt am not sure how that will differ from the original request.
Any ideas?
Feedback number WEBB8HUF73 created by Solve Problems on 06/15/2011
Status: Open
Comments: Also if I use noteID = adminp.RecertifyUser(userName) it does not work. Will play around with rename next