"Fossies" - the Fresh Open Source Software Archive

Member "adLDAP-4.0.4/examples/userCollection.php" (13 Apr 2013, 415 Bytes) of package /linux/www/old/adLDAP-4.0.4.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) PHP source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 <?
    2 /*
    3 Test for the new user collections object
    4 */
    5 
    6 //error_reporting(E_ALL ^ E_NOTICE);
    7 
    8 include (dirname(__FILE__) . "/../src/adLDAP.php");
    9 try {
   10     $adldap = new adLDAP($options);
   11 }
   12 catch (adLDAPException $e) {
   13     echo $e;
   14     exit();   
   15 }
   16 
   17 echo ("<pre>\n");
   18 
   19 $collection = $adldap->user()->infoCollection('username');
   20 
   21 print_r($collection->memberOf);
   22 print_r($collection->displayName);
   23 ?>