All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

Commit 807e0f75 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Have to tell snort what user id to use when connecting to mysql.

parent 8d184eed
......@@ -1200,8 +1200,8 @@ def trace_post(link2trace):
fp = open(SNORTCONF, 'w')
os.chmod(SNORTCONF, 0600)
fp.write("output database: log, mysql, dbname=%s password=%s\n" %
(DPDBNAME, COLLAB_PW))
fp.write("output database: log, mysql, user=%s dbname=%s password=%s\n" %
(USER, DPDBNAME, COLLAB_PW))
# Allow user to override default rules.
if os.path.exists(USERRULES):
......@@ -1219,6 +1219,7 @@ def trace_post(link2trace):
print_status(".")
pass
print_status("\n")
os.system("/bin/rm -f %s" % (SNORTCONF,))
pass
return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment