# radiusdesk/rdcore architecture

> Architecture diagram of the GitHub repository radiusdesk/rdcore, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-10). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/radiusdesk/rdcore
- Repository: https://github.com/radiusdesk/rdcore

## Overview

RdCore (RadiusDesk) is a network- and Wi-Fi-management platform with an ExtJS administrative interface, a CakePHP API, and a separate captive-portal/client experience. A typical operator workflow is to use the management UI to configure access points or mesh networks, with controllers applying configuration and managing network records; reporting provides a view of mesh and node activity. The tree also shows authentication, user and voucher management, RADIUS, VPN, and usage/reporting capabilities. Several UI-to-API and unsampled subsystem links are not demonstrated by the excerpts, so they are omitted or marked unverified.

Main entry points: [`cake4/rd_cake/src/Controller/ApProfilesController.php`](https://github.com/radiusdesk/rdcore/blob/cake4/cake4/rd_cake/src/Controller/ApProfilesController.php) (Access point profiles), [`cake4/rd_cake/src/Controller/MeshesController.php`](https://github.com/radiusdesk/rdcore/blob/cake4/cake4/rd_cake/src/Controller/MeshesController.php) (Mesh and node management), [`cake4/rd_cake/src/Application.php`](https://github.com/radiusdesk/rdcore/blob/cake4/cake4/rd_cake/src/Application.php) (Authentication setup), [`cake4/rd_cake/src/Controller/AppController.php`](https://github.com/radiusdesk/rdcore/blob/cake4/cake4/rd_cake/src/Controller/AppController.php) (Shared controller)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Operator and client interfaces"]
  node_adminui["Admin interface<br/>[Application.js]"]
  node_dynamicui["Dynamic clients UI<br/>[cDynamicClients.js]"]
  node_clientui["Captive portal client<br/>[sConnect.js]"]
end

subgraph group_api["Application and API"]
  node_apiapp["CakePHP application<br/>[Application.php]"]
  node_appcontroller["Shared controller<br/>[AppController.php]"]
  node_queryfilters["Query and access filters"]
  node_radiusconfig["Platform settings<br/>[RadiusDesk.php]"]
end

subgraph group_network["Network management"]
  node_approfiles["Access point profiles"]
  node_mesh["Mesh and node management"]
  node_meshreports["Mesh reporting"]
  node_apconfig["Access point settings<br/>[ApProfiles.php]"]
  node_meshconfig["Mesh settings<br/>[MESHdesk.php]"]
end

subgraph group_identity["Identity and access"]
  node_auth["Authentication setup<br/>[Application.php]"]
  node_ldap["LDAP identity"]
  node_token["Token identity"]
  node_userentity["User records<br/>[User.php]"]
  node_cliententity["Client records<br/>[Client.php]"]
  node_voucherconfig["Voucher settings<br/>[Vouchers.php]"]
end

node_operator(("Operator"))

node_operator -.->|"uses"| node_adminui
node_adminui -.->|"requests profiles"| node_approfiles
node_dynamicui -.->|"manages clients"| node_mesh
node_clientui -.->|"submits access"| node_apiapp
node_apiapp -->|"configures"| node_auth
node_auth -->|"loads identifier"| node_ldap
node_auth -->|"loads identifier"| node_token
node_auth -->|"resolves users"| node_userentity
node_appcontroller -->|"loads settings"| node_radiusconfig
node_approfiles -->|"inherits controller"| node_appcontroller
node_approfiles -->|"uses profile settings"| node_apconfig
node_approfiles -->|"references users"| node_userentity
node_mesh -->|"inherits controller"| node_appcontroller
node_mesh -->|"uses mesh settings"| node_meshconfig
node_mesh -->|"references clients"| node_cliententity
node_meshreports -->|"inherits controller"| node_appcontroller
node_queryfilters -->|"references settings"| node_apconfig
node_queryfilters -->|"references settings"| node_voucherconfig

click node_adminui "https://github.com/radiusdesk/rdcore/blob/cake4/rd/classic/src/Application.js"
click node_dynamicui "https://github.com/radiusdesk/rdcore/blob/cake4/rd/classic/src/controller/cDynamicClients.js"
click node_clientui "https://github.com/radiusdesk/rdcore/blob/cake4/login/bootstrap5/js/sConnect.js"
click node_apiapp "https://github.com/radiusdesk/rdcore/blob/cake4/cake4/rd_cake/src/Application.php"
click node_appcontroller "https://github.com/radiusdesk/rdcore/blob/cake4/cake4/rd_cake/src/Controller/AppController.php"
click node_queryfilters "https://github.com/radiusdesk/rdcore/blob/cake4/cake4/rd_cake/src/Controller/Component/CommonQueryFlatComponent.php"
click node_approfiles "https://github.com/radiusdesk/rdcore/blob/cake4/cake4/rd_cake/src/Controller/ApProfilesController.php"
click node_mesh "https://github.com/radiusdesk/rdcore/blob/cake4/cake4/rd_cake/src/Controller/MeshesController.php"
click node_meshreports "https://github.com/radiusdesk/rdcore/blob/cake4/cake4/rd_cake/src/Controller/MeshReportsController.php"
click node_apconfig "https://github.com/radiusdesk/rdcore/blob/cake4/cake4/rd_cake/config/ApProfiles.php"
click node_meshconfig "https://github.com/radiusdesk/rdcore/blob/cake4/cake4/rd_cake/config/MESHdesk.php"
click node_radiusconfig "https://github.com/radiusdesk/rdcore/blob/cake4/cake4/rd_cake/config/RadiusDesk.php"
click node_auth "https://github.com/radiusdesk/rdcore/blob/cake4/cake4/rd_cake/src/Application.php"
click node_ldap "https://github.com/radiusdesk/rdcore/blob/cake4/cake4/rd_cake/src/Authentication/Identifier/CustomLdapIdentifier.php"
click node_token "https://github.com/radiusdesk/rdcore/blob/cake4/cake4/rd_cake/src/Authentication/Identifier/CustomTokenIdentifier.php"
click node_userentity "https://github.com/radiusdesk/rdcore/blob/cake4/cake4/rd_cake/src/Model/Entity/User.php"
click node_cliententity "https://github.com/radiusdesk/rdcore/blob/cake4/cake4/rd_cake/src/Model/Entity/Client.php"
click node_voucherconfig "https://github.com/radiusdesk/rdcore/blob/cake4/cake4/rd_cake/config/Vouchers.php"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_adminui,node_dynamicui,node_clientui toneBlue
class node_apiapp,node_appcontroller,node_queryfilters,node_radiusconfig toneAmber
class node_approfiles,node_mesh,node_meshreports,node_apconfig,node_meshconfig toneMint
class node_auth,node_ldap,node_token,node_userentity,node_cliententity,node_voucherconfig toneRose
class node_operator toneIndigo
```

## Components

### Operator and client interfaces

- [Admin interface](https://github.com/radiusdesk/rdcore/blob/cake4/rd/classic/src/Application.js): `rd/classic/src/Application.js`
- [Dynamic clients UI](https://github.com/radiusdesk/rdcore/blob/cake4/rd/classic/src/controller/cDynamicClients.js): `rd/classic/src/controller/cDynamicClients.js`
- [Captive portal client](https://github.com/radiusdesk/rdcore/blob/cake4/login/bootstrap5/js/sConnect.js): `login/bootstrap5/js/sConnect.js`

### Application and API

- [CakePHP application](https://github.com/radiusdesk/rdcore/blob/cake4/cake4/rd_cake/src/Application.php): `cake4/rd_cake/src/Application.php`
- [Shared controller](https://github.com/radiusdesk/rdcore/blob/cake4/cake4/rd_cake/src/Controller/AppController.php): `cake4/rd_cake/src/Controller/AppController.php`
- [Query and access filters](https://github.com/radiusdesk/rdcore/blob/cake4/cake4/rd_cake/src/Controller/Component/CommonQueryFlatComponent.php): `cake4/rd_cake/src/Controller/Component/CommonQueryFlatComponent.php`
- [Platform settings](https://github.com/radiusdesk/rdcore/blob/cake4/cake4/rd_cake/config/RadiusDesk.php): `cake4/rd_cake/config/RadiusDesk.php`

### Network management

- [Access point profiles](https://github.com/radiusdesk/rdcore/blob/cake4/cake4/rd_cake/src/Controller/ApProfilesController.php): `cake4/rd_cake/src/Controller/ApProfilesController.php`
- [Mesh and node management](https://github.com/radiusdesk/rdcore/blob/cake4/cake4/rd_cake/src/Controller/MeshesController.php): `cake4/rd_cake/src/Controller/MeshesController.php`
- [Mesh reporting](https://github.com/radiusdesk/rdcore/blob/cake4/cake4/rd_cake/src/Controller/MeshReportsController.php): `cake4/rd_cake/src/Controller/MeshReportsController.php`
- [Access point settings](https://github.com/radiusdesk/rdcore/blob/cake4/cake4/rd_cake/config/ApProfiles.php): `cake4/rd_cake/config/ApProfiles.php`
- [Mesh settings](https://github.com/radiusdesk/rdcore/blob/cake4/cake4/rd_cake/config/MESHdesk.php): `cake4/rd_cake/config/MESHdesk.php`

### Identity and access

- [Authentication setup](https://github.com/radiusdesk/rdcore/blob/cake4/cake4/rd_cake/src/Application.php): `cake4/rd_cake/src/Application.php`
- [LDAP identity](https://github.com/radiusdesk/rdcore/blob/cake4/cake4/rd_cake/src/Authentication/Identifier/CustomLdapIdentifier.php): `cake4/rd_cake/src/Authentication/Identifier/CustomLdapIdentifier.php`
- [Token identity](https://github.com/radiusdesk/rdcore/blob/cake4/cake4/rd_cake/src/Authentication/Identifier/CustomTokenIdentifier.php): `cake4/rd_cake/src/Authentication/Identifier/CustomTokenIdentifier.php`
- [User records](https://github.com/radiusdesk/rdcore/blob/cake4/cake4/rd_cake/src/Model/Entity/User.php): `cake4/rd_cake/src/Model/Entity/User.php`
- [Client records](https://github.com/radiusdesk/rdcore/blob/cake4/cake4/rd_cake/src/Model/Entity/Client.php): `cake4/rd_cake/src/Model/Entity/Client.php`
- [Voucher settings](https://github.com/radiusdesk/rdcore/blob/cake4/cake4/rd_cake/config/Vouchers.php): `cake4/rd_cake/config/Vouchers.php`

### Other components

- **Operator**

## Connections

- Operator → Admin interface: uses
- Admin interface → Access point profiles: requests profiles
- Dynamic clients UI → Mesh and node management: manages clients
- Captive portal client → CakePHP application: submits access
- CakePHP application → Authentication setup: configures (evidence: `cake4/rd_cake/src/Application.php`)
- Authentication setup → LDAP identity: loads identifier (evidence: `cake4/rd_cake/src/Application.php`)
- Authentication setup → Token identity: loads identifier (evidence: `cake4/rd_cake/src/Application.php`)
- Authentication setup → User records: resolves users (evidence: `cake4/rd_cake/src/Application.php`)
- Shared controller → Platform settings: loads settings (evidence: `cake4/rd_cake/src/Controller/AppController.php`)
- Access point profiles → Shared controller: inherits controller (evidence: `cake4/rd_cake/src/Controller/ApProfilesController.php`)
- Access point profiles → Access point settings: uses profile settings (evidence: `cake4/rd_cake/src/Controller/ApProfilesController.php`)
- Access point profiles → User records: references users (evidence: `cake4/rd_cake/src/Controller/ApProfilesController.php`)
- Mesh and node management → Shared controller: inherits controller (evidence: `cake4/rd_cake/src/Controller/MeshesController.php`)
- Mesh and node management → Mesh settings: uses mesh settings (evidence: `cake4/rd_cake/src/Controller/MeshesController.php`)
- Mesh and node management → Client records: references clients (evidence: `cake4/rd_cake/src/Controller/MeshesController.php`)
- Mesh reporting → Shared controller: inherits controller (evidence: `cake4/rd_cake/src/Controller/MeshReportsController.php`)
- Query and access filters → Access point settings: references settings (evidence: `cake4/rd_cake/src/Controller/Component/CommonQueryFlatComponent.php`)
- Query and access filters → Voucher settings: references settings (evidence: `cake4/rd_cake/src/Controller/Component/CommonQueryFlatComponent.php`)
