Changeset View
Changeset View
Standalone View
Standalone View
src/app/Jobs/ProcessDomainVerify.php
- This file was copied from src/app/Jobs/ProcessDomainCreate.php.
<?php | <?php | ||||
namespace App\Jobs; | namespace App\Jobs; | ||||
use App\Backends\LDAP; | |||||
use App\Domain; | use App\Domain; | ||||
use Illuminate\Bus\Queueable; | use Illuminate\Bus\Queueable; | ||||
use Illuminate\Contracts\Queue\ShouldQueue; | use Illuminate\Contracts\Queue\ShouldQueue; | ||||
use Illuminate\Foundation\Bus\Dispatchable; | use Illuminate\Foundation\Bus\Dispatchable; | ||||
use Illuminate\Queue\SerializesModels; | |||||
use Illuminate\Queue\InteractsWithQueue; | use Illuminate\Queue\InteractsWithQueue; | ||||
use Illuminate\Queue\SerializesModels; | |||||
class ProcessDomainCreate implements ShouldQueue | class ProcessDomainVerify implements ShouldQueue | ||||
{ | { | ||||
use Dispatchable; | use Dispatchable; | ||||
use InteractsWithQueue; | use InteractsWithQueue; | ||||
use Queueable; | use Queueable; | ||||
use SerializesModels; | use SerializesModels; | ||||
protected $domain; | protected $domain; | ||||
Show All 16 Lines | class ProcessDomainVerify implements ShouldQueue | ||||
/** | /** | ||||
* Execute the job. | * Execute the job. | ||||
* | * | ||||
* @return void | * @return void | ||||
*/ | */ | ||||
public function handle() | public function handle() | ||||
{ | { | ||||
LDAP::createDomain($this->domain); | $this->domain->verify(); | ||||
// TODO: What should happen if the domain is not registered yet? | |||||
// Should we start a new job with some specified delay? | |||||
// Or we just give the user a button to start verification again? | |||||
vanmeeuwen: What currently happens is that the domain is created in LDAP, including the collateral OUs and… | |||||
} | } | ||||
} | } |
What currently happens is that the domain is created in LDAP, including the collateral OUs and roles and the likes.
It would just not have the necessary inetdomainstatus value:
This type of query filter may be adjusted to be the value of the bitflip though, and I've found the way to perform an LDAP query with said integer value against a bitwise.