wg-portal/internal/app
klmmr eeb0c87c68
ldap-sync: fix creation of only one user per LDAP sync (#375)
Before this fix, a too early `return` statement terminated the
`updateLdapUsers()` function, whenever one not already existing user was
created. Therefore, in each LDAP sync a maximum of one new user could be
created (i.e., it took x LDAP sync cycles until x new LDAP users are
registered in wg-portal). Depending on the LDAP `sync_interval` this can
take a long time and produces unecessary long waiting times until users
are available in wg-portal.

Removing the early return statement, and move the remainder of the
function into an `else` statement, so that all new users can be
added in a single LDAP sync.

Also adding a debug statement to better trace the behavior.

Signed-off-by: klmmr <35450576+klmmr@users.noreply.github.com>
2025-02-26 21:56:22 +01:00
..
api frontend: fix locked user display (#367) 2025-02-17 08:18:36 +01:00
audit V2 alpha - initial version (#172) 2023-08-04 13:34:18 +02:00
auth fix user group parsing for OAuth login (#317) 2025-01-21 17:33:01 +01:00
configfile fix: autosave wireguard conf files (#303) 2024-09-22 11:53:42 +02:00
mail fix REST API permission checks (#209) 2024-01-31 21:14:36 +01:00
route chore: update dependencies, refactor option types 2024-10-15 15:44:47 +02:00
users ldap-sync: fix creation of only one user per LDAP sync (#375) 2025-02-26 21:56:22 +01:00
wireguard fix self provisioning feature (#272) 2025-01-26 11:35:24 +01:00
app.go automatic API access for default admin (#357) 2025-02-07 22:42:48 +01:00
cli.go V2 alpha - initial version (#172) 2023-08-04 13:34:18 +02:00
eventbus.go API - CRUD for peers, interfaces and users (#340) 2025-01-11 18:44:55 +01:00
migrate_v1.go code cleanup 2025-01-11 22:56:25 +01:00
repos.go fix self provisioning feature (#272) 2025-01-26 11:35:24 +01:00