setNoIDFile causes registerNewUser to fail

Hi,I am trying to register a user without creating an id file for him/her. Part of my code looks as shown below. m_reg is a Registration’s object, set appropriately. However when I run this code I get a notes exception saying “NotesException: Required registration argument not provided”. I have also tried switching the order of statement 2) and 3), but no success. Can anyone please help?

Also, “m_reg.setRegistrationServer(sServer);” call is done before this code and I have verfied that RegistrationServer property is set.

Thanks a lot,

Ashutosh

  1. m_reg.setNoIDFile(true);

  2. m_reg.setStoreIDInAddressBook(false);

  3. result = m_reg.registerNewUser(

                 (String) parameters.get("LastName"),sIdFile, null, 
    
                 (String) parameters.get("FirstName"),
    
                 (String) parameters.get("MiddleName"), sCertPwd,
    
                 (String) parameters.get("Location"), 
    
                 (String) parameters.get("Comment"), sMailDB , null, 
    
                 (String) parameters.get("Password"), 
    
                 (String) parameters.get("AltFullName"), 
    
                 (String) parameters.get("AltFullNameLanguage"));
    

I

Subject: setNoIDFile causes registerNewUser to fail

I’d really need to understand what values you are supplying to the function but if you are not creating an ID then no certification happens (it doens’t use the cert ID you have specified) and I believe you must specify the “CertifierName” property on the NotesRegistration object.

Subject: setNoIDFile causes registerNewUser to fail

if you create an id-file along with registration it does work? why not leave isIDFile false, set isStoreIDInAB to false & delete (temporary) id-file afterwards?

is there a difference in person docs if you don’t create an id-file? maybe you could fix (delete) such fields afterwards?

Markus Seitz

markus.seitz@icodex.com