本文整理了Java中com.novell.ldap.LDAPConnection.getAuthenticationDN()
方法的一些代码示例,展示了LDAPConnection.getAuthenticationDN()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。LDAPConnection.getAuthenticationDN()
方法的具体详情如下:
包路径:com.novell.ldap.LDAPConnection
类名称:LDAPConnection
方法名:getAuthenticationDN
[英]Returns the distinguished name (DN) used for as the bind name during the last successful bind operation. null
is returned if no authentication has been performed or if the bind resulted in an aonymous connection.
[中]返回上次成功绑定操作期间用作绑定名称的可分辨名称(DN)。如果未执行任何身份验证或绑定导致匿名连接,则返回null
。
代码示例来源:origin: com.novell.ldap/jldap
/**
* Returns the distinguished name (DN) used for authentication by this
* object.
*
* @see <a href="../../../../api/com/novell/ldap/LDAPConnection.html#getAuthenticationDN()">
com.novell.ldap.LDAPConnection.getAuthenticationDN()</a>
*/
public String getAuthenticationDN()
{
return conn.getAuthenticationDN();
}
代码示例来源:origin: com.bbossgroups.pdp/pdp-ldap
String dn = response.get("distinguishedName");
lc.bind(LDAPConnection.LDAP_V3, response.get("distinguishedName"), password);//如果口令为空,则会导致转化为匿名用户
if(lc.getAuthenticationDN() != null && lc.getAuthenticationDN().equals(dn))
response.put("successFlag", "1");
else
response.put("errMessage", new StringBuilder().append("Invalid credentials:required ").append(dn).append(",but reponse [").append(lc.getAuthenticationDN()).append("]").toString());
代码示例来源:origin: apache/guacamole-client
ldapConnection.getAuthenticationDN());
代码示例来源:origin: apache/guacamole-client
String userDN = ldapConnection.getAuthenticationDN();
内容来源于网络,如有侵权,请联系作者删除!