Add instruction about the use of --libdir
[pdns-ldap-backend/landonf.git] / src / ldaputils.hh
blobff26af391e8397d5cb917f7b8589e7efa1edc0f2
1 /*
2 * PowerDNS LDAP Connector
3 * By PowerDNS.COM BV
4 * By Norbert Sendetzky <norbert@linuxnetworks.de> (2003-2007)
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2
8 * as published by the Free Software Foundation.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20 #include "exceptions.hh"
22 #include <ldap.h>
23 #include <string>
25 #ifndef LDAPUTILS_HH
26 #define LDAPUTILS_HH
28 void ldapSetOption( LDAP *conn, int option, void *value );
30 void ldapGetOption( LDAP *conn, int option, void *value );
32 std::string ldapGetError( LDAP *conn, int code );
34 int ldapWaitResult( LDAP *conn, int msgid = LDAP_RES_ANY, int timeout = 0, LDAPMessage** result = NULL );
36 #endif // LDAPUTILS_HH