Hello,
We're testing the following Java client codes with Domino 12.0.2, which just gets the database list.
String ior = NotesFactory.getIOR(server, null, username, password);
Session session = NotesFactory.createSessionWithIOR(ior, username, password);
DbDirectory dbs = session.getDbDirectory(null);
Database db = dbs.getFirstDatabase(DbDirectory.DATABASE);
Then, the above code returns the following error.
Exception in thread "main" NotesException: Server access denied
at lotus.domino.NotesExceptionHelper.read(Unknown Source)
at lotus.domino.NotesExceptionHolder._read(Unknown Source)
at lotus.priv.CORBA.iiop.RepImpl.invoke(Unknown Source)
at lotus.priv.CORBA.portable.ObjectImpl._invoke(Unknown Source)
at lotus.domino.corba._IDbDirectoryStub.getFirstDatabase(Unknown Source)
at lotus.domino.cso.DbDirectory.getFirstDatabase(Unknown Source)
I know we need to "Allow HTTP clients to browse databases" on Domino server and it works with Domino 9.0.1.
https://support.hcltechsw.com/csm?id=kb_article&sysparm_article=KB0025366
However, it seems Domino 12.0.2 does not offer this option anymore.
https://support.hcltechsw.com/csm?id=kb_article&sysparm_article=KB0102652
How can we call the above method with Domino 12.0.2 ?
We don't need to get the database list anonymously, it's fine some users having enough permissions to call this method.
Thanks,
Sayaka