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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Using LDAP via PHP<br />

Establish Connection<br />

ldap_connect<br />

Set Connection Options<br />

ldap_set_option<br />

Create Security Context<br />

ldap_bind<br />

Do<br />

Work...<br />

PHP provides a very robust API for working<br />

with LDAP servers, but the API is quite<br />

different from the API of most RDMSs that<br />

PHP supports, and that PHP developers tend<br />

to be most familiar with.<br />

It is imperitive that PHP LDAP developers<br />

carefully monitor the value of ldap_error as<br />

there are many more reasons (very granular<br />

security, etc...) LDAP access may fail than is<br />

typically encountered when working with a<br />

relation database system.<br />

Drop Security Context<br />

& Close Connection<br />

ldap_unbind

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

Saved successfully!

Ooh no, something went wrong!