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 | ||
v5:database:ldap [2023/06/04 11:41] – ↷ Links adapted because of a move operation dregad | v5:database:ldap [2023/11/18 12:29] – [Available Methods] fix broken link to execute() dregad | ||
---|---|---|---|
Line 17: | Line 17: | ||
The following methods are available for use with the LDAP driver: | The following methods are available for use with the LDAP driver: | ||
+ | * [[v5: | ||
* [[v5: | * [[v5: | ||
* [[v5: | * [[v5: | ||
* [[v5: | * [[v5: | ||
* [[v5: | * [[v5: | ||
+ | * [[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. | ||
===== Usage ===== | ===== Usage ===== | ||
+ | |||
+ | You must use standard [[https:// | ||
+ | |||
<code php> | <code php> | ||
$db = newAdoConnection(' | $db = newAdoConnection(' | ||
+ | $baseDN | ||
+ | $adServer = ' | ||
+ | $user = ' | ||
+ | $password = ' | ||
+ | |||
+ | $db-> | ||
+ | |||
+ | $result = $db-> | ||
</ | </ | ||
- | ===== Custom Functionality ===== | + | ==== URI Connections |
- | If defined prior to connection, the following variables will be passed as input bind variables. | + | The **// |
- | Valid Domain Values for LDAP Connection | + | - Use an alternate connection port '' |
+ | - Use ldap over SSL - '' | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ===== Connection | ||
+ | |||
+ | The following values may be injected into the connection via the use of [[v5:reference: | ||
^ OPTION_NAME ^ Type ^ | ^ OPTION_NAME ^ Type ^ | ||
Line 47: | Line 69: | ||
| '' | | '' | ||
- | Make sure to set this BEFORE calling Connect() | + | |
- | Example: | + | From ADOdb 5.22.7, default values |
+ | |||
+ | ^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 **// | ||
<code php> | <code php> | ||
$LDAP_CONNECT_OPTIONS = Array( | $LDAP_CONNECT_OPTIONS = Array( | ||
Line 64: | Line 95: | ||
), | ), | ||
Array ( | Array ( | ||
- | " | + | " |
" | " | ||
), | ), |
v5/database/ldap.txt · Last modified: 2023/11/18 23:45 by mnewnham