fixes for start
This commit is contained in:
@@ -58,12 +58,18 @@ try {
|
|||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
# Quick-Write-Test: Versuche ein Dummy-Attribut zu lesen/schreiben
|
# Quick-Write-Test: Versuche ein Dummy-Objekt zu erstellen und loeschen
|
||||||
Write-Host " [..] Schreibtest..." -ForegroundColor Gray
|
Write-Host " [..] Schreibtest..." -ForegroundColor Gray
|
||||||
try {
|
try {
|
||||||
$testOUName = "_ByteTrailSetupTest"
|
$testOUName = "_ByteTrailSetupTest"
|
||||||
$testOU = "OU=$testOUName,$DomainDN"
|
$testOU = "OU=$testOUName,$DomainDN"
|
||||||
|
# Falls vom letzten Lauf noch vorhanden, erst loeschen
|
||||||
|
try {
|
||||||
|
Set-ADOrganizationalUnit -Identity $testOU -ProtectedFromAccidentalDeletion $false -ErrorAction Stop
|
||||||
|
Remove-ADOrganizationalUnit -Identity $testOU -Confirm:$false -Recursive -ErrorAction Stop
|
||||||
|
} catch { }
|
||||||
New-ADOrganizationalUnit -Name $testOUName -Path $DomainDN -ErrorAction Stop
|
New-ADOrganizationalUnit -Name $testOUName -Path $DomainDN -ErrorAction Stop
|
||||||
|
Set-ADOrganizationalUnit -Identity $testOU -ProtectedFromAccidentalDeletion $false -ErrorAction Stop
|
||||||
Remove-ADOrganizationalUnit -Identity $testOU -Confirm:$false -Recursive -ErrorAction Stop
|
Remove-ADOrganizationalUnit -Identity $testOU -Confirm:$false -Recursive -ErrorAction Stop
|
||||||
Write-Host " [OK] Schreibzugriff funktioniert" -ForegroundColor Green
|
Write-Host " [OK] Schreibzugriff funktioniert" -ForegroundColor Green
|
||||||
} catch {
|
} catch {
|
||||||
|
|||||||
+3
-3
@@ -464,15 +464,15 @@ LDAP_SERVER_HOST=ldap://10.10.10.10
|
|||||||
|
|
||||||
# empty => ou=people,dc=domain,dc=com
|
# empty => ou=people,dc=domain,dc=com
|
||||||
# => e.g. LDAP_SEARCH_BASE=dc=mydomain,dc=local
|
# => e.g. LDAP_SEARCH_BASE=dc=mydomain,dc=local
|
||||||
LDAP_SEARCH_BASE=DC=bytetrail,DC=local
|
LDAP_SEARCH_BASE=DC=byte,DC=trail
|
||||||
|
|
||||||
# empty => cn=admin,dc=domain,dc=com
|
# empty => cn=admin,dc=domain,dc=com
|
||||||
# => take a look at examples of SASL_LDAP_BIND_DN
|
# => take a look at examples of SASL_LDAP_BIND_DN
|
||||||
LDAP_BIND_DN=CN=Mailserver Service Account,OU=Server,DC=bytetrail,DC=local
|
LDAP_BIND_DN=CN=Mailserver Service Account,OU=Server,DC=byte,DC=trail
|
||||||
|
|
||||||
# empty** => admin
|
# empty** => admin
|
||||||
# => Specify the password to bind against ldap
|
# => Specify the password to bind against ldap
|
||||||
LDAP_BIND_PW=ByteTrail123456!
|
LDAP_BIND_PW=Mail$3rv!ceAcc2026
|
||||||
|
|
||||||
# e.g. `"(&(mail=%s)(mailEnabled=TRUE))"`
|
# e.g. `"(&(mail=%s)(mailEnabled=TRUE))"`
|
||||||
# => Specify how ldap should be asked for users
|
# => Specify how ldap should be asked for users
|
||||||
|
|||||||
Reference in New Issue
Block a user