接下来显示的认证错误类似于这样:

"The exception is [ LDAP: error code 49 - 80090308: LdapErr: DSID-0Cxxxxxx, comment: AcceptSecurityContext error, data xxx, vece ]."

然而存在这多种情况指示LDAP功能存在异常。下面根据Microsoft Activative Directory给出些一般参考。

AD指令错误代码是一段在"data"之后并在"vece"或者"v893"这样文字之前的一段字符。实际上这些错误代码伴随着绑定过程而返回。

525 用户不存在
52e 密码或凭证无效
530 此时不允许登录
531 在此工作站上不允许登录
532 密码过期
533 账户禁用
701 账户过期
773 用户必须重置密码
775 用户账户锁定

一般Active Directory LDAP 绑定错误:

80090308: LdapErr: DSID-0C09030B, comment: AcceptSecurityContext error, data 525, v893 
十六进制: 0x525 - 用户不存在 
十进制: 1317 - ERROR_NO_SUCH_USER (指定的账户不存在.) 
注释: 当用户名无效时返回

80090308: LdapErr: DSID-0C09030B, comment: AcceptSecurityContext error, data 52e, v893 
十六进制: 0x52e - 无效的凭证
十进制: 1326 - ERROR_LOGON_FAILURE (登录失败,未知的用户名或者密码错误.) 
注释: 当用户名有效但是密码或者凭证无效的时候返回。

80090308: LdapErr: DSID-0C09030B, comment: AcceptSecurityContext error, data 530, v893 
十六进制: 0x530 - 此时禁止登录
十进制: 1328 - ERROR_INVALID_LOGON_HOURS (登录失败,登录时间违规.) 
注释: 仅当输入了正确的用户名和密码或凭证时才返回此值。说明用户被禁止登录了

80090308: LdapErr: DSID-0C09030B, comment: AcceptSecurityContext error, data 531, v893 
十六进制: 0x531 - 此用户禁止在当前工作站登录 
十进制: 1329 - ERROR_INVALID_WORKSTATION (登录失败,在此计算机上该用户不允许登录.) 
LDAP[userWorkstations: <multivalued list of workstation names>] 
注释: 当输入了正确的用户名和密码或凭证时才返回此值。

80090308: LdapErr: DSID-0C09030B, comment: AcceptSecurityContext error, data 532, v893 
十六进制: 0x532 - 密码过期
十进制: 1330 - ERROR_PASSWORD_EXPIRED (登录失败,指定的账户密码过期.) 
LDAP[userAccountControl: <bitmask=0x00800000>] - PASSWORDEXPIRED 
注释: 当输入了正确的用户名和密码或凭证是猜返回此值。

80090308: LdapErr: DSID-0C09030B, comment: AcceptSecurityContext error, data 533, v893 
十六进制: 0x533 - 账户被禁用
十进制: 1331 - ERROR_ACCOUNT_DISABLED (登录失败,账户当前被禁用了.) 
LDAP[userAccountControl: <bitmask=0x00000002>] - ACCOUNTDISABLE 
注释: 当输入了正确的用户名和密码或凭证是猜返回此值。

80090308: LdapErr: DSID-0C09030B, comment: AcceptSecurityContext error, data 701, v893 
十六进制: 0x701 - 账户已过期
十进制: 1793 - ERROR_ACCOUNT_EXPIRED (用户账户已过期.) 
LDAP[accountExpires: <value of -1, 0, or extemely large value indicates account will not expire>] - ACCOUNTEXPIRED 
注释: 当输入了正确的用户名和密码或凭证是猜返回此值。

80090308: LdapErr: DSID-0C09030B, comment: AcceptSecurityContext error, data 773, v893 
十六进制: 0x773 - 账户密码必须被重置
十进制: 1907 - ERROR_PASSWORD_MUST_CHANGE (用户密码在第一次登录之前必须修改.) 
LDAP[pwdLastSet: <value of 0 indicates admin-required password change>] - MUST_CHANGE_PASSWD 
注释: 当输入了正确的用户名和密码或凭证是猜返回此值。

80090308: LdapErr: DSID-0C09030B, comment: AcceptSecurityContext error, data 775, v893 
十六进制: 0x775 - 账户被锁定
十进制: 1909 - ERROR_ACCOUNT_LOCKED_OUT (账户当前已被锁定,不允许登录The referenced account is currently locked out and may not be logged on to.) 
LDAP[userAccountControl: <bitmask=0x00000010>] - LOCKOUT 
注释: 即便是输入了错误的密码也可能返回此值

Microsoft Active Directory(LDAP)连接常见错误代码的更多相关文章

  1. keystone V3 与Microsoft Active Directory(AD)的集成

    一  环境准备 1. 安装或在现有的windows server2008,操作Microsoft Acitve Directory(下面简称AD).欲了解AD请看系列文章[深入浅出ActiveDire ...

  2. Active Directory: LDAP Syntax Filters

    LDAP syntax filters can be used in many situations to query Active Directory. They can be used in VB ...

  3. Confluence 6 为 Active Directory 配置一个 SSL 连接

    如果你希望配置 Microsoft Active Directory 的读写权限,你需要在你的 Confluence 服务器和JVM keystore 上安装 Active Directory 服务器 ...

  4. Active Directory域

    引言 在 Microsoft® Windows® 2000 Server 操作系统的诸多增强功能中,Microsoft Active Directory™ 功能的引入意义最为重大,但也最常引起困惑.与 ...

  5. 用JAVA 查询 Active Directory(AD)

    Required Details LDAP address (For e.g.: myjeeva.com or IP of the Domain Controller/Global Catalog[G ...

  6. 在kerberos认证过程中Active Directory的作用

    LDAP介绍 1),ladp(Lightweight Directory Access Protocol),轻量级目录访问协议,提供被称为目录服务的信息服务,特别是基于X.500(构成全球分布式的目录 ...

  7. Confluence 6 获得 Active Directory 服务器证书

    上面的步骤说明了如何在你的 Microsoft Active Directory服务器上安装 certification authority (CA).这一步,你需要为你的 Microsoft Act ...

  8. AD-Powershell for Active Directory Administrators

    Table of Contents   Computer object commands Group object commands Organizational Unit (OU) commands ...

  9. Active Directory的LDAP协议与DN(Distinguished Name)详解

    前言 光copy几段代码的文章没什么意思,本章上最基础的代码,主要是为了从编程方面聊LDAP和DN,其它的后面聊,一步步慢慢来吧. Active Directory编程须知 1.域控服务器: Wind ...

随机推荐

  1. jt项目日志查询流程

    jt项目日志查询流程

  2. mysql执行计划查看工具explain

    在优化sql语句时,我们经常会用到explain语句,这里对explain语句做一个详细的总结说明. The EXPLAIN statement provides information about ...

  3. 一个用python简单的封装了aria2的jsonrpc中adduri的脚本

    aria2是一个十分牛逼的下载神器,有时候项目需要一个很牛逼的下载中间件的话,aria2是一个不错的选择.其中支持jsonrpc和websocket的特性尤其诱人.但是python用起来还是有点不爽, ...

  4. Centos部署flask项目

    必备: Python2.7(ok) MySQL(ok) git supervisor virtualenv Gunicorn 阿里云服务器(最便宜的就好) 域名(国内万网,国外goDaddy) 我的P ...

  5. VS 域名绑定IIs 调试

    一排致敬老师傅:https://www.cnblogs.com/woxpp/p/5805624.html 问题: 域名www.jinhuang.com,网站的ip地域跳转出问题,需要测试. ①修改Ho ...

  6. Introduction To Machine Learning Self-Evaluation Test

    Preface Section 1 - Mathematical background Multivariate calculus take derivatives and integrals; de ...

  7. 01:CENTOS使用VIRTUALENV搭建独立的PYTHON环境-PYTHON虚拟环境

    1.1 安装virtualenv环境 https://www.cnblogs.com/liuyansheng/p/6141197.html 1.安装virtualenv yum install pyt ...

  8. squid代理服务器安装和配置

    服务器版本:centos6.5 squid版本:3.1 Squid介绍 Squid是一个缓存Internet 数据的软件,其接收用户的下载申请,并自动处理所下载的数据.当一个用户想要下载一个主页时,可 ...

  9. 【4Opencv】如何识别出轮廓准确的长和宽

    问题来源: 实际项目中,需要给出识别轮廓的长度和宽度. 初步分析: 轮廓分析的例程为: int main( int argc, char** argv ){    //read the image  ...

  10. 《HTML与CSS 第一章 认识HTML》读书笔记

    一.Web让广播明星黯然失色 要建立Web页面,需要创建用超文本标记语言(HyperText Markup Language,HTML)编写的文件,把它们放在一个Web服务器上 二.Web服务器能做什 ...