-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Could not possible to add agents more than 3999 with ossec-authd #642
Comments
Are you sure about the 3999 is? Looks like 3999 - 1024 to me. |
Having similar issue, can you comment if your change fixed your problem of being able to add additional agents via agent-auth? |
Currently, Our ossec server manages all most 6000 servers at this time. |
Dear jer-gentoo, I re-downloaded the ossec file from this url.
Did I understand what you asking for? |
…o the build time variable for MAX_AGENTS + 1024. Credit to netman2k for this fix.
Dear users and developers
I've been using OSSEC in my company for almost 2 years now.
I modified the ossec-authd to check client SSL certification for security reason last year.
My company has got almost 6000 agents now. but at that time I found some of problem with it.
The problem was that I couldn't add more agents more than 3999.
To solve this problem, I looked into the code and found it.
as you can see the below code which is the part of the file, src/addagent/validate.c
Can you see it? there is 4000!!!.
So I changed it with this:
if (i >= (MAX_AGENTS + 1024)){
Please correct me If I did wrong and that the way.
Thanks for reading
The text was updated successfully, but these errors were encountered: