Skip to content

Commit 4b66715

Browse files
authored
enable remote enrollment for LDAP users (#2609)
* add LDAP remote enrollment toggles to settings * add form inputs * update frontend API types * update form schema * update copy * hide second checkbox until the first one is checked * formatting * disable LDAP sync section if not all required inputs are filled * refactor required fields check for easier sharing between sections * disable remote enrollment section when SMTP or LDAP is not configured * add ldap_configured helper mirroring frontend logic * extend settings validation * expand validation * disable toggle if required fields are not filled * add explanation * validate if ldap can be enabled * update ui submodule * make validation consistent in ldap settings form * also match backend validation with frontend * test ldap validation in API * formatting * update user model to track remote enrollment status * update logic for calculating enrollment status * test enrollment status updates in LDAP user lifetime * add helper for sending enrollment invites to LDAP users * send invite emails when adding new LDAP users * fix is_enrolled check order to handle LDAP login password sync * add tests for LDAP enrollment * remove comment * add second login/sync test * formatting * update ui submodule * send invites after user create transaction is commited * fix settings save query * update ui submodule * update button text * update dependencies * avoid sending duplicate emails * update ui submodule * use a different approach to avoid duplicate codes
1 parent 14b9636 commit 4b66715

55 files changed

Lines changed: 2099 additions & 632 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.sqlx/query-ec7e1e23a50c0fc4a31f17c084c9b05dee47c63913d10a5a048bedafbbc1f9dd.json renamed to .sqlx/query-01f5f2906c76d16f544617963f1342eb0b718a23b6d8629f24eeeed4504b2b20.json

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.sqlx/query-4b7289fe59a0e9553fa0bfd9e9da2dbd2cda17952cf77ac3d743a4fa85d37482.json renamed to .sqlx/query-093a7426c1d5df52f5e282a296fa2e1f4559c6ef703fc2a2343cbab1058963c9.json

Lines changed: 8 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.sqlx/query-84b5185c8c297717e9935cd2521bbbb2ed2bf453b32cb1c22b227d8541a63392.json renamed to .sqlx/query-212a211fca991b0a58e4cde25571edc03e2e3b9970079b7903ac3def6efff79a.json

Lines changed: 16 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.sqlx/query-0dcbd4cfa8f34d5fdf303988c606d7304ddfbb1fdbb4e513c92bf7059ba228c7.json renamed to .sqlx/query-21d29424c3a8df807ea526da51f5d2753ad992eedaadd215e9058b10b245581e.json

Lines changed: 8 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.sqlx/query-523933d20a62a730c3eb881814200ed1b03ab9dbe8de5368321466b0256d028c.json renamed to .sqlx/query-2540640625dbc36da2632daf756fa43cccaec4da1b6317696f892f878aadd96d.json

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.sqlx/query-9a96f2f262ba86ab421f5f3b08984707951915fdac31ecc117dfbdbd0434366d.json renamed to .sqlx/query-25c223aecb861460fae25048225bc6005e322fbd1a8208a29a4ad662e58045c0.json

Lines changed: 8 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.sqlx/query-ab17ac33cd462975a6e8975d4a8cc6700f42030c507917ef9fb3acf3523a802b.json renamed to .sqlx/query-33bbbc2b7a47acce0d333a71f0edf12111864c122a9f2e1d539a80551350013c.json

Lines changed: 8 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)