0

有没有办法获得经过身份验证的用户的完整用户名?我想返回:CN=Ryan Buening/OU=ABC/O=Acme

dtgSession.username返回缩写的用户名:'Ryan Buening'

4

2 回答 2

1

No, this is not possible in Domino To Go at this time. dtgSession.username only returns what you have set with dtgSession.setUsername() before.

To get the canonicalized name, DTG would need to make a HTTP request in order to ask Domino for the name. That would be possible, but is not implemented yet.

Update: Domino To Go 2.0 will have a new method notesSession.evaluate() which can be used to evaluate an @formula like "@UserName" and thus get the canonical user name.

于 2013-10-28T06:34:17.883 回答
0

我不确定你用什么语言编程,你有什么界面。从这个问题来看,我认为这有点类似于LDAP(或Active Directory)接口。熟悉 LDAP,我建议您尝试使用Distinguished Nameor DN。根据语法,这应该如下所示:

dtgSession.DN
dtgSession.dn
dtgSession.Dn
dtgSession.DistinguishedName
dtgSession.distinguishedname
dtgSession.distinguishedName

看看这个关于 DN 的解释。不要将此与 混淆RDN,因为这Relative Distinguished Name可能不是您要查找的内容。

我希望这有帮助 :)

于 2013-10-25T15:55:01.033 回答