Help for this page

Select Code to Download


  1. or download this
    sub ad_search { # To search AD and return a pre-determined value
        my $search_base = $_[0]; # This is the base for our searches 
    ...
        
        return ($succ_search, @result); # Return our success and our array
    + of results
    }
    
  2. or download this
    sub ad_get_attrib { # For returning Attribute Values....
        my $dn = $_[0]; # The object DN
    ...
        
        return $result;
    }
    
  3. or download this
    sub ad_modify { # To change a single value in AD
    
    ...
    
        $object->SetInfo; # Don't forget to set the values
    }