Using Adldap2:
use Adldap\Laravel\Facades\Adldap;
$dn = "CN=".$groupName.",OU=AclGroups,".ACL_OU_AD;
$group = Adldap::make()->group([
'dn' => $dn,
'cn' => $groupName,
'samaccountname' => $groupName,| <?php | |
| namespace App\Http\Requests; | |
| use App\Rules\Throttle; | |
| use Illuminate\Foundation\Http\FormRequest; | |
| class SubmissionFormRequest extends FormRequest | |
| { | |
| /** |
| <?php | |
| use UnexpectedValueException; | |
| class DirectoryMounter | |
| { | |
| /** | |
| * The path to mount. | |
| * | |
| * @var string|null |
| <?php | |
| namespace App\Http\Middleware; | |
| use Closure; | |
| class ForceHttps | |
| { | |
| /** | |
| * Handle an incoming request. |
Using Adldap2:
use Adldap\Laravel\Facades\Adldap;
$dn = "CN=".$groupName.",OU=AclGroups,".ACL_OU_AD;
$group = Adldap::make()->group([
'dn' => $dn,
'cn' => $groupName,
'samaccountname' => $groupName,| -- This can be used for GP 2010, GP 2013, GP 2015 and GP 2016. | |
| use DYNAMICS; | |
| SELECT | |
| UserMaster.USRCLASS AS 'User Class', | |
| UserMaster.USERID AS 'User ID', | |
| UserMaster.USERNAME AS 'Username', | |
| CASE UserMaster.UserStatus | |
| WHEN 1 THEN |
| // Require the class files. | |
| require 'Reader.php' | |
| require 'ToUs.php'; | |
| require 'ToCanada.php'; | |
| // Create the reader instances. | |
| $toUsReader = new ToUs(); | |
| $toCanadaReader = new ToCanada(); | |
| // Retrieve to US wait times. |
| <?php | |
| namespace App\Rules; | |
| use Illuminate\Http\Request; | |
| use Illuminate\Cache\RateLimiter; | |
| use Illuminate\Contracts\Validation\Rule; | |
| class Throttle implements Rule | |
| { |
| <template> | |
| <div> | |
| <canvas ref="canvas"></canvas> | |
| <div class="clearfix"></div> | |
| <div class="btn-group"> | |
| <button @click="clear" type="button" class="btn btn-default"> | |
| <i class="fa fa-times"></i> | |
| Clear Signature |
| # Start Script | |
| Set-ExecutionPolicy RemoteSigned | |
| $servername = 'SQL01'; | |
| $dbname = 'DATABASE'; | |
| $scriptpath = 'C:\Users\johndoe\Desktop\Procedures'; | |
| [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.SMO") | Out-Null | |
| [System.Reflection.Assembly]::LoadWithPartialName("System.Data") | Out-Null | |
| $srv = new-object "Microsoft.SqlServer.Management.SMO.Server" $serverName |
| # Configuration data | |
| # SQL Server Instance name. | |
| [string] $server = "PC-RPT01"; | |
| # ReportServer Database. | |
| [string] $database = "ReportServer"; | |
| # Path to export the reports to. | |
| [string] $folder = "C:\Users\johndoe\Desktop\Reports"; |