v5:database:ldap
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
database:ldap [2015/10/08 03:51] – [Available Methods] mnewnham | v5:database:ldap [2023/11/17 15:39] – mnewnham | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== LDAP ====== | ====== LDAP ====== | ||
+ | ~~NOTOC~~ | ||
+ | <WRAP right box round 300px> | ||
+ | == Specification == | ||
+ | ^Driver Name|ldap| | ||
+ | ^Data Provider|ldap| | ||
+ | ^Status|Inactive((This driver is not actively supported or enhanced by ADOdb project members, but you can provide fixes and enhancements if you have the expertise))| | ||
+ | ^Windows|Yes| | ||
+ | ^Unix|Perhaps((We have never tried it except against Microsoft LDAP servers from Windows))| | ||
+ | ^ADOdb V5|Yes| | ||
+ | ^ADOdb V6|Yes| | ||
+ | |||
+ | </ | ||
===== Description ===== | ===== Description ===== | ||
The '' | The '' | ||
- | ===== Specification ===== | ||
- | |Driver|ldap| | ||
- | |Status|Active| | ||
- | |Supported OS|Windows Yes, Other platforms unknown| | ||
===== Available Methods ===== | ===== Available Methods ===== | ||
The following methods are available for use with the LDAP driver: | The following methods are available for use with the LDAP driver: | ||
- | * [[reference: | + | * [[v5:reference: |
- | * [[reference: | + | * [[v5: |
- | * [[dictionary: | + | * [[v5:reference:connection: |
- | * [[reference: | + | * [[v5: |
+ | * [[v5:reference:connection: | ||
+ | * [[v5: | ||
| | ||
Calls to other methods when used with this driver may produce unexpected results or program failure. | Calls to other methods when used with this driver may produce unexpected results or program failure. | ||
Line 18: | Line 28: | ||
<code php> | <code php> | ||
$db = newAdoConnection(' | $db = newAdoConnection(' | ||
+ | $baseDN | ||
+ | $adServer = ' | ||
+ | $user = ' | ||
+ | $password = ' | ||
+ | |||
+ | $db-> | ||
+ | |||
+ | $result = $db-> | ||
</ | </ | ||
- | ===== Custom Functionality | + | ===== Connection Parameters |
- | If defined prior to connection, the following | + | |
- | Valid Domain Values for LDAP Options: | + | The following |
- | LDAP_OPT_DEREF | + | |
- | LDAP_OPT_SIZELIMIT | + | |
- | LDAP_OPT_TIMELIMIT | + | ^ OPTION_NAME ^ Type ^ |
- | LDAP_OPT_PROTOCOL_VERSION | + | | '' |
- | LDAP_OPT_ERROR_NUMBER | + | | '' |
- | LDAP_OPT_REFERRALS | + | | '' |
- | LDAP_OPT_RESTART | + | | '' |
- | LDAP_OPT_HOST_NAME | + | | '' |
- | LDAP_OPT_ERROR_STRING | + | | '' |
- | LDAP_OPT_MATCHED_DN | + | | '' |
- | LDAP_OPT_SERVER_CONTROLS | + | | '' |
- | LDAP_OPT_CLIENT_CONTROLS | + | | '' |
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | |||
+ | |||
+ | From ADOdb 5.22.7, default values set are as follows | ||
+ | |||
+ | ^Parameter^Value^ | ||
+ | |LDAP_OPT_PROTOCOL_VERSION|3| | ||
+ | |LDAP_OPT_REFERRALS|0| | ||
+ | |||
+ | These values can be changed with **// | ||
+ | |||
+ | The following usage method is deprecated in PHP8.2 and will not work with PHP 8.3. Use **// | ||
- | Make sure to set this BEFORE calling Connect() | ||
- | Example: | ||
<code php> | <code php> | ||
$LDAP_CONNECT_OPTIONS = Array( | $LDAP_CONNECT_OPTIONS = Array( | ||
Line 54: | Line 84: | ||
), | ), | ||
Array ( | Array ( | ||
- | " | + | " |
" | " | ||
), | ), | ||
Line 71: | Line 101: | ||
); | ); | ||
</ | </ | ||
+ | |||
+ | {{tag> | ||
+ |
v5/database/ldap.txt · Last modified: 2023/11/18 23:45 by mnewnham