Project

General

Profile

« Previous | Next » 

Revision 3260b82f

Added by Ermal LUÇI over 12 years ago

Make it more clear what is the username during syslog

View differences:

etc/inc/ipsec.auth-user.php
120 120
}
121 121

  
122 122
if ($authenticated == false) {
123
	syslog(LOG_WARNING, "user {$username} could not authenticate.\n");
123
	syslog(LOG_WARNING, "user '{$username}' could not authenticate.\n");
124 124
	exit(-1);
125 125
}
126 126

  
127 127
if (file_exists("/etc/inc/ipsec.attributes.php"))
128 128
        include_once("/etc/inc/ipsec.attributes.php");
129 129
        
130
syslog(LOG_NOTICE, "user {$username} authenticated\n");
130
syslog(LOG_NOTICE, "user '{$username}' authenticated\n");
131 131

  
132 132
exit(0);
133 133

  
etc/inc/openvpn.auth-user.php
120 120
}
121 121

  
122 122
if ($authenticated == false) {
123
	syslog(LOG_WARNING, "user {$username} could not authenticate.\n");
123
	syslog(LOG_WARNING, "user '{$username}' could not authenticate.\n");
124 124
	exit(-1);
125 125
}
126 126

  
......
154 154
if (!empty($content))
155 155
        @file_put_contents("{$g['tmp_path']}/{$username}", $content);
156 156

  
157
syslog(LOG_NOTICE, "user {$username} authenticated\n");
157
syslog(LOG_NOTICE, "user '{$username}' authenticated\n");
158 158

  
159 159
exit(0);
160 160

  

Also available in: Unified diff