74 lines
2.5 KiB
PHP
74 lines
2.5 KiB
PHP
<?php
|
||
/** Typsicherheit aktivieren
|
||
* var = "1" != var = 1
|
||
*/
|
||
declare(strict_types=1);
|
||
|
||
return [
|
||
'ldap' => [
|
||
// LDAP-URL des Domain Controllers
|
||
'server' => 'itfa-proj-srv.itfa-proj-dom.local',
|
||
'port' => 389,
|
||
|
||
// wird an den Benutzernamen angehängt (z.B. "admin" + "@ITFA-PROJ-DOM.local")
|
||
'domain_suffix' => '@ITFA-PROJ-DOM.local',
|
||
|
||
// Base DN der Domäne
|
||
'base_dn' => 'DC=ITFA-PROJ-DOM,DC=local',
|
||
|
||
// Optional: Timeout in Sekunden
|
||
'timeout' => 5,
|
||
|
||
'bind_dn' => 'CN=Service IIS,OU=WebAppUsers,DC=ITFA-PROJ-DOM,DC=local',
|
||
'bind_password' => '$7aE!R$l$D!p1Q9l458K8@O6&',
|
||
],
|
||
|
||
'security' => [
|
||
// Session-Key unter dem der eingeloggte Admin gespeichert wird
|
||
'session_key_user' => 'admin_user',
|
||
],
|
||
|
||
'snmp' => [
|
||
'host' => '127.0.0.1',
|
||
'community' => 'public_ro', // später: sinnvoller Community-String
|
||
'timeout' => 2, // Sekunden
|
||
'retries' => 1, // Anzahl Wiederholungen
|
||
|
||
// Platzhalter für OIDs – später können wir die auf echte Werte setzen
|
||
'oids' => [
|
||
'hostname' => '1.3.6.1.2.1.1.5.0', // sysName - Hostname des Servers
|
||
'uptime' => '1.3.6.1.2.1.1.3.0',
|
||
|
||
// CPU pro Kern
|
||
'cpu_table' => '1.3.6.1.2.1.25.3.3.1.2',
|
||
|
||
// Memory
|
||
'mem_size' => '1.3.6.1.2.1.25.2.2.0',
|
||
'storage_descr' => '1.3.6.1.2.1.25.2.3.1.3',
|
||
'storage_units' => '1.3.6.1.2.1.25.2.3.1.4',
|
||
'storage_size' => '1.3.6.1.2.1.25.2.3.1.5',
|
||
'storage_used' => '1.3.6.1.2.1.25.2.3.1.6',
|
||
],
|
||
],
|
||
|
||
// Logging-Konfiguration
|
||
'logging' => [
|
||
// Standard: public/logs relativ zum Projekt-Root
|
||
'log_dir' => __DIR__ . '/../public/logs',
|
||
// Name der Logdatei
|
||
'log_file' => 'app.log',
|
||
// Minimale Stufe: debug, info, warning, error
|
||
'min_level' => 'info',
|
||
],
|
||
'powershell' => [
|
||
// Executable name: 'powershell' on Windows, 'pwsh' for PowerShell core.
|
||
'exe' => 'powershell',
|
||
// Script directory where the PS1 scripts live (relative to config dir)
|
||
'script_dir' => __DIR__ . '/../scripts/powershell',
|
||
// Execution policy to pass to the PowerShell invocation
|
||
'execution_policy' => 'Bypass',
|
||
// For testing; if true, the scripts will run in dry-run mode (no real AD changes)
|
||
'dry_run' => false,
|
||
],
|
||
];
|