我正在尝试在 IBM Domino v9.0 中创建一个新用户。通过java api,我正在使用Notes.jar。 我在亚马逊 ec2-instance 上安装了 IBM Domino,我正在尝试运行 java 代码以在 IBM Domino 本地创建新用户。创建用户时出现以下错误。 引起:NotesException:Notes 错误:不允许您更新验证者日志 (Reddy)。 我正在创建 session 的用户对“certlog.nsf”数据库具有“管理员”访问权限。我正在使用的代码如下
private static void recreateCreateUserError(String host, String userName, String password) throws Exception{
Session session = NotesFactory.createSession(host, userName, password);
Registration reg = session.createRegistration();
reg.setRegistrationServer(session.getServerName());
reg.setCreateMailDb(true);
reg.setCertifierIDFile("C:\\Program Files\\IBM\\Domino\\data\\cert.id");
reg.setIDType(Registration.ID_HIERARCHICAL);
reg.setMinPasswordLength(5);
reg.setRegistrationLog("log.nsf");
reg.setMailInternetAddress("rajesh.parupalli@concentrix.com");
reg.setUpdateAddressBook(true);
reg.setStoreIDInAddressBook(true);
reg.setEnforceUniqueShortName(true);
if (!reg.registerNewUser("Reddy", // last name
"C:\\Program Files\\IBM\\Domino\\data\\sreddy2.id", // file to be created
"CN=WIN-3G1ICLOT664/O=Concentrix", // mail server
"Santhosh", // first name
"", // middle initial
"xxxxxx", // certifier password
"Delhi", // location field
"Comment", // comment field
"mail\\sreddy2.nsf", // mail file
"", // forwarding domain
"xxxxx")) // user password
throw new RuntimeException("failed to register new user");
}
请让我知道我错过了什么。
谢谢 维什瓦迪帕克·特瓦里
最佳答案
确保您创建 session 的用户拥有 domino 服务器文档安全选项卡中的所有权限,例如访问服务器,签名或运行不受限制的方法和操作。
关于java - 注释错误: You are not allowed to update the certifier log while creating a new user,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22613106/