diff options
author | Alex Auvolat <alex@adnab.me> | 2023-02-08 13:11:43 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2023-02-08 13:11:43 +0100 |
commit | 670123df38608c98eadc482b9778ddfffe8560c7 (patch) | |
tree | 6b18562f502100a3dc80615a1b0b7d7c5203852f /main.go | |
parent | cd415325729fddea26c816291bb33171b9cc4879 (diff) | |
download | guichet-670123df38608c98eadc482b9778ddfffe8560c7.tar.gz guichet-670123df38608c98eadc482b9778ddfffe8560c7.zip |
First iteration on mailing list administration interface
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 14 |
1 files changed, 9 insertions, 5 deletions
@@ -23,11 +23,13 @@ type ConfigFile struct { LdapServerAddr string `json:"ldap_server_addr"` LdapTLS bool `json:"ldap_tls"` - BaseDN string `json:"base_dn"` - UserBaseDN string `json:"user_base_dn"` - UserNameAttr string `json:"user_name_attr"` - GroupBaseDN string `json:"group_base_dn"` - GroupNameAttr string `json:"group_name_attr"` + BaseDN string `json:"base_dn"` + UserBaseDN string `json:"user_base_dn"` + UserNameAttr string `json:"user_name_attr"` + GroupBaseDN string `json:"group_base_dn"` + GroupNameAttr string `json:"group_name_attr"` + MailingBaseDN string `json:"mailing_list_base_dn"` + MailingNameAttr string `json:"mailing_list_name_attr"` InvitationBaseDN string `json:"invitation_base_dn"` InvitationNameAttr string `json:"invitation_name_attr"` @@ -131,6 +133,8 @@ func main() { r.HandleFunc("/admin/users", handleAdminUsers) r.HandleFunc("/admin/groups", handleAdminGroups) + r.HandleFunc("/admin/mailing", handleAdminMailing) + r.HandleFunc("/admin/mailing/{id}", handleAdminMailingList) r.HandleFunc("/admin/ldap/{dn}", handleAdminLDAP) r.HandleFunc("/admin/create/{template}/{super_dn}", handleAdminCreate) |