1998-07-21 06:42:38 +04:00
|
|
|
#############################################################################
|
2007-06-19 15:27:06 +04:00
|
|
|
# $Id: API.pm,v 1.17 2007-06-19 11:27:05 gerv%gerv.net Exp $
|
1998-07-21 06:42:38 +04:00
|
|
|
#
|
2007-06-19 15:27:06 +04:00
|
|
|
# ***** BEGIN LICENSE BLOCK *****
|
|
|
|
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
|
|
|
#
|
|
|
|
# The contents of this file are subject to the Mozilla Public License Version
|
|
|
|
# 1.1 (the "License"); you may not use this file except in compliance with
|
|
|
|
# the License. You may obtain a copy of the License at
|
1998-07-21 06:42:38 +04:00
|
|
|
# http://www.mozilla.org/MPL/
|
|
|
|
#
|
2007-06-19 15:27:06 +04:00
|
|
|
# Software distributed under the License is distributed on an "AS IS" basis,
|
|
|
|
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
|
|
# for the specific language governing rights and limitations under the
|
|
|
|
# License.
|
|
|
|
#
|
|
|
|
# The Original Code is PerLDAP.
|
1998-07-21 06:42:38 +04:00
|
|
|
#
|
2007-06-19 15:27:06 +04:00
|
|
|
# The Initial Developer of the Original Code is
|
|
|
|
# Netscape Communications Corp.
|
|
|
|
# Portions created by the Initial Developer are Copyright (C) 2001
|
|
|
|
# the Initial Developer. All Rights Reserved.
|
1998-07-21 06:42:38 +04:00
|
|
|
#
|
|
|
|
# Contributor(s):
|
2007-06-19 15:27:06 +04:00
|
|
|
# Clayton Donley
|
|
|
|
#
|
|
|
|
# Alternatively, the contents of this file may be used under the terms of
|
|
|
|
# either the GNU General Public License Version 2 or later (the "GPL"), or
|
|
|
|
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
|
|
|
# in which case the provisions of the GPL or the LGPL are applicable instead
|
|
|
|
# of those above. If you wish to allow use of your version of this file only
|
|
|
|
# under the terms of either the GPL or the LGPL, and not to allow others to
|
|
|
|
# use your version of this file under the terms of the MPL, indicate your
|
|
|
|
# decision by deleting the provisions above and replace them with the notice
|
|
|
|
# and other provisions required by the GPL or the LGPL. If you do not delete
|
|
|
|
# the provisions above, a recipient may use your version of this file under
|
|
|
|
# the terms of any one of the MPL, the GPL or the LGPL.
|
1998-07-21 06:42:38 +04:00
|
|
|
#
|
2007-06-19 15:27:06 +04:00
|
|
|
# ***** END LICENSE BLOCK *****
|
|
|
|
|
1998-07-21 06:42:38 +04:00
|
|
|
# DESCRIPTION
|
|
|
|
# This is a description.
|
|
|
|
|
1998-07-21 06:32:13 +04:00
|
|
|
package Mozilla::LDAP::API;
|
|
|
|
|
|
|
|
use strict;
|
|
|
|
use Carp;
|
1998-07-24 23:01:51 +04:00
|
|
|
use vars qw($VERSION @ISA %EXPORT_TAGS @EXPORT @EXPORT_OK $AUTOLOAD);
|
1998-07-21 06:32:13 +04:00
|
|
|
|
|
|
|
require Exporter;
|
|
|
|
require DynaLoader;
|
|
|
|
require AutoLoader;
|
|
|
|
|
|
|
|
@ISA = qw(Exporter DynaLoader);
|
|
|
|
# Items to export into callers namespace by default. Note: do not export
|
|
|
|
# names by default without a very good reason. Use EXPORT_OK instead.
|
|
|
|
# Do not simply export all your public functions/methods/constants.
|
|
|
|
|
1998-07-24 23:01:51 +04:00
|
|
|
%EXPORT_TAGS = (
|
1998-07-29 12:21:44 +04:00
|
|
|
constant => [qw(
|
1998-07-21 06:32:13 +04:00
|
|
|
LDAPS_PORT
|
|
|
|
LDAP_ADMINLIMIT_EXCEEDED
|
|
|
|
LDAP_AFFECTS_MULTIPLE_DSAS
|
|
|
|
LDAP_ALIAS_DEREF_PROBLEM
|
|
|
|
LDAP_ALIAS_PROBLEM
|
|
|
|
LDAP_ALL_USER_ATTRS
|
|
|
|
LDAP_ALREADY_EXISTS
|
|
|
|
LDAP_AUTH_METHOD_NOT_SUPPORTED
|
|
|
|
LDAP_AUTH_NONE
|
|
|
|
LDAP_AUTH_SASL
|
|
|
|
LDAP_AUTH_SIMPLE
|
|
|
|
LDAP_AUTH_UNKNOWN
|
|
|
|
LDAP_BUSY
|
|
|
|
LDAP_CACHE_CHECK
|
|
|
|
LDAP_CACHE_LOCALDB
|
|
|
|
LDAP_CACHE_POPULATE
|
|
|
|
LDAP_CHANGETYPE_ADD
|
|
|
|
LDAP_CHANGETYPE_ANY
|
|
|
|
LDAP_CHANGETYPE_DELETE
|
|
|
|
LDAP_CHANGETYPE_MODDN
|
|
|
|
LDAP_CHANGETYPE_MODIFY
|
|
|
|
LDAP_CLIENT_LOOP
|
|
|
|
LDAP_COMPARE_FALSE
|
|
|
|
LDAP_COMPARE_TRUE
|
|
|
|
LDAP_CONFIDENTIALITY_REQUIRED
|
|
|
|
LDAP_CONNECT_ERROR
|
|
|
|
LDAP_CONSTRAINT_VIOLATION
|
|
|
|
LDAP_CONTROL_ENTRYCHANGE
|
|
|
|
LDAP_CONTROL_MANAGEDSAIT
|
|
|
|
LDAP_CONTROL_NOT_FOUND
|
|
|
|
LDAP_CONTROL_PERSISTENTSEARCH
|
|
|
|
LDAP_CONTROL_PWEXPIRED
|
|
|
|
LDAP_CONTROL_PWEXPIRING
|
|
|
|
LDAP_CONTROL_REFERRALS
|
|
|
|
LDAP_CONTROL_SORTREQUEST
|
|
|
|
LDAP_CONTROL_SORTRESPONSE
|
|
|
|
LDAP_CONTROL_VLVREQUEST
|
|
|
|
LDAP_CONTROL_VLVRESPONSE
|
|
|
|
LDAP_DECODING_ERROR
|
|
|
|
LDAP_DEREF_ALWAYS
|
|
|
|
LDAP_DEREF_FINDING
|
|
|
|
LDAP_DEREF_NEVER
|
|
|
|
LDAP_DEREF_SEARCHING
|
|
|
|
LDAP_ENCODING_ERROR
|
|
|
|
LDAP_FILTER_ERROR
|
|
|
|
LDAP_FILT_MAXSIZ
|
|
|
|
LDAP_INAPPROPRIATE_AUTH
|
|
|
|
LDAP_INAPPROPRIATE_MATCHING
|
|
|
|
LDAP_INSUFFICIENT_ACCESS
|
|
|
|
LDAP_INVALID_CREDENTIALS
|
|
|
|
LDAP_INVALID_DN_SYNTAX
|
|
|
|
LDAP_INVALID_SYNTAX
|
|
|
|
LDAP_IS_LEAF
|
|
|
|
LDAP_LOCAL_ERROR
|
|
|
|
LDAP_LOOP_DETECT
|
|
|
|
LDAP_MOD_ADD
|
|
|
|
LDAP_MOD_BVALUES
|
|
|
|
LDAP_MOD_DELETE
|
|
|
|
LDAP_MOD_REPLACE
|
|
|
|
LDAP_MORE_RESULTS_TO_RETURN
|
|
|
|
LDAP_MSG_ALL
|
|
|
|
LDAP_MSG_ONE
|
|
|
|
LDAP_MSG_RECEIVED
|
|
|
|
LDAP_NAMING_VIOLATION
|
|
|
|
LDAP_NOT_ALLOWED_ON_NONLEAF
|
|
|
|
LDAP_NOT_ALLOWED_ON_RDN
|
|
|
|
LDAP_NOT_SUPPORTED
|
|
|
|
LDAP_NO_ATTRS
|
|
|
|
LDAP_NO_LIMIT
|
|
|
|
LDAP_NO_MEMORY
|
|
|
|
LDAP_NO_OBJECT_CLASS_MODS
|
|
|
|
LDAP_NO_RESULTS_RETURNED
|
|
|
|
LDAP_NO_SUCH_ATTRIBUTE
|
|
|
|
LDAP_NO_SUCH_OBJECT
|
|
|
|
LDAP_OBJECT_CLASS_VIOLATION
|
|
|
|
LDAP_OPERATIONS_ERROR
|
|
|
|
LDAP_OPT_CACHE_ENABLE
|
|
|
|
LDAP_OPT_CACHE_FN_PTRS
|
|
|
|
LDAP_OPT_CACHE_STRATEGY
|
|
|
|
LDAP_OPT_CLIENT_CONTROLS
|
|
|
|
LDAP_OPT_DEREF
|
|
|
|
LDAP_OPT_DESC
|
|
|
|
LDAP_OPT_DNS
|
|
|
|
LDAP_OPT_DNS_FN_PTRS
|
|
|
|
LDAP_OPT_ERROR_NUMBER
|
|
|
|
LDAP_OPT_ERROR_STRING
|
|
|
|
LDAP_OPT_HOST_NAME
|
|
|
|
LDAP_OPT_IO_FN_PTRS
|
|
|
|
LDAP_OPT_MEMALLOC_FN_PTRS
|
|
|
|
LDAP_OPT_OFF
|
|
|
|
LDAP_OPT_ON
|
|
|
|
LDAP_OPT_PREFERRED_LANGUAGE
|
|
|
|
LDAP_OPT_PROTOCOL_VERSION
|
|
|
|
LDAP_OPT_REBIND_ARG
|
|
|
|
LDAP_OPT_REBIND_FN
|
|
|
|
LDAP_OPT_RECONNECT
|
|
|
|
LDAP_OPT_REFERRALS
|
|
|
|
LDAP_OPT_REFERRAL_HOP_LIMIT
|
|
|
|
LDAP_OPT_RESTART
|
|
|
|
LDAP_OPT_RETURN_REFERRALS
|
|
|
|
LDAP_OPT_SERVER_CONTROLS
|
|
|
|
LDAP_OPT_SIZELIMIT
|
|
|
|
LDAP_OPT_SSL
|
|
|
|
LDAP_OPT_THREAD_FN_PTRS
|
|
|
|
LDAP_OPT_TIMELIMIT
|
|
|
|
LDAP_OTHER
|
|
|
|
LDAP_PARAM_ERROR
|
|
|
|
LDAP_PARTIAL_RESULTS
|
|
|
|
LDAP_PORT
|
|
|
|
LDAP_PORT_MAX
|
|
|
|
LDAP_PROTOCOL_ERROR
|
|
|
|
LDAP_REFERRAL
|
|
|
|
LDAP_REFERRAL_LIMIT_EXCEEDED
|
|
|
|
LDAP_RESULTS_TOO_LARGE
|
|
|
|
LDAP_RES_ADD
|
|
|
|
LDAP_RES_ANY
|
|
|
|
LDAP_RES_BIND
|
|
|
|
LDAP_RES_COMPARE
|
|
|
|
LDAP_RES_DELETE
|
|
|
|
LDAP_RES_EXTENDED
|
|
|
|
LDAP_RES_MODIFY
|
|
|
|
LDAP_RES_MODRDN
|
|
|
|
LDAP_RES_RENAME
|
|
|
|
LDAP_RES_SEARCH_ENTRY
|
|
|
|
LDAP_RES_SEARCH_REFERENCE
|
|
|
|
LDAP_RES_SEARCH_RESULT
|
|
|
|
LDAP_ROOT_DSE
|
|
|
|
LDAP_SASL_BIND_IN_PROGRESS
|
|
|
|
LDAP_SASL_EXTERNAL
|
|
|
|
LDAP_SASL_SIMPLE
|
|
|
|
LDAP_SCOPE_BASE
|
|
|
|
LDAP_SCOPE_ONELEVEL
|
|
|
|
LDAP_SCOPE_SUBTREE
|
|
|
|
LDAP_SECURITY_NONE
|
|
|
|
LDAP_SERVER_DOWN
|
|
|
|
LDAP_SIZELIMIT_EXCEEDED
|
|
|
|
LDAP_SORT_CONTROL_MISSING
|
|
|
|
LDAP_STRONG_AUTH_NOT_SUPPORTED
|
|
|
|
LDAP_STRONG_AUTH_REQUIRED
|
|
|
|
LDAP_SUCCESS
|
|
|
|
LDAP_TIMELIMIT_EXCEEDED
|
|
|
|
LDAP_TIMEOUT
|
|
|
|
LDAP_TYPE_OR_VALUE_EXISTS
|
|
|
|
LDAP_UNAVAILABLE
|
|
|
|
LDAP_UNAVAILABLE_CRITICAL_EXTENSION
|
|
|
|
LDAP_UNDEFINED_TYPE
|
|
|
|
LDAP_UNWILLING_TO_PERFORM
|
|
|
|
LDAP_URL_ERR_BADSCOPE
|
|
|
|
LDAP_URL_ERR_MEM
|
|
|
|
LDAP_URL_ERR_NODN
|
|
|
|
LDAP_URL_ERR_NOTLDAP
|
|
|
|
LDAP_URL_ERR_PARAM
|
|
|
|
LDAP_URL_OPT_SECURE
|
|
|
|
LDAP_USER_CANCELLED
|
|
|
|
LDAP_VERSION
|
|
|
|
LDAP_VERSION1
|
|
|
|
LDAP_VERSION2
|
|
|
|
LDAP_VERSION3
|
1998-07-24 23:01:51 +04:00
|
|
|
LDAP_VERSION_MAX)],
|
|
|
|
api => [qw(
|
1998-07-21 06:32:13 +04:00
|
|
|
ldap_abandon ldap_add ldap_add_s ldap_ber_free ldap_build_filter
|
|
|
|
ldap_compare ldap_compare_s ldap_count_entries ldap_create_filter
|
|
|
|
ldap_delete ldap_delete_s ldap_dn2ufn ldap_err2string
|
|
|
|
ldap_explode_dn ldap_explode_rdn ldap_first_attribute
|
|
|
|
ldap_first_entry ldap_free_friendlymap ldap_free_sort_keylist
|
|
|
|
ldap_free_urldesc ldap_friendly_name ldap_get_dn ldap_getfilter_free
|
|
|
|
ldap_getfirstfilter ldap_get_lang_values ldap_get_lang_values_len
|
|
|
|
ldap_get_lderrno ldap_getnextfilter ldap_get_option ldap_get_values
|
|
|
|
ldap_get_values_len ldap_init ldap_init_getfilter
|
|
|
|
ldap_init_getfilter_buf ldap_is_ldap_url ldap_memcache_destroy
|
|
|
|
ldap_memcache_flush ldap_memcache_get ldap_memcache_init
|
|
|
|
ldap_memcache_set ldap_memcache_update ldap_memfree ldap_modify
|
|
|
|
ldap_modify_s ldap_modrdn ldap_modrdn_s ldap_modrdn2 ldap_modrdn2_s
|
|
|
|
ldap_mods_free ldap_msgfree ldap_msgid ldap_msgtype
|
|
|
|
ldap_multisort_entries ldap_next_attribute ldap_next_entry
|
|
|
|
ldap_perror ldap_result ldap_result2error ldap_search ldap_search_s
|
|
|
|
ldap_search_st ldap_set_filter_additions ldap_set_lderrno
|
1998-08-13 17:10:24 +04:00
|
|
|
ldap_set_option ldap_set_rebind_proc ldap_set_default_rebind_proc
|
|
|
|
ldap_simple_bind ldap_simple_bind_s ldap_sort_entries ldap_unbind
|
|
|
|
ldap_unbind_s ldap_url_parse ldap_url_search ldap_url_search_s
|
|
|
|
ldap_url_search_st ldap_version)],
|
1998-07-24 23:01:51 +04:00
|
|
|
apiv3 => [qw(
|
1998-07-21 06:32:13 +04:00
|
|
|
ldap_abandon_ext ldap_add_ext ldap_add_ext_s ldap_compare_ext
|
|
|
|
ldap_compare_ext_s ldap_control_free ldap_controls_count
|
|
|
|
ldap_controls_free ldap_count_messages ldap_count_references
|
|
|
|
ldap_create_persistentsearch_control ldap_create_sort_control
|
|
|
|
ldap_create_sort_keylist ldap_create_virtuallist_control
|
|
|
|
ldap_delete_ext ldap_delete_ext_s ldap_extended_operation
|
|
|
|
ldap_extended_operation_s ldap_first_message ldap_first_reference
|
|
|
|
ldap_get_entry_controls ldap_modify_ext ldap_modify_ext_s
|
|
|
|
ldap_next_message ldap_next_reference ldap_parse_entrychange_control
|
|
|
|
ldap_parse_extended_result ldap_parse_reference ldap_parse_result
|
|
|
|
ldap_parse_sasl_bind_result ldap_parse_sort_control
|
|
|
|
ldap_parse_virtuallist_control ldap_rename ldap_rename_s
|
1998-07-24 23:01:51 +04:00
|
|
|
ldap_sasl_bind ldap_sasl_bind_s ldap_search_ext ldap_search_ext_s)],
|
|
|
|
ssl => [qw(
|
1998-07-21 06:32:13 +04:00
|
|
|
ldapssl_client_init
|
|
|
|
ldapssl_enable_clientauth
|
|
|
|
ldapssl_clientauth_init
|
|
|
|
ldapssl_init
|
1998-07-29 12:21:44 +04:00
|
|
|
ldapssl_install_routines)]
|
1998-07-21 06:32:13 +04:00
|
|
|
);
|
|
|
|
|
1998-07-24 23:01:51 +04:00
|
|
|
# Add Everything in %EXPORT_TAGS to @EXPORT_OK
|
1998-07-29 12:21:44 +04:00
|
|
|
Exporter::export_ok_tags(keys %EXPORT_TAGS);
|
1998-07-24 23:01:51 +04:00
|
|
|
|
2000-10-05 23:47:47 +04:00
|
|
|
$VERSION = '1.41';
|
1998-07-21 06:32:13 +04:00
|
|
|
|
1998-07-25 02:31:03 +04:00
|
|
|
# The XS 'constant' routine returns an integer. There are all constants
|
|
|
|
# we want to return something else.
|
1999-08-25 02:30:55 +04:00
|
|
|
my (%OVERRIDE_CONST) = (
|
1998-07-25 02:31:03 +04:00
|
|
|
"LDAP_ALL_USER_ATTRS","*",
|
|
|
|
"LDAP_CONTROL_ENTRYCHANGE","2.16.840.1.113730.3.4.7",
|
|
|
|
"LDAP_CONTROL_MANAGEDSAIT","2.16.840.1.113730.3.4.2",
|
|
|
|
"LDAP_CONTROL_PERSISTENTSEARCH","2.16.840.1.113730.3.4.3",
|
|
|
|
"LDAP_CONTROL_PWEXPIRED","2.16.840.1.113730.3.4.4",
|
|
|
|
"LDAP_CONTROL_PWEXPIRING","2.16.840.1.113730.3.4.5",
|
|
|
|
"LDAP_CONTROL_REFERRALS","1.2.840.113556.1.4.616",
|
|
|
|
"LDAP_CONTROL_SORTREQUEST","1.2.840.113556.1.4.473",
|
|
|
|
"LDAP_CONTROL_SORTRESPONSE","1.2.840.113556.1.4.474",
|
|
|
|
"LDAP_CONTROL_VLVREQUEST","2.16.840.1.113730.3.4.9",
|
|
|
|
"LDAP_CONTROL_VLVRESPONSE","2.16.840.1.113730.3.4.10",
|
|
|
|
"LDAP_NO_ATTRS","1.1",
|
|
|
|
"LDAP_OPT_OFF",0,
|
|
|
|
"LDAP_OPT_ON",1,
|
|
|
|
"LDAP_ROOT_DSE","",
|
|
|
|
"LDAP_SASL_EXTERNAL","EXTERNAL",
|
|
|
|
);
|
|
|
|
|
1998-07-21 06:32:13 +04:00
|
|
|
sub AUTOLOAD {
|
1999-08-25 02:30:55 +04:00
|
|
|
my ($constname);
|
|
|
|
my ($val);
|
|
|
|
|
1998-07-21 06:32:13 +04:00
|
|
|
# This AUTOLOAD is used to 'autoload' constants from the constant()
|
|
|
|
# XS function. If a constant is not found then control is passed
|
|
|
|
# to the AUTOLOAD in AutoLoader.
|
|
|
|
|
|
|
|
($constname = $AUTOLOAD) =~ s/.*:://;
|
1998-07-25 02:31:03 +04:00
|
|
|
if (($val = $OVERRIDE_CONST{$constname}))
|
|
|
|
{
|
|
|
|
eval "sub $AUTOLOAD { $val }";
|
|
|
|
goto &$AUTOLOAD;
|
|
|
|
}
|
|
|
|
$val = constant($constname, @_ ? $_[0] : 0);
|
1998-07-21 06:32:13 +04:00
|
|
|
if ($! != 0) {
|
|
|
|
if ($! =~ /Invalid/) {
|
|
|
|
$AutoLoader::AUTOLOAD = $AUTOLOAD;
|
|
|
|
goto &AutoLoader::AUTOLOAD;
|
|
|
|
}
|
|
|
|
else {
|
1998-07-25 02:31:03 +04:00
|
|
|
croak "Your vendor has not defined Mozilla::LDAP macro $constname";
|
1998-07-21 06:32:13 +04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
eval "sub $AUTOLOAD { $val }";
|
|
|
|
goto &$AUTOLOAD;
|
|
|
|
}
|
|
|
|
|
|
|
|
bootstrap Mozilla::LDAP::API $VERSION;
|
|
|
|
|
|
|
|
# Preloaded methods go here.
|
|
|
|
|
|
|
|
# Autoload methods go after =cut, and are processed by the autosplit program.
|
|
|
|
|
|
|
|
1;
|
|
|
|
__END__
|
1998-08-13 08:11:20 +04:00
|
|
|
|
1998-07-21 06:32:13 +04:00
|
|
|
=head1 NAME
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Mozilla::LDAP::API - Perl methods for LDAP C API calls
|
1998-07-21 06:32:13 +04:00
|
|
|
|
|
|
|
=head1 SYNOPSIS
|
|
|
|
|
|
|
|
use Mozilla::LDAP::API;
|
1998-08-13 08:11:20 +04:00
|
|
|
or
|
|
|
|
use Mozilla::LDAP::API qw(:api :ssl :constant);
|
|
|
|
or
|
|
|
|
use Mozilla::LDAP::API qw(:api :ssl :apiv3 :constant);
|
1998-07-21 06:32:13 +04:00
|
|
|
|
|
|
|
=head1 DESCRIPTION
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
This package offers a direct interface to the LDAP C API calls from Perl.
|
|
|
|
It is used internally by the other Mozilla::LDAP modules. It is highly
|
|
|
|
suggested that you use the object oriented interface in
|
|
|
|
Mozilla::LDAP::Conn and Mozilla::LDAP::Entry unless you need to use
|
|
|
|
asynchronous calls or other functionality not available in the OO interface.
|
|
|
|
|
|
|
|
=head1 THIS DOCUMENT
|
|
|
|
|
|
|
|
This document has a number of known errors that will be corrected in the
|
|
|
|
next revision. Since it is not expected that users will need to use this
|
|
|
|
interface frequently, priority was placed on other documents. You can find
|
|
|
|
examples of how to actually use the API calls under the test_api directory.
|
|
|
|
|
|
|
|
=head1 CREATING AN ADD/MODIFY HASH
|
|
|
|
|
|
|
|
For the add and modify routines you will need to generate
|
|
|
|
a list of attributes and values.
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
You will do this by creating a HASH table. Each attribute in the
|
|
|
|
hash contains associated values. These values can be one of three
|
|
|
|
things.
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
- SCALAR VALUE (ex. "Clayton Donley")
|
|
|
|
- ARRAY REFERENCE (ex. ["Clayton Donley","Clay Donley"])
|
|
|
|
- HASH REFERENCE (ex. {"r",["Clayton Donley"]}
|
|
|
|
note: the value inside the HASH REFERENCE must currently
|
|
|
|
be an ARRAY REFERENCE.
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
The key inside the HASH REFERENCE must be one of the following for a
|
|
|
|
modify operation:
|
|
|
|
- "a" for LDAP_MOD_ADD (Add these values to the attribute)
|
|
|
|
- "r" for LDAP_MOD_REPLACE (Replace these values in the attribute)
|
|
|
|
- "d" for LDAP_MOD_DELETE (Delete these values from the attribute)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Additionally, in add and modify operations, you may specify "b" if the
|
|
|
|
attributes you are adding are BINARY (ex. "rb" to replace binary).
|
|
|
|
|
|
|
|
Currently, it is only possible to do one operation per add/modify
|
|
|
|
operation, meaning you can't do something like:
|
|
|
|
|
|
|
|
{"d",["Clayton"],"a",["Clay"]} <-- WRONG!
|
|
|
|
|
|
|
|
Using any combination of the above value types, you can do things like:
|
|
|
|
|
|
|
|
%ldap_modifications = (
|
|
|
|
"cn", "Clayton Donley", # Replace 'cn' values
|
|
|
|
"givenname", ["Clayton","Clay"], # Replace 'givenname' values
|
|
|
|
"mail", {"a",["donley\@cig.mcel.mot.com"], #Add 'mail' values
|
|
|
|
"jpegphoto", {"rb",[$jpegphotodata]}, # Replace Binary jpegPhoto
|
|
|
|
);
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Then remember to call the add or modify operations with a REFERENCE to
|
|
|
|
this HASH.
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=head1 API Methods
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
The following are the available API methods for Mozilla::LDAP::API. Many
|
|
|
|
of these items have bad examples and OUTPUT information. Other information
|
|
|
|
should be correct.
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_abandon>(ld,msgid)
|
|
|
|
|
|
|
|
DESCRIPTION:
|
|
|
|
|
|
|
|
Abandon an asynchronous LDAP operation
|
|
|
|
|
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
msgid - Integer
|
|
|
|
|
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
|
|
|
|
|
|
|
AVAILABILITY: V2/V3
|
|
|
|
|
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_abandon($ld,$msgid);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_abandon_ext>(ld,msgid,serverctrls,clientctrls)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Abandon an asynchronous LDAP operation w/ Controls
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
msgid - Integer
|
|
|
|
serverctrls - LDAP Control List Pointer
|
|
|
|
clientctrls - LDAP Control List Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_abandon_ext($ld,$msgid,$serverctrls,$clientctrls);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_add>(ld,dn,attrs)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Asynchronously add a LDAP entry
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
dn - String
|
|
|
|
attrs - LDAP Add/Modify Hash
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V2/V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
$status = ldap_add($ld,$dn,$attrs);
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_add_ext>(ld,dn,attrs,serverctrls,clientctrls,msgidp)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Asynchronously add a LDAP entry w/ Controls
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
dn - String
|
|
|
|
attrs - LDAP Add/Modify Hash
|
|
|
|
serverctrls - LDAP Control List Pointer
|
|
|
|
clientctrls - LDAP Control List Pointer
|
|
|
|
msgidp - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
|
|
|
msgidp - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
2000-10-05 23:47:47 +04:00
|
|
|
AVAILABILITY: V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
$status = ldap_add_ext($ld,$dn,$attrs,$serverctrls,$clientctrls,$msgidp);
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_add_ext_s>(ld,dn,attrs,serverctrls,clientctrls)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Synchronously add a LDAP entry w/ Controls
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
dn - String
|
|
|
|
attrs - LDAP Add/Modify Hash
|
|
|
|
serverctrls - LDAP Control List Pointer
|
|
|
|
clientctrls - LDAP Control List Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_add_ext_s($ld,$dn,$attrs,$serverctrls,$clientctrls);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_add_s>(ld,dn,attrs)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Synchronously add a LDAP entry
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
dn - String
|
|
|
|
attrs - LDAP Add/Modify Hash
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V2/V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_add_s($ld,$dn,$attrs);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_ber_free>(ber,freebuf)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Free a BER element pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ber - BER Element Pointer
|
|
|
|
freebuf - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - NONE
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V2/V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
$status = ldap_ber_free($ber,$freebuf);
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_bind>(ld,dn,passwd,authmethod)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Asynchronously bind to the LDAP server
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
dn - String
|
|
|
|
passwd - String
|
|
|
|
authmethod - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V2/V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
$status = ldap_bind($ld,$dn,$passwd,$authmethod);
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_bind_s>(ld,dn,passwd,authmethod)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Synchronously bind to a LDAP server
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
dn - String
|
|
|
|
passwd - String
|
|
|
|
authmethod - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V2/V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_bind_s($ld,$dn,$passwd,$authmethod);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_compare>(ld,dn,attr,value)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Asynchronously compare an attribute/value pair and an entry
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
dn - String
|
|
|
|
attr - String
|
|
|
|
value - String
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V2/V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
$status = ldap_compare($ld,$dn,$attr,$value);
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_compare_ext>(ld,dn,attr,bvalue,serverctrls,clientctrls,msgidp)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Asynchronously compare an attribute/value pair and an entry w/ Controls
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
dn - String
|
|
|
|
attr - String
|
|
|
|
bvalue - Binary String
|
|
|
|
serverctrls - LDAP Control List Pointer
|
|
|
|
clientctrls - LDAP Control List Pointer
|
|
|
|
msgidp - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
|
|
|
msgidp - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
2000-10-05 23:47:47 +04:00
|
|
|
AVAILABILITY: V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
$status = ldap_compare_ext($ld,$dn,$attr,$bvalue,$serverctrls,$clientctrls,$msgidp);
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_compare_ext_s>(ld,dn,attr,bvalue,serverctrls,clientctrls)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Synchronously compare an attribute/value pair to an entry w/ Controls
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
dn - String
|
|
|
|
attr - String
|
|
|
|
bvalue - Binary String
|
|
|
|
serverctrls - LDAP Control List Pointer
|
|
|
|
clientctrls - LDAP Control List Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_compare_ext_s($ld,$dn,$attr,$bvalue,$serverctrls,$clientctrls);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_compare_s>(ld,dn,attr,value)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Synchronously compare an attribute/value pair to an entry
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
dn - String
|
|
|
|
attr - String
|
|
|
|
value - String
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V2/V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_compare_s($ld,$dn,$attr,$value);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_control_free>(ctrl)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Free a LDAP control pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ctrl - LDAP Control Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - NONE
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_control_free($ctrl);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_controls_count>(ctrls)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Count the number of LDAP controls in a LDAP Control List
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ctrls - LDAP Control List Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_controls_count($ctrls);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_controls_free>(ctrls)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Free a list of LDAP controls
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ctrls - LDAP Control List Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - NONE
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_controls_free($ctrls);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_count_entries>(ld,result)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Count the number of LDAP entries returned
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
result - LDAP Message Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V2/V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
$count = ldap_count_entries($ld,$result);
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_count_messages>(ld,result)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Count the number of LDAP messages returned
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
result - LDAP Message Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_count_messages($ld,$result);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_count_references>(ld,result)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Count the number of LDAP references returned
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
result - LDAP Message Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_count_references($ld,$result);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_create_filter>(buf,buflen,pattern,prefix,suffix,attr,value,valwords)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Create a LDAP search filter
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
buf - String
|
|
|
|
buflen - Integer
|
|
|
|
pattern - String
|
|
|
|
prefix - String
|
|
|
|
suffix - String
|
|
|
|
attr - String
|
|
|
|
value - String
|
|
|
|
valwords - List Reference
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V2/V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_create_filter($buf,$buflen,$pattern,$prefix,$suffix,$attr,$value,$valwords);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_create_persistentsearch_control>(ld,changetypes,changesonly,return_echg_ctrls,ctrl_iscritical,ctrlp)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Create a persistent search control
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
changetypes - Integer
|
|
|
|
changesonly - Integer
|
|
|
|
return_echg_ctrls - Integer
|
|
|
|
ctrl_iscritical - Integer
|
|
|
|
ctrlp - LDAP Control List Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
|
|
|
ctrlp - LDAP Control List Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_create_persistentsearch_control($ld,$changetypes,$changesonly,$return_echg_ctrls,$ctrl_iscritical,$ctrlp);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_create_sort_control>(ld,sortKeyList,ctrl_iscritical,ctrlp)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Create a LDAP sort control
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
sortKeyList - Sort Key Pointer
|
|
|
|
ctrl_iscritical - Integer
|
|
|
|
ctrlp - LDAP Control List Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
|
|
|
ctrlp - LDAP Control List Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_create_sort_control($ld,$sortKeyList,$ctrl_iscritical,$ctrlp);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_create_sort_keylist>(sortKeyList,string_rep)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Create a list of keys to be used by a sort control
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
sortKeyList - Sort Key Pointer
|
|
|
|
string_rep - String
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
|
|
|
sortKeyList - Sort Key Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_create_sort_keylist($sortKeyList,$string_rep);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_create_virtuallist_control>(ld,ldvlistp,ctrlp)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Create a LDAP virtual list control
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
ctrlp - LDAP Control List Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
|
|
|
ctrlp - LDAP Control List Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_create_virtuallist_control($ld,$ldvlistp,$ctrlp);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_delete>(ld,dn)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Asynchronously delete a LDAP entry
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
dn - String
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V2/V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_delete($ld,$dn);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_delete_ext>(ld,dn,serverctrls,clientctrls,msgidp)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Asynchronously delete a LDAP entry w/ Controls
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
dn - String
|
|
|
|
serverctrls - LDAP Control List Pointer
|
|
|
|
clientctrls - LDAP Control List Pointer
|
|
|
|
msgidp - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
|
|
|
msgidp - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_delete_ext($ld,$dn,$serverctrls,$clientctrls,$msgidp);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_delete_ext_s>(ld,dn,serverctrls,clientctrls)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Synchronously delete a LDAP entry w/ Controls
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
dn - String
|
|
|
|
serverctrls - LDAP Control List Pointer
|
|
|
|
clientctrls - LDAP Control List Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_delete_ext_s($ld,$dn,$serverctrls,$clientctrls);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_delete_s>(ld,dn)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Synchronously delete a LDAP entry
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
dn - String
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V2/V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_delete_s($ld,$dn);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_dn2ufn>(dn)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Change a DN to a "Friendly" name
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
dn - String
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - String
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V2/V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_dn2ufn($dn);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_err2string>(err)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Return the string value of a LDAP error code
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
err - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - String
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V2/V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_err2string($err);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_explode_dn>(dn,notypes)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Split a given DN into its components. Setting 'notypes' to 1 returns the
|
|
|
|
components without their type names.
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
dn - String
|
|
|
|
notypes - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - NONE
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V2/V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_explode_dn($dn,$notypes);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_explode_rdn>(dn,notypes)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Split a Relative DN into its components
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
dn - String
|
|
|
|
notypes - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - NONE
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V2/V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_explode_rdn($dn,$notypes);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_extended_operation>(ld,requestoid,requestdata,serverctrls,clientctrls,msgidp)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Perform an asynchronous extended operation
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
requestoid - String
|
|
|
|
requestdata - Binary String
|
|
|
|
serverctrls - LDAP Control List Pointer
|
|
|
|
clientctrls - LDAP Control List Pointer
|
|
|
|
msgidp - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
|
|
|
msgidp - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_extended_operation($ld,$requestoid,$requestdata,$serverctrls,$clientctrls,$msgidp);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_extended_operation_s>(ld,requestoid,requestdata,serverctrls,clientctrls,retoidp,retdatap)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Perform a synchronous extended operation
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
requestoid - String
|
|
|
|
requestdata - Binary String
|
|
|
|
serverctrls - LDAP Control List Pointer
|
|
|
|
clientctrls - LDAP Control List Pointer
|
|
|
|
retoidp - String
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
|
|
|
retoidp - Return OID
|
|
|
|
retdatap - Return Data
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_extended_operation_s($ld,$requestoid,$requestdata,$serverctrls,$clientctrls,$retoidp,$retdatap);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_first_attribute>(ld,entry,ber)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Return the first attribute returned for a LDAP entry
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
entry - LDAP Message Pointer
|
|
|
|
ber - Ber Element Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - String
|
|
|
|
ber - Ber Element Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V2/V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_first_attribute($ld,$entry,$ber);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_first_entry>(ld,chain)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Return the first entry in a LDAP result chain
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
chain - LDAP Message Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - LDAP Message Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V2/V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_first_entry($ld,$chain);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_first_message>(ld,res)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Return the first message in a LDAP result
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
res - LDAP Message Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - LDAP Message Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_first_message($ld,$res);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_first_reference>(ld,res)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Return the first reference in a LDAP result
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
res - LDAP Message Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - LDAP Message Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_first_reference($ld,$res);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_free_friendlymap>(map)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Free a LDAP friendly map pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
map - Friendly Map Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - NONE
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V2/V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_free_friendlymap($map);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_free_sort_keylist>(sortKeyList)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Free a LDAP sort key pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
sortKeyList - Sort Key Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - NONE
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_free_sort_keylist($sortKeyList);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_free_urldesc>(ludp)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Free a LDAP URL description hash reference
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ludp - URL Description Hash Reference
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - NONE
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_free_urldesc($ludp);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_friendly_name>(filename,name,map)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Create a LDAP friendly name map
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
filename - String
|
|
|
|
name - String
|
|
|
|
map - Friendly Map Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - String
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_friendly_name($filename,$name,$map);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_get_dn>(ld,entry)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Return the distinguished name for an entry
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
entry - LDAP Message Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - String
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V2/V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_get_dn($ld,$entry);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_get_entry_controls>(ld,entry,serverctrlsp)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Return the controls for a LDAP entry
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
entry - LDAP Message Pointer
|
|
|
|
serverctrlsp - LDAP Control List Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
|
|
|
serverctrlsp - LDAP Control List Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_get_entry_controls($ld,$entry,$serverctrlsp);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_getfilter_free>(lfdp)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Free a LDAP filter
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
lfdp - LDAP Filter Description Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - NONE
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_getfilter_free($lfdp);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_getfirstfilter>(lfdp,tagpat,value)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Get the first generated filter
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
lfdp - LDAP Filter Description Pointer
|
|
|
|
tagpat - String
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - LDAP Filter Information Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V2/V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_getfirstfilter($lfdp,$tagpat,$value);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_get_lang_values>(ld,entry,target,type)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Get values for an entry
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
entry - LDAP Message Pointer
|
|
|
|
target - String
|
|
|
|
type - String
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - NONE
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_get_lang_values($ld,$entry,$target,$type);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_get_lang_values_len>(ld,entry,target,type)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Get binary values for an entry
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
entry - LDAP Message Pointer
|
|
|
|
target - String
|
|
|
|
type - String
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - NONE
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_get_lang_values_len($ld,$entry,$target,$type);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_get_lderrno>(ld,m,s)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
m - String Reference (or undef)
|
|
|
|
s - String Reference (or undef)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V2/V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
$status = ldap_get_lderrno($ld,\$m,\$s);
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_getnextfilter>(lfdp)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Get the next generated LDAP filter
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
lfdp - LDAP Filter Information Pointer
|
|
|
|
|
|
|
|
OUTPUT:
|
|
|
|
status - LDAP Filter Information Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V2/V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_getnextfilter($lfdp);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_get_option>(ld,option,optdata)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Get an option for a LDAP session
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
option - Integer
|
|
|
|
optdata - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
|
|
|
optdata - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V2/V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_get_option($ld,$option,$optdata);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_get_values>(ld,entry,target)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Get the values for a LDAP entry and attribute
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
entry - LDAP Message Pointer
|
|
|
|
target - String
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - NONE
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_get_values($ld,$entry,$target);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_get_values_len>(ld,entry,target)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Get the binary values for a LDAP entry and attribute
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
entry - LDAP Message Pointer
|
|
|
|
target - String
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - NONE
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_get_values_len($ld,$entry,$target);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_init>(host,port)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Initialize a LDAP session
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
host - String
|
|
|
|
port - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - LDAP Session Handle
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V2/V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_init($host,$port);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_init_getfilter>(fname)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Initialize the LDAP filter generation routines to a filename
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
fname - Filename String
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - LDAP Filter Description Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V2/V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_init_getfilter($fname);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_init_getfilter_buf>(buf,buflen)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Initialize the LDAP filter generation routines to a buffer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
buf - String
|
|
|
|
buflen - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - LDAP Filter Description Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V2/V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_init_getfilter_buf($buf,$buflen);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_is_ldap_url>(url)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Return 1 if an the argument is a valid LDAP URL
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
url - String
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V2/V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_is_ldap_url($url);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_memcache_destroy>(cache)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Destroy a memory cache
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
cache - LDAP Memory Cache Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - NONE
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_memcache_destroy($cache);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_memcache_flush>(cache,dn,scope)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Flush a specific DN from the memory cache
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
cache - LDAP Memory Cache Pointer
|
|
|
|
dn - String
|
|
|
|
scope - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - NONE
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_memcache_flush($cache,$dn,$scope);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_memcache_get>(ld,cachep)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Get the memory cache for a LDAP session
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
cachep - LDAP Memory Cache Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
|
|
|
cachep - LDAP Memory Cache Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_memcache_get($ld,$cachep);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_memcache_init>(ttl,size,baseDNs,cachep)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Initialize a LDAP memory cache
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ttl - Integer
|
|
|
|
size - Integer
|
|
|
|
baseDNs - List Reference
|
|
|
|
cachep - LDAP Memory Cache Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
|
|
|
cachep - LDAP Memory Cache Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_memcache_init($ttl,$size,$baseDNs,$cachep);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_memcache_set>(ld,cache)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Set the LDAP memory cache for the session
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
cache - LDAP Memory Cache Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V2/V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_memcache_set($ld,$cache);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_memcache_update>(cache)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Update the specified memory cache
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
cache - LDAP Memory Cache Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - NONE
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_memcache_update($cache);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_memfree>(p)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Free memory allocated by the LDAP C API
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
p - Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - NONE
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V2/V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_memfree($p);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_modify>(ld,dn,mods)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Asynchronously modify a LDAP entry
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
dn - String
|
|
|
|
mods - LDAP Add/Modify Hash
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V2/V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_modify($ld,$dn,$mods);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_modify_ext>(ld,dn,mods,serverctrls,clientctrls,msgidp)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Asynchronously modify a LDAP entry w/ Controls
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
dn - String
|
|
|
|
mods - LDAP Add/Modify Hash
|
|
|
|
serverctrls - LDAP Control List Pointer
|
|
|
|
clientctrls - LDAP Control List Pointer
|
|
|
|
msgidp - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
|
|
|
msgidp - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_modify_ext($ld,$dn,$mods,$serverctrls,$clientctrls,$msgidp);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_modify_ext_s>(ld,dn,mods,serverctrls,clientctrls)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Synchronously modify a LDAP entry w/ Controls
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
dn - String
|
|
|
|
mods - LDAP Add/Modify Hash
|
|
|
|
serverctrls - LDAP Control List Pointer
|
|
|
|
clientctrls - LDAP Control List Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_modify_ext_s($ld,$dn,$mods,$serverctrls,$clientctrls);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_modify_s>(ld,dn,mods)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Synchronously modify a LDAP entry
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
dn - String
|
|
|
|
mods - LDAP Add/Modify Hash
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V2/V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_modify_s($ld,$dn,$mods);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_modrdn>(ld,dn,newrdn)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Asynchronously modify the relative distinguished name of an entry
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
dn - String
|
|
|
|
newrdn - String
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V2/V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_modrdn($ld,$dn,$newrdn);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_modrdn_s>(ld,dn,newrdn)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Synchronously modify the relative distinguished name of an entry
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
dn - String
|
|
|
|
newrdn - String
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V2/V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_modrdn_s($ld,$dn,$newrdn);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_modrdn2>(ld,dn,newrdn,deleteoldrdn)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Asynchronously modify the relative distinguished name of an entry.
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
dn - String
|
|
|
|
newrdn - String
|
|
|
|
deleteoldrdn - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V2/V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_modrdn2($ld,$dn,$newrdn,$deleteoldrdn);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_modrdn2_s>(ld,dn,newrdn,deleteoldrdn)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Synchronously modify the relative distinguished name of an entry.
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
dn - String
|
|
|
|
newrdn - String
|
|
|
|
deleteoldrdn - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V2/V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_modrdn2_s($ld,$dn,$newrdn,$deleteoldrdn);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_msgfree>(lm)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Free memory allocated by a LDAP Message
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
lm - LDAP Message Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V2/V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_msgfree($lm);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_msgid>(lm)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Get the message id number from a LDAP message
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
lm - LDAP Message Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V2/V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_msgid($lm);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_msgtype>(lm)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Get the message type of a LDAP message
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
lm - LDAP Message Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V2/V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_msgtype($lm);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_multisort_entries>(ld,chain,attr)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Sort entries by multiple keys
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
chain - LDAP Message Pointer
|
|
|
|
attr - List Reference
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
|
|
|
chain - LDAP Message Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V2/V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_multisort_entries($ld,$chain,$attr);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_next_attribute>(ld,entry,ber)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Get the next attribute for a LDAP entry
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
entry - LDAP Message Pointer
|
|
|
|
ber - Ber Element Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - String
|
|
|
|
ber - BER Element Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V2/V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_next_attribute($ld,$entry,$ber);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_next_entry>(ld,entry)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Get the next entry in the result chain
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
entry - LDAP Message Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - LDAP Message Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V2/V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_next_entry($ld,$entry);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_next_message>(ld,msg)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Get the next message in the result chain
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
msg - LDAP Message Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - LDAP Message Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_next_message($ld,$msg);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_next_reference>(ld,ref)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Get the next reference in the result chain
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
ref - LDAP Message Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - LDAP Message Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_next_reference($ld,$ref);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_parse_entrychange_control>(ld,ctrls,chgtypep,prevdnp,chgnumpresentp,chgnump)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Parse a LDAP entry change control
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
ctrls - LDAP Control List Pointer
|
|
|
|
chgtypep - Integer
|
|
|
|
prevdnp - String
|
|
|
|
chgnumpresentp - Integer
|
|
|
|
chgnump - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
|
|
|
chgtypep - Integer
|
|
|
|
prevdnp - String
|
|
|
|
chgnumpresentp - Integer
|
|
|
|
chgnump - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_parse_entrychange_control($ld,$ctrls,$chgtypep,$prevdnp,$chgnumpresentp,$chgnump);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_parse_extended_result>(ld,res,retoidp,retdatap,freeit)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Parse a LDAP extended result
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
res - LDAP Message Pointer
|
|
|
|
retoidp - String
|
|
|
|
freeit - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
|
|
|
retoidp - String
|
|
|
|
retdatap - Binary List Reference
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_parse_extended_result($ld,$res,$retoidp,$retdatap,$freeit);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_parse_reference>(ld,ref,referalsp,serverctrlsp,freeit)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Parse a LDAP Reference
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
ref - LDAP Message Pointer
|
|
|
|
referalsp - List Reference
|
|
|
|
serverctrlsp - LDAP Control List Pointer
|
|
|
|
freeit - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
|
|
|
referalsp - List Reference
|
|
|
|
serverctrlsp - LDAP Control List Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_parse_reference($ld,$ref,$referalsp,$serverctrlsp,$freeit);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_parse_result>(ld,res,errcodep,matcheddnp,errmsgp,referralsp,serverctrlsp,freeit)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Parse a LDAP result
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
res - LDAP Message Pointer
|
|
|
|
errcodep - Integer
|
|
|
|
matcheddnp - String
|
|
|
|
errmsgp - String
|
|
|
|
referralsp - List Reference
|
|
|
|
serverctrlsp - LDAP Control List Pointer
|
|
|
|
freeit - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
|
|
|
errcodep - Integer
|
|
|
|
matcheddnp - String
|
|
|
|
errmsgp - String
|
|
|
|
referralsp - List Reference
|
|
|
|
serverctrlsp - LDAP Control List Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_parse_result($ld,$res,$errcodep,$matcheddnp,$errmsgp,$referralsp,$serverctrlsp,$freeit);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_parse_sasl_bind_result>(ld,res,servercredp,freeit)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Parse the results of an SASL bind operation
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
res - LDAP Message Pointer
|
|
|
|
freeit - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
|
|
|
servercredp -
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_parse_sasl_bind_result($ld,$res,$servercredp,$freeit);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_parse_sort_control>(ld,ctrls,result,attribute)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Parse a LDAP sort control
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
ctrls - LDAP Control List Pointer
|
|
|
|
result - LDAP Message Pointer
|
|
|
|
attribute - String
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
|
|
|
result - LDAP Message Pointer
|
|
|
|
attribute - String
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_parse_sort_control($ld,$ctrls,$result,$attribute);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_parse_virtuallist_control>(ld,ctrls,target_posp,list_sizep,errcodep)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Parse a LDAP virtual list control
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
ctrls - LDAP Control List Pointer
|
|
|
|
target_posp - Integer
|
|
|
|
list_sizep - Integer
|
|
|
|
errcodep - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
|
|
|
target_posp - Integer
|
|
|
|
list_sizep - Integer
|
|
|
|
errcodep - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_parse_virtuallist_control($ld,$ctrls,$target_posp,$list_sizep,$errcodep);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_perror>(ld,s)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Print a LDAP error message
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
s - String
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - NONE
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V2/V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_perror($ld,$s);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_rename>(ld,dn,newrdn,newparent,deleteoldrdn,serverctrls,clientctrls,msgidp)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Asynchronously rename a LDAP entry
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
dn - String
|
|
|
|
newrdn - String
|
|
|
|
newparent - String
|
|
|
|
deleteoldrdn - Integer
|
|
|
|
serverctrls - LDAP Control List Pointer
|
|
|
|
clientctrls - LDAP Control List Pointer
|
|
|
|
msgidp - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
|
|
|
msgidp - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_rename($ld,$dn,$newrdn,$newparent,$deleteoldrdn,$serverctrls,$clientctrls,$msgidp);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_rename_s>(ld,dn,newrdn,newparent,deleteoldrdn,serverctrls,clientctrls)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Synchronously rename a LDAP entry
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
dn - String
|
|
|
|
newrdn - String
|
|
|
|
newparent - String
|
|
|
|
deleteoldrdn - Integer
|
|
|
|
serverctrls - LDAP Control List Pointer
|
|
|
|
clientctrls - LDAP Control List Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_rename_s($ld,$dn,$newrdn,$newparent,$deleteoldrdn,$serverctrls,$clientctrls);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_result>(ld,msgid,all,timeout,result)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Get the result for an asynchronous LDAP operation
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
msgid - Integer
|
|
|
|
all - Integer
|
|
|
|
timeout - Time in Seconds
|
|
|
|
result - LDAP Message Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
|
|
|
result - LDAP Message Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V2/V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_result($ld,$msgid,$all,$timeout,$result);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_result2error>(ld,r,freeit)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Get the error number for a given result
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
r - LDAP Message Pointer
|
|
|
|
freeit - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V2/V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_result2error($ld,$r,$freeit);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_sasl_bind>(ld,dn,mechanism,cred,serverctrls,clientctrls,msgidp)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Asynchronously bind to the LDAP server using a SASL mechanism
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
dn - String
|
|
|
|
mechanism - String
|
|
|
|
cred - Binary String
|
|
|
|
serverctrls - LDAP Control List Pointer
|
|
|
|
clientctrls - LDAP Control List Pointer
|
|
|
|
msgidp - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
|
|
|
msgidp - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_sasl_bind($ld,$dn,$mechanism,$cred,$serverctrls,$clientctrls,$msgidp);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_sasl_bind_s>(ld,dn,mechanism,cred,serverctrls,clientctrls,servercredp)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Synchronously bind to a LDAP server using a SASL mechanism
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
dn - String
|
|
|
|
mechanism - String
|
|
|
|
cred - Binary String
|
|
|
|
serverctrls - LDAP Control List Pointer
|
|
|
|
clientctrls - LDAP Control List Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
|
|
|
servercredp -
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_sasl_bind_s($ld,$dn,$mechanism,$cred,$serverctrls,$clientctrls,$servercredp);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_search>(ld,base,scope,filter,attrs,attrsonly)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Asynchronously search the LDAP server
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
base - String
|
|
|
|
scope - Integer
|
|
|
|
filter - String
|
|
|
|
attrs - List Reference
|
|
|
|
attrsonly - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V2/V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_search($ld,$base,$scope,$filter,$attrs,$attrsonly);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_search_ext>(ld,base,scope,filter,attrs,attrsonly,serverctrls,clientctrls,timeoutp,sizelimit,msgidp)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Asynchronously search the LDAP server w/ Controls
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
base - String
|
|
|
|
scope - Integer
|
|
|
|
filter - String
|
|
|
|
attrs - List Reference
|
|
|
|
attrsonly - Integer
|
|
|
|
serverctrls - LDAP Control List Pointer
|
|
|
|
clientctrls - LDAP Control List Pointer
|
|
|
|
timeoutp - Time in Seconds
|
|
|
|
sizelimit - Integer
|
|
|
|
msgidp - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
|
|
|
msgidp - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_search_ext($ld,$base,$scope,$filter,$attrs,$attrsonly,$serverctrls,$clientctrls,$timeoutp,$sizelimit,$msgidp);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_search_ext_s>(ld,base,scope,filter,attrs,attrsonly,serverctrls,clientctrls,timeoutp,sizelimit,res)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Synchronously search the LDAP server w/ Controls
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
base - String
|
|
|
|
scope - Integer
|
|
|
|
filter - String
|
|
|
|
attrs - List Reference
|
|
|
|
attrsonly - Integer
|
|
|
|
serverctrls - LDAP Control List Pointer
|
|
|
|
clientctrls - LDAP Control List Pointer
|
|
|
|
timeoutp - Time in Seconds
|
|
|
|
sizelimit - Integer
|
|
|
|
res - LDAP Message Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
|
|
|
res - LDAP Message Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_search_ext_s($ld,$base,$scope,$filter,$attrs,$attrsonly,$serverctrls,$clientctrls,$timeoutp,$sizelimit,$res);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_search_s>(ld,base,scope,filter,attrs,attrsonly,res)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Synchronously search the LDAP server
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
base - String
|
|
|
|
scope - Integer
|
|
|
|
filter - String
|
|
|
|
attrs - List Reference
|
|
|
|
attrsonly - Integer
|
|
|
|
res - LDAP Message Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
|
|
|
res - LDAP Message Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V2/V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_search_s($ld,$base,$scope,$filter,$attrs,$attrsonly,$res);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_search_st>(ld,base,scope,filter,attrs,attrsonly,timeout,res)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Synchronously search the LDAP server w/ Timeout
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
base - String
|
|
|
|
scope - Integer
|
|
|
|
filter - String
|
|
|
|
attrs - List Reference
|
|
|
|
attrsonly - Integer
|
|
|
|
timeout - Time in Seconds
|
|
|
|
res - LDAP Message Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
|
|
|
res - LDAP Message Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V2/V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_search_st($ld,$base,$scope,$filter,$attrs,$attrsonly,$timeout,$res);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_set_filter_additions>(lfdp,prefix,suffix)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Add a prefix and suffix for filter generation
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
lfdp - LDAP Filter Description Pointer
|
|
|
|
prefix - String
|
|
|
|
suffix - String
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V2/V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_set_filter_additions($lfdp,$prefix,$suffix);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_set_lderrno>(ld,e,m,s)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Set the LDAP error structure
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
e - Integer
|
|
|
|
m - String
|
|
|
|
s - String
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V2/V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_set_lderrno($ld,$e,$m,$s);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_set_option>(ld,option,optdata)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Set a LDAP session option
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
option - Integer
|
|
|
|
optdata - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V2/V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_set_option($ld,$option,$optdata);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_set_rebind_proc>(ld,rebindproc)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Set the LDAP rebind process
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - NONE
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V2/V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_set_rebind_proc($ld,$rebindproc);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_simple_bind>(ld,who,passwd)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Asynchronously bind to the LDAP server using simple authentication
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
who - String
|
|
|
|
passwd - String
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V2/V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_simple_bind($ld,$who,$passwd);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_simple_bind_s>(ld,who,passwd)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Synchronously bind to the LDAP server using simple authentication
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
who - String
|
|
|
|
passwd - String
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V2/V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_simple_bind_s($ld,$who,$passwd);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_sort_entries>(ld,chain,attr)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Sort the results of a LDAP search
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
chain - LDAP Message Pointer
|
|
|
|
attr - String
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
|
|
|
chain - LDAP Message Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V2/V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_sort_entries($ld,$chain,$attr);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_unbind>(ld)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Asynchronously unbind from the LDAP server
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V2/V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_unbind($ld);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_unbind_s>(ld)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Synchronously unbind from a LDAP server
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V2/V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_unbind_s($ld);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_url_parse>(url)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Parse a LDAP URL, returning a HASH of its components
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
url - String
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status -
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V2/V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_url_parse($url);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_url_search>(ld,url,attrsonly)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Asynchronously search using a LDAP URL
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
url - String
|
|
|
|
attrsonly - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V2/V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_url_search($ld,$url,$attrsonly);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_url_search_s>(ld,url,attrsonly,res)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Synchronously search using a LDAP URL
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
url - String
|
|
|
|
attrsonly - Integer
|
|
|
|
res - LDAP Message Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
|
|
|
res - LDAP Message Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V2/V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_url_search_s($ld,$url,$attrsonly,$res);
|
|
|
|
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
=item B<ldap_url_search_st>(ld,url,attrsonly,timeout,res)
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
DESCRIPTION:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Synchronously search using a LDAP URL w/ timeout
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
INPUT:
|
|
|
|
ld - LDAP Session Handle
|
|
|
|
url - String
|
|
|
|
attrsonly - Integer
|
|
|
|
timeout - Time in Seconds
|
|
|
|
res - LDAP Message Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
OUTPUT:
|
|
|
|
status - Integer
|
|
|
|
res - LDAP Message Pointer
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
AVAILABILITY: V2/V3
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
EXAMPLE:
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
$status = ldap_url_search_st($ld,$url,$attrsonly,$timeout,$res);
|
|
|
|
|
1998-08-14 02:03:42 +04:00
|
|
|
=head1 CREDITS
|
1998-08-11 01:56:09 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Most of the Perl API module was written by Clayton Donley to interface with
|
|
|
|
C API routines from Netscape Communications Corp., Inc.
|
1998-08-11 01:56:09 +04:00
|
|
|
|
|
|
|
=head1 BUGS
|
1998-07-21 06:32:13 +04:00
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
Documentation needs much work.
|
|
|
|
LDAPv3 calls not tested or supported in this version.
|
|
|
|
NT can not use Perl Rebind processes, must use 'ldap_set_default_rebindproc'.
|
|
|
|
Possible memory leak in ldap_search* is being investigated.
|
1998-07-21 06:32:13 +04:00
|
|
|
|
|
|
|
=head1 SEE ALSO
|
|
|
|
|
1998-08-13 08:11:20 +04:00
|
|
|
L<Mozilla::LDAP::Conn>, L<Mozilla::LDAP::Entry>, and L<Perl>
|
1998-07-21 06:32:13 +04:00
|
|
|
|
|
|
|
=cut
|