Daniel,
Which OSSEC version was this change applied to? I am still seeing the
issue at 2.6:
[root@dev-app-ossec01 etc]# /var/ossec/bin/agent-auth -m 10.30.31.87 -p
1515 ; echo $?
2013/05/16 17:22:58 ossec-authd: INFO: Started (pid: 13374).
INFO: Connected to 10.30.31.87:1515
INFO: Using
Looks like the answer to my question is no - looked at our 2.6 version of
the *main-client.c *file and not seeing the changes that was made with SHA
2eff82c:
case SSL_ERROR_SYSCALL:
printf(INFO: Connection closed.\n);
exit(1);
break;
Answered this question myself as well - looking at the 2.7 source code, it
looks like the fix is in there.
On Thursday, May 16, 2013 2:05:44 PM UTC-5, Col Velo wrote:
Looks like the answer to my question is no - looked at our 2.6 version
of the *main-client.c *file and not seeing the changes
Dear community,
I am working on deploying ossec 2.6 with puppet.
Using /var/ossec/bin/agent-auth command to declare clients to the server I
encounter a small issue.
/var/ossec/bin/agent-auth command return code 1 if the command is
successfull. This cause a warning when puppet execute the
Hi Hugo,
It should be very easy to modify the source code to exit 0 instead of
1. However, I just
checked and it only seems to return 1 on errors...
The code is at: src/os_auth/main-client.c
Thanks,
--
Daniel B. Cid
http://dcid.me
On Tue, Feb 7, 2012 at 10:47 AM, Hugo Deprez
Hi all,
I am successfully using ossec and puppet together and I can confirm agent-auth
always return 1. I worked around it using:
command = /var/ossec/bin/agent-auth ... || true
as the command associated to the puppet exec to add a new agent. Not very tidy
but effective :-P
Best regards,
Hello,
yes always returning 1 see the command I used to check :
None working command :
# /var/ossec/bin/agent-auth -m 192.168.0.1 -p 1515; echo $?
2012/02/07 17:08:23 ossec-authd: INFO: Started (pid: 20536).
2012/02/07 17:08:44 ossec-authd: Unable to connect to 192.168.0.1:1515
1
Working
Ah, I see the issue. Fixed in the repository:
https://bitbucket.org/dcid/ossec-hids/
thanks,
On Tue, Feb 7, 2012 at 12:13 PM, Hugo Deprez hugo.dep...@gmail.com wrote:
Hello,
yes always returning 1 see the command I used to check :
None working command :
# /var/ossec/bin/agent-auth -m