Skip to content

Commit

Permalink
Added support for getting file descriptor of connection with ldap.OPT…
Browse files Browse the repository at this point in the history
…_DESC
  • Loading branch information
stroeder committed Sep 12, 2014
1 parent 315ca29 commit 805824b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 3 additions & 2 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ Lib/
*

Modules/
*
* Added support for getting file descriptor of connection
with ldap.OPT_DESC

----------------------------------------------------------------
Released 2.4.16 2014-09-10
Expand Down Expand Up @@ -1121,4 +1122,4 @@ Released 2.0.0pre02 2002-02-01
----------------------------------------------------------------
Released 1.10alpha3 2000-09-19

$Id: CHANGES,v 1.325 2014/09/12 12:00:08 stroeder Exp $
$Id: CHANGES,v 1.326 2014/09/12 12:02:21 stroeder Exp $
3 changes: 2 additions & 1 deletion Modules/constants.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* constants defined for LDAP
* See http://www.python-ldap.org/ for details.
* $Id: constants.c,v 1.58 2014/03/12 23:02:42 stroeder Exp $ */
* $Id: constants.c,v 1.59 2014/09/12 12:02:21 stroeder Exp $ */

#include "common.h"
#include "constants.h"
Expand Down Expand Up @@ -155,6 +155,7 @@ LDAPinit_constants( PyObject* d )
add_int(d,OPT_API_FEATURE_INFO);
add_int(d,OPT_HOST_NAME);

add_int(d,OPT_DESC);
add_int(d,OPT_DIAGNOSTIC_MESSAGE);

add_int(d,OPT_ERROR_STRING);
Expand Down
3 changes: 2 additions & 1 deletion Modules/options.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* See http://www.python-ldap.org/ for details.
* $Id: options.c,v 1.41 2013/09/11 08:16:27 stroeder Exp $ */
* $Id: options.c,v 1.42 2014/09/12 12:02:21 stroeder Exp $ */

#include "common.h"
#include "errors.h"
Expand Down Expand Up @@ -236,6 +236,7 @@ LDAP_get_option(LDAPObject *self, int option)
case LDAP_OPT_PROTOCOL_VERSION:
case LDAP_OPT_ERROR_NUMBER:
case LDAP_OPT_DEBUG_LEVEL:
case LDAP_OPT_DESC:
#ifdef HAVE_TLS
case LDAP_OPT_X_TLS:
case LDAP_OPT_X_TLS_REQUIRE_CERT:
Expand Down

0 comments on commit 805824b

Please sign in to comment.