Added exceptions ldap.VLV_ERROR, ldap.X_PROXY_AUTHZ_FAILURE and ldap.AUTH_METHOD_NOT_SUPPORTED

This commit is contained in:
stroeder 2015-06-23 09:44:04 +00:00
parent 52dfc3e2e4
commit d1c42920b8
2 changed files with 9 additions and 2 deletions

View File

@ -6,6 +6,10 @@ Changes since 2.4.19:
* New wrapping of OpenLDAP's function ldap_sasl_bind_s() allows
to intercept the SASL handshake (thanks to René Kijewski)
Modules/
* Added exceptions ldap.VLV_ERROR, ldap.X_PROXY_AUTHZ_FAILURE and
ldap.AUTH_METHOD_NOT_SUPPORTED
Lib/
* Abandoned old syntax when raising ValueError in modules ldif and
ldapurl, more information in some exceptions.
@ -1173,4 +1177,4 @@ Released 2.0.0pre02 2002-02-01
----------------------------------------------------------------
Released 1.10alpha3 2000-09-19
$Id: CHANGES,v 1.347 2015/06/22 16:47:08 stroeder Exp $
$Id: CHANGES,v 1.348 2015/06/23 09:44:04 stroeder Exp $

View File

@ -2,7 +2,7 @@
* errors that arise from ldap use
* Most errors become their own exception
* See http://www.python-ldap.org/ for details.
* $Id: errors.c,v 1.23 2012/01/11 10:04:48 stroeder Exp $ */
* $Id: errors.c,v 1.24 2015/06/23 09:44:04 stroeder Exp $ */
#include "common.h"
#include "errors.h"
@ -141,8 +141,10 @@ LDAPinit_errors( PyObject*d ) {
}
seterrobj(ADMINLIMIT_EXCEEDED);
seterrobj(VLV_ERROR);
seterrobj(AFFECTS_MULTIPLE_DSAS);
seterrobj(ALIAS_DEREF_PROBLEM);
seterrobj(X_PROXY_AUTHZ_FAILURE);
seterrobj(ALIAS_PROBLEM);
seterrobj(ALREADY_EXISTS);
seterrobj(AUTH_UNKNOWN);
@ -150,6 +152,7 @@ LDAPinit_errors( PyObject*d ) {
seterrobj(CLIENT_LOOP);
seterrobj(COMPARE_FALSE);
seterrobj(COMPARE_TRUE);
seterrobj(AUTH_METHOD_NOT_SUPPORTED);
seterrobj(CONFIDENTIALITY_REQUIRED);
seterrobj(CONNECT_ERROR);
seterrobj(CONSTRAINT_VIOLATION);