| 3 |
* net_server |
* net_server |
| 4 |
* - network server with SSH support |
* - network server with SSH support |
| 5 |
* |
* |
| 6 |
* Copyright (C) 2004-2025 Leaflet <leaflet@leafok.com> |
* Copyright (C) 2004-2026 Leaflet <leaflet@leafok.com> |
| 7 |
*/ |
*/ |
| 8 |
|
|
| 9 |
#ifdef HAVE_CONFIG_H |
#ifdef HAVE_CONFIG_H |
| 124 |
|
|
| 125 |
if (ret == 0) |
if (ret == 0) |
| 126 |
{ |
{ |
| 127 |
|
log_common("User [%s] authenticated successfully", user); |
| 128 |
return SSH_AUTH_SUCCESS; |
return SSH_AUTH_SUCCESS; |
| 129 |
} |
} |
| 130 |
|
|
| 133 |
sdata->error = 1; |
sdata->error = 1; |
| 134 |
} |
} |
| 135 |
|
|
| 136 |
|
log_common("User [%s] authentication failed (%d/%d)", user, |
| 137 |
|
sdata->tries, BBS_login_retry_times); |
| 138 |
return SSH_AUTH_DENIED; |
return SSH_AUTH_DENIED; |
| 139 |
} |
} |
| 140 |
|
|