Back to index

php5  5.3.10
skipifbindfailure.inc
Go to the documentation of this file.
00001 <?php
00002 require_once 'connect.inc';
00003 
00004 if ($skip_on_bind_failure) {
00005 
00006        $link = ldap_connect($host, $port);
00007        ldap_set_option($link, LDAP_OPT_PROTOCOL_VERSION, $protocol_version);
00008        if (!@ldap_bind($link, $user, $passwd))
00009               die(sprintf("skip Can't bind to LDAP Server - [%d] %s", ldap_errno($link), ldap_error($link)));
00010 
00011        ldap_unbind($link);
00012 }
00013 ?>