-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bugfix new-mod/new-admin: wrong filter for already existing admins
- Loading branch information
1 parent
e6c227e
commit 555df81
Showing
6 changed files
with
91 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
namespace App\Console\Commands; | ||
|
||
use App\Ldap\Community; | ||
use Illuminate\Console\Command; | ||
|
||
class NewCommunityCommand extends Command | ||
{ | ||
protected $signature = 'community:new {uid}'; | ||
|
||
protected $description = 'Command description'; | ||
|
||
public function handle(): void | ||
{ | ||
$community = Community::make([ | ||
'ou' => $this->argument('uid') | ||
]); | ||
$community->setDn("ou={$this->argument('uid')}," . Community::rootDn()); | ||
$community->generateSkeleton(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
namespace App\Console\Commands; | ||
|
||
use App\Ldap\Domain; | ||
use Illuminate\Console\Command; | ||
|
||
class NewDomainCommand extends Command | ||
{ | ||
protected $signature = 'community:domain:new {community-uid} {fqdn}'; | ||
|
||
protected $description = 'Command description'; | ||
|
||
public function handle(): void | ||
{ | ||
$d = Domain::make([ | ||
'dc' => $this->argument('fqdn'), | ||
]); | ||
$d->setDn("dc={$this->argument('fqdn')}," . Domain::dnRoot($this->argument('community-uid'))); | ||
$d->save(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Installation Guide | ||
|
||
## Requirements | ||
* php | ||
* ext-ldap | ||
* ext-pdo | ||
* openldap server (see below) | ||
* mysql | ||
* composer | ||
* npm | ||
* webserver which is .htaccess compatible (apache) -> default laravel stuff | ||
|
||
## LDAP-Requirements | ||
* you need the following ./configure flags during compilation, if you compile openldap from scratch you can use the | ||
following compile script for LTS LDAP 2.5.X | ||
* otp, sssvlv and ppolicy are there for future use | ||
* tls, argon2 and dynlist are needed | ||
```bash | ||
#!/bin/bash | ||
|
||
set -e #stop on error | ||
set -x #prints commands | ||
|
||
cd openldap-2.5.15/ | ||
|
||
./configure \ | ||
--with-tls=yes \ | ||
--enable-modules --enable-ppolicy --enable-otp --enable-argon2 --enable-sssvlv --enable-dynlist | ||
|
||
make depend | ||
make | ||
make install | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters