Hello,
I’m trying to develop a application using java and the domino corba interface to automatically create mail files on a Domino server.
I’ve developed a test code just to get things started, but it does nothing but return a “NotesException: Required registration argument provided”, error code 4299.
The code connects to the server (the print statements work), so there is something with the registration that isn’t working…
Here is code:
public DominoConnectorTest()
{
try
{
String args[] = new String[2];
args[0] = "-ORBEnableSSLSecurity";
args[1] = "-HTTPEnableSSLSecurity";
String ior = NotesFactory.getIOR("server.domain.com",args);
Session session = NotesFactory.createSessionWithIOR(ior, username, pass);
System.out.println(session.getServerName());
System.out.println(session.getNotesVersion());
Registration reg = session.createRegistration();
reg.setCreateMailDb(true);
reg.setNoIDFile(true);
reg.setShortName("gro.harlem.brundtland");
reg.setMailInternetAddress("gro.harlem.brundtland@domain.com");
reg.setStoreIDInMailfile(false);
reg.setUpdateAddressBook(false);
reg.setMailTemplateName("dwa7.ntf");
reg.setStoreIDInAddressBook(false);
reg.setRegistrationServer("CN=SERVER01");
reg.setMinPasswordLength(5); // password strength
reg.setIDType(Registration.ID_HIERARCHICAL);
reg.setRegistrationLog("log.nsf");
reg.setCertifierIDFile("/path/to/data/cert.id");
//reg.setOrgUnit("AceHardwareNE");
DateTime dt = session.createDateTime("Today");
dt.setNow();
dt.adjustYear(1);
reg.setExpiration(dt);
reg.registerNewUser("Brundtland", "", "CN=SERVER01/OU=SERVERS/O=MYORG", "Gro", "", "AceHardware", "","delete me","mail\\jallaballa.nsf","","AceHardware");
}
catch (NotesException e)
{
System.out.println("Error: "+e.id + " "+ e.text);
e.printStackTrace();
}
Any help appreciated.