Projet

Général

Profil

« Précédent | Suivant » 

Révision eadda967

Ajouté par Ermal il y a plus de 9 ans

Also here be more strict on checking to return proper result. (some missed from previous commit)

Voir les différences:

etc/inc/ipsec.auth-user.php
110 110

  
111 111
if (($strictusercn === true) && ($common_name != $username)) {
112 112
	syslog(LOG_WARNING, "Username does not match certificate common name ({$username} != {$common_name}), access denied.\n");
113
	if (isset($_GET)) {
113
	if (isset($_GET['username'])) {
114 114
		echo "FAILED";
115 115
		closelog();
116 116
		return;
......
142 142

  
143 143
if ($authenticated == false) {
144 144
	syslog(LOG_WARNING, "user '{$username}' could not authenticate.\n");
145
	if (isset($_GET)) {
145
	if (isset($_GET['username'])) {
146 146
		echo "FAILED";
147 147
		closelog();
148 148
		return;
......
158 158
syslog(LOG_NOTICE, "user '{$username}' authenticated\n");
159 159
closelog();
160 160

  
161
if (isset($_GET))
161
if (isset($_GET['username']))
162 162
	echo "OK";
163 163
else
164 164
	exit(0);

Formats disponibles : Unified diff