14.02.2014 Views

ldapv3.pdf 7947KB Apr 17 2013 11:30:42 AM - mirror omadata

ldapv3.pdf 7947KB Apr 17 2013 11:30:42 AM - mirror omadata

ldapv3.pdf 7947KB Apr 17 2013 11:30:42 AM - mirror omadata

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ldap_get_option<br />

boolean ldap_get_option (resource link_identifier, int option, mixed retval)<br />

The ldap_get_option functon is used to test whether at given option or<br />

control applies to an LDAP connection.<br />

if (ldap_get_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3))<br />

echo "Using LDAP version 3";<br />

else<br />

if (ldap_get_option($ds, LDAP_OPT_PROTOCOL_VERSION, 2)<br />

echo "Using LDAP version 2";<br />

else<br />

echo "Er, Ok.... So what LDAP protocol version are we using?";<br />

The above example attempts to report the level of the LDAP protocol<br />

used over the connection "$ds".

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!