Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Resolve Issue #9 [Authentication System] and #12 [CORS Error] #11

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

Aradhya2708
Copy link

@Aradhya2708 Aradhya2708 commented Mar 18, 2025

Fix: Resolve Issue #9 [Authentication System] and #12 [CORS Error]

Created a basic working LDAP client system for User Authentication

  • Used Forumsys Test Server for testing LDAP client
  • Integrated Login Page for LDAP auth
  • Fixed CORS Error

Example Correct Usage (testing):

  • Username: einstein
  • Password: password

@Aradhya2708 Aradhya2708 changed the title Fix: Resolve Issue #9 [Authentication System] Fix: Resolve Issue #9 [Authentication System] and #12 [CORS Error] Mar 18, 2025
return
}

defer client.Close()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see this problematic, I have checked it, this will be nice for single user system, but if concurrent req are made and all try to close the same client(here global client), so from 2nd req onwards they are processing this on closed client.

What you can do , create new client for each request inside that function and then defer closing it. Or something else.

Otherwise it is nice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants