用ldap方式访问AD域的的错误解释

python-ldap访问AD域的的错误一般会如下格式:
{'info': '80090308: LdapErr: DSID-0C090334, comment: AcceptSecurityContext error, data 525, vece', 'desc': 'Invalid credentials'}
其中红字部分的意思如下(这些错误码跟语言无关):
525 - 用户没有找到
52e - 证书不正确
530 - not permitted to logon at this time
532 - 密码期满
533 - 帐户不可用
701 - 账户期满
773 - 用户必须重设密码
posted @ 2011-11-03 14:17  dkcndk  阅读(1142)  评论(0编辑  收藏  举报