1999-04-22 00:45:14 +00:00
|
|
|
/*
|
|
|
|
+----------------------------------------------------------------------+
|
2004-01-08 17:33:29 +00:00
|
|
|
| PHP Version 5 |
|
1999-04-22 00:45:14 +00:00
|
|
|
+----------------------------------------------------------------------+
|
2007-01-01 09:36:18 +00:00
|
|
|
| Copyright (c) 1997-2007 The PHP Group |
|
1999-04-22 00:45:14 +00:00
|
|
|
+----------------------------------------------------------------------+
|
2006-01-01 12:51:34 +00:00
|
|
|
| This source file is subject to version 3.01 of the PHP license, |
|
2000-07-24 01:40:02 +00:00
|
|
|
| that is bundled with this package in the file LICENSE, and is |
|
2003-06-10 20:04:29 +00:00
|
|
|
| available through the world-wide-web at the following url: |
|
2006-01-01 12:51:34 +00:00
|
|
|
| http://www.php.net/license/3_01.txt |
|
2000-07-24 01:40:02 +00:00
|
|
|
| If you did not receive a copy of the PHP license and are unable to |
|
|
|
|
| obtain it through the world-wide-web, please send a note to |
|
|
|
|
| license@php.net so we can mail you a copy immediately. |
|
1999-04-22 00:45:14 +00:00
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
| Authors: Amitay Isaacs <amitay@w-o-i.com> |
|
|
|
|
| Eric Warnke <ericw@albany.edu> |
|
2000-07-26 11:01:44 +00:00
|
|
|
| Jani Taskinen <sniper@iki.fi> |
|
1999-04-22 00:45:14 +00:00
|
|
|
+----------------------------------------------------------------------+
|
2000-07-24 01:40:02 +00:00
|
|
|
*/
|
1999-04-22 00:45:14 +00:00
|
|
|
|
|
|
|
/* $Id$ */
|
|
|
|
|
2000-07-02 23:46:51 +00:00
|
|
|
#ifndef PHP_LDAP_H
|
|
|
|
#define PHP_LDAP_H
|
1999-04-22 00:45:14 +00:00
|
|
|
|
2000-08-19 14:10:11 +00:00
|
|
|
#ifndef HAVE_ORALDAP
|
1999-04-22 00:45:14 +00:00
|
|
|
#include <lber.h>
|
2000-08-19 14:10:11 +00:00
|
|
|
#endif
|
1999-04-22 00:45:14 +00:00
|
|
|
#include <ldap.h>
|
|
|
|
|
1999-12-17 20:55:31 +00:00
|
|
|
extern zend_module_entry ldap_module_entry;
|
1999-04-22 00:45:14 +00:00
|
|
|
#define ldap_module_ptr &ldap_module_entry
|
|
|
|
|
|
|
|
/* LDAP functions */
|
1999-08-02 15:02:52 +00:00
|
|
|
PHP_MINIT_FUNCTION(ldap);
|
|
|
|
PHP_MSHUTDOWN_FUNCTION(ldap);
|
|
|
|
PHP_MINFO_FUNCTION(ldap);
|
1999-04-22 00:45:14 +00:00
|
|
|
|
1999-05-21 10:06:25 +00:00
|
|
|
PHP_FUNCTION(ldap_connect);
|
|
|
|
PHP_FUNCTION(ldap_bind);
|
2003-06-13 13:30:46 +00:00
|
|
|
#ifdef HAVE_LDAP_SASL
|
2003-06-08 23:44:01 +00:00
|
|
|
PHP_FUNCTION(ldap_sasl_bind);
|
|
|
|
#endif
|
1999-05-21 10:06:25 +00:00
|
|
|
PHP_FUNCTION(ldap_unbind);
|
|
|
|
PHP_FUNCTION(ldap_read);
|
|
|
|
PHP_FUNCTION(ldap_list);
|
|
|
|
PHP_FUNCTION(ldap_search);
|
|
|
|
PHP_FUNCTION(ldap_free_result);
|
|
|
|
PHP_FUNCTION(ldap_count_entries);
|
|
|
|
PHP_FUNCTION(ldap_first_entry);
|
|
|
|
PHP_FUNCTION(ldap_next_entry);
|
|
|
|
PHP_FUNCTION(ldap_get_entries);
|
|
|
|
PHP_FUNCTION(ldap_first_attribute);
|
|
|
|
PHP_FUNCTION(ldap_next_attribute);
|
|
|
|
PHP_FUNCTION(ldap_get_attributes);
|
|
|
|
PHP_FUNCTION(ldap_get_values);
|
2000-04-07 23:20:22 +00:00
|
|
|
PHP_FUNCTION(ldap_get_values_len);
|
1999-05-21 10:06:25 +00:00
|
|
|
PHP_FUNCTION(ber_free);
|
|
|
|
PHP_FUNCTION(ldap_get_dn);
|
|
|
|
PHP_FUNCTION(ldap_explode_dn);
|
|
|
|
PHP_FUNCTION(ldap_dn2ufn);
|
|
|
|
PHP_FUNCTION(ldap_add);
|
|
|
|
PHP_FUNCTION(ldap_delete);
|
1999-05-22 16:12:09 +00:00
|
|
|
PHP_FUNCTION(ldap_mod_add);
|
|
|
|
PHP_FUNCTION(ldap_mod_replace);
|
|
|
|
PHP_FUNCTION(ldap_mod_del);
|
2000-04-06 12:36:47 +00:00
|
|
|
PHP_FUNCTION(ldap_errno);
|
|
|
|
PHP_FUNCTION(ldap_err2str);
|
|
|
|
PHP_FUNCTION(ldap_error);
|
2000-07-26 11:01:44 +00:00
|
|
|
PHP_FUNCTION(ldap_compare);
|
2001-11-21 20:14:17 +00:00
|
|
|
PHP_FUNCTION(ldap_sort);
|
|
|
|
|
2005-05-08 15:43:22 +00:00
|
|
|
#if (LDAP_API_VERSION > 2000) || HAVE_NSLDAP || HAVE_ORALDAP_10
|
2000-10-17 16:06:04 +00:00
|
|
|
PHP_FUNCTION(ldap_get_option);
|
|
|
|
PHP_FUNCTION(ldap_set_option);
|
2001-01-07 13:03:11 +00:00
|
|
|
PHP_FUNCTION(ldap_first_reference);
|
|
|
|
PHP_FUNCTION(ldap_next_reference);
|
2001-01-08 18:13:08 +00:00
|
|
|
PHP_FUNCTION(ldap_rename);
|
2005-05-08 15:43:22 +00:00
|
|
|
#ifdef HAVE_LDAP_PARSE_RESULT
|
|
|
|
PHP_FUNCTION(ldap_parse_result);
|
|
|
|
#endif
|
|
|
|
#ifdef HAVE_LDAP_PARSE_REFERENCE
|
|
|
|
PHP_FUNCTION(ldap_parse_reference);
|
|
|
|
#endif
|
2000-10-17 16:06:04 +00:00
|
|
|
#endif
|
|
|
|
|
2001-10-09 21:14:14 +00:00
|
|
|
#if LDAP_API_VERSION > 2000
|
|
|
|
PHP_FUNCTION(ldap_start_tls);
|
|
|
|
#endif
|
|
|
|
|
2001-12-23 16:32:06 +00:00
|
|
|
#if defined(LDAP_API_FEATURE_X_OPENLDAP) && defined(HAVE_3ARG_SETREBINDPROC)
|
2001-11-29 20:26:20 +00:00
|
|
|
PHP_FUNCTION(ldap_set_rebind_proc);
|
|
|
|
#endif
|
|
|
|
|
2000-08-02 13:11:46 +00:00
|
|
|
#ifdef STR_TRANSLATION
|
|
|
|
PHP_FUNCTION(ldap_t61_to_8859);
|
|
|
|
PHP_FUNCTION(ldap_8859_to_t61);
|
|
|
|
#endif
|
|
|
|
|
2000-04-01 16:23:39 +00:00
|
|
|
ZEND_BEGIN_MODULE_GLOBALS(ldap)
|
2001-05-31 21:09:30 +00:00
|
|
|
long num_links;
|
|
|
|
long max_links;
|
2000-04-01 16:23:39 +00:00
|
|
|
ZEND_END_MODULE_GLOBALS(ldap)
|
|
|
|
|
|
|
|
#ifdef ZTS
|
2001-07-28 11:36:37 +00:00
|
|
|
# define LDAPG(v) TSRMG(ldap_globals_id, zend_ldap_globals *, v)
|
1999-04-22 00:45:14 +00:00
|
|
|
#else
|
2000-04-01 16:23:39 +00:00
|
|
|
# define LDAPG(v) (ldap_globals.v)
|
1999-04-22 00:45:14 +00:00
|
|
|
#endif
|
|
|
|
|
2000-04-01 16:23:39 +00:00
|
|
|
|
1999-05-21 10:06:25 +00:00
|
|
|
#define phpext_ldap_ptr ldap_module_ptr
|
|
|
|
|
2000-07-02 23:46:51 +00:00
|
|
|
#endif /* PHP_LDAP_H */
|