[prev in list] [next in list] [prev in thread] [next in thread]
List: pdns-dev
Subject: [Pdns-dev] [patch] powerldap errno fix
From: Norbert Sendetzky <norbert () linuxnetworks ! de>
Date: 2004-01-12 19:57:17
Message-ID: 200401122057.33375.norbert () linuxnetworks ! de
[Download RAW message or body]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Monday 12 January 2004 20:44, bert hubert wrote:
> > BTW, to you plan to release 2.9.14 anytime soon?
>
> Yes.
Can you please include this patch before releasing the new version?
It's only the errno fix supplied by Tobias today and a GPL statement.
Compiles and is tested on Debian Woody.
Thanks
Norbert
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iEYEARECAAYFAkAC/CcACgkQxMLs5v5/7eDfcwCfRxtfu4tsJ1wMHx1+MNlujmdn
5GYAn1VOYRPPpf/cUGRjacXwVCPdIdUz
=J9cV
-----END PGP SIGNATURE-----
["powerldap_errno.diff" (text/x-diff)]
--- pdns-2.9.13.orig/modules/ldapbackend/powerldap.hh Sat Nov 29 17:47:46 2003
+++ pdns-2.9.13/modules/ldapbackend/powerldap.hh Mon Jan 12 15:13:53 2004
@@ -1,23 +1,46 @@
+/*
+ * PowerDNS LDAP Connector
+ * By PowerDNS.COM BV
+ * By Norbert Sendetzky <norbert@linuxnetworks.de>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+
+
#include <map>
#include <string>
#include <vector>
#include <exception>
#include <stdexcept>
+#include <errno.h>
#include <lber.h>
#include <ldap.h>
+
#ifndef POWERLDAP_HH
#define POWERLDAP_HH
+
+
using std::map;
using std::string;
using std::vector;
-extern int errno;
-
-
class LDAPException : public std::runtime_error
{
@@ -26,6 +49,7 @@
};
+
class LDAPTimeout : public LDAPException
{
public:
@@ -33,6 +57,7 @@
};
+
class PowerLDAP
{
LDAP* d_ld;
@@ -58,5 +83,7 @@
static const string escape( const string& tobe );
};
+
+
#endif
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic