Skip to content

Commit

Permalink
Added exceptions ldap.VLV_ERROR, ldap.X_PROXY_AUTHZ_FAILURE and ldap.…
Browse files Browse the repository at this point in the history
…AUTH_METHOD_NOT_SUPPORTED
  • Loading branch information
stroeder committed Jun 23, 2015
1 parent 52dfc3e commit d1c4292
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 5 additions & 1 deletion CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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 $
5 changes: 4 additions & 1 deletion Modules/errors.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -141,15 +141,18 @@ 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);
seterrobj(BUSY);
seterrobj(CLIENT_LOOP);
seterrobj(COMPARE_FALSE);
seterrobj(COMPARE_TRUE);
seterrobj(AUTH_METHOD_NOT_SUPPORTED);
seterrobj(CONFIDENTIALITY_REQUIRED);
seterrobj(CONNECT_ERROR);
seterrobj(CONSTRAINT_VIOLATION);
Expand Down

0 comments on commit d1c4292

Please sign in to comment.