java - 注释错误: You are not allowed to update the certifier log while creating a new user

标签 java lotus-domino

我正在尝试在 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/

相关文章:

java - GraphQL Java 类生成器

java - 如何在 Lotus Notes 中查找文件夹( View )的所有子文件夹

java - Domino OSGI 插件 - 找不到设计说明

java - 无法提取 4 层深度嵌套 JSON 数组中的名称

java - 在 Spring MVC 2.5 的 OnSubmit 中获取错误的 refreanceData

java - 检测手机是否插入电脑

javascript - 使用 sessionScope 变量计算数据源 - 在部分和完全刷新时变量设置为 null

java - 无法在 Android 中扩展选项菜单

java - 来自数据库和内存中的 NotesDocument 对象之间的区别?

XPage - 打开自定义控件会导致 Lotus Notes 客户端崩溃