前些天在做应用的时候,需要通过 DbLookup 获取文档 UNID,结果发现除了第一个文档的 UNID 正确之外,其他全为 32 个 0。最后查明为 Domino bug,通过在视图中添加一列显示 UNID 的方式解决。
请参考:@DbLookup with [ReturnDocumentUniqueID] returns only one UNID or several incorrect UNIDs
前些天在做应用的时候,需要通过 DbLookup 获取文档 UNID,结果发现除了第一个文档的 UNID 正确之外,其他全为 32 个 0。最后查明为 Domino bug,通过在视图中添加一列显示 UNID 的方式解决。
请参考:@DbLookup with [ReturnDocumentUniqueID] returns only one UNID or several incorrect UNIDs
Notes/Domino 8.5.1 英文版将于10月12日发布。从版本号上看,本版应该是一个以 bug 修正为主的维护更新,但其实它带来的新特性完全可以看作是 8.6 之类的新版本。主要新特性如下:
Lotus Notes:
Lotus Notes Traveler
Domino Designer
除了以上新的特性,产品授权方式也发生了变化(好像价格也有变动),而开发工具变成了免费下载使用(听起来不错)。
代码如下:
_forward := "ANY_TEXT/" + @Implode(myorderedlist; "/"); REM {将list连接为字符串,并在最前面添加一级(由于第一级会被去掉)}; _reverse := @Name([ToKeyword]; _forward); REM {反序然后在将字符串切割为list}; _reverselist := @Explode(_reverse; "");
关于@Name([ToKeyword]; name)的帮助文档:
[TOKEYWORD]
Reverses the order in which the naming components are displayed, and replaces slashes with backslashes: CountryOrganizationOrganization Unit… This is useful when you want to categorize a view by the components of a user’s hierarchical name (backslashes represent subcategories in views). The [TOKEYWORD] option does not return the Common Name portion of the user name.
在注册完附加服务器后,进行服务器配置的时候,在最后一步出现”You are not authorized to use the server”错误。实际上就是附加服务器没有访问主服务器的权限,同时在主服务器控制台上也出现拒绝访问的消息。
最后查明原因为在服务器文档的安全标签下,”Access Server” 域勾选了”Users listed in all trusted directories”。此选项会只允许信任目录中的用户访问服务器,从而禁止了服务器间的访问。
IBM 的支持网站说可以先取消此复选框,服务器配置完成后,再重新勾上。不过按照我的理解和测试,这样还是会禁止服务器间的访问,应该还是不行的。不知道是不是我理解有误,欢迎大家指教。
相关链接:Server error: “You are not authorized to use the server” setting up a new server
在与 Domino 做 SSO 的时候,经常会使用 LTPA 的方式,本文描述了它的生成原理,通过它我们可以自己编码生成身份认证的 cookie,实现 SSO。
首先,这个 cookie 由以下部分组成:
接下来分别说明各部分的具体内容:
在这里当然不能将密钥直接发送给浏览器,所以将上述部分合并起来(如上图),计算 SHA-1 校验和。
然后用 SHA-1 校验和替换掉 Domino LTPA 密钥,最后再将内容通过 Base64 编码,形成最终的 cookie 发送给浏览器(如上图)。这样如果 cookie 中的任何内容被修改,校验和就不对了,达到了防篡改的效果。
参考资料:Creating a session for a user,The Domino cookie authentication,LTPAUtils
这是一个维护更新版本,英文版现已发布,中文版将于5月7日发布。除了大量的 bug 修正,主要更新点如下:
IBM Lotus Notes and Domino 7.0.4 maintenance release contains updated platform support and fixes
就是之前提到的 Atlantic,现已发布。
产品主页:Alloy by IBM and SAP
常见的文档格式基本都支持,如:text、MS word/excel/powerpoint、PDF等。
详细列表参考 What types of attachments are supported by the full text indexer in Notes/Domino 6.x?
这是一个随 Domino 8.5 一起推出的辅助工具,可以通过分析服务器文档、notes.ini 等配置表,为管理员提出存在的问题以及优化的建议。此工具支持 Domino 7 及以上版本,具体介绍请参考此文档:
View more presentations or upload your own. (tags: domino dct)
有时候我们需要获得一个群组中的成员列表,一般都是直接去 Names 查找,如果遇到嵌套群组则更加麻烦。其实有个简单的方法,通过如下的函数:
Syntax
@ExpandNameList(servername : notesdatabase ; groupname)
Parameters
* servername
Text. Specify the target Domino Server for your query.
* notesdatabase
Text. Specifiy the target NotesDatabase for your query.
* groupname
Text. Specify the target Group, by name, for your query.
Return value
* valuelist
Text list. A multi-value text list containing members of the queried Domino Directory Group. No value is returned for unmatched Groups. To display the return values in a dialog box using @Prompt, enclose this function in an @Text function.
Usage
@ExpandNameList cannot be used in form selection and view column formulas.
举例说明,以下公式就可以获取在 Domino/Server 服务器上 names.nsf 库中定义的 LocalDomainAdmins 群组的成员列表:
@ExpandNameList(“Domino/Server”:”names.nsf”; “LocalDomainAdmins”)
最后有一点需要说明的是,这个函数在文档中并没有注明,所以有可能会有不稳定、或者未来版本会不可用等可能性,大家请自行评估其中的风险。
参考链接:Undocument Command Documented: ExpandNameList , Undocumented @functions in Notes/Domino