How can we call DbDirectory.getFirstDatabase via DIIOP on Domino 12.0.2?

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

Hello.

The old fields have been deleted in 12.0.x, but will work if items are added by agents, etc.
Add a field with the following name and set the value to "1".

HTTP_DatabaseBrowsing

#You can also add a field with this name to the server form in names.nsf.

Regards,

Shigemitsu Tanaka

Thank you Tanaka-san!

After adding a new field HTTP_DatabaseBrowsing to the server config and restarting, our client code starts to work.

Thank you so much,
Sayaka

Kuroki-san
Thank you for providing your results.
If all of your questions have been resolved, you can mark this as resolved.

Thank you.

Shigemitsu Tanaka