You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a user accesses the /auth endpoint, the ActiveDirectoryAuth function will be called. This function will extract the username and password from the form values using r.FormValue("username") and r.FormValue("password") respectively, then it will authenticate against the active directory server using the ldapserver.Authenticate function, passing the username and password as arguments.
*/
func main() {
http.HandleFunc("/auth", func(w http.ResponseWriter, r *http.Request) {