1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-04 22:33:27 +00:00
freebsd-ports/ftp/proftpd/files/patch-ae

182 lines
6.2 KiB
Plaintext
Raw Normal View History

2000-01-28 07:35:15 +00:00
--- modules/mod_auth.c.orig Mon Jan 3 13:28:39 2000
+++ modules/mod_auth.c Thu Jan 27 23:17:19 2000
1999-12-05 19:29:55 +00:00
@@ -70,7 +70,7 @@
"closing control connection.",
TimeoutLogin);
1999-12-05 19:29:55 +00:00
- main_exit((void*) LOG_NOTICE, "FTP login timed out, disconnected.",
+ main_exit((void*) LOG_INFO, "FTP login timed out, disconnected.",
(void*) 0, NULL);
/* should never be reached */
2000-01-28 07:35:15 +00:00
@@ -559,7 +559,7 @@
1999-12-05 19:29:55 +00:00
c = _auth_resolve_user(p,&user,&ourname,&anonname);
1999-12-05 19:29:55 +00:00
if(!user) {
- log_pri(LOG_NOTICE, "USER %s (Login failed): User not a UserAlias.",
+ log_pri(LOG_INFO, "USER %s (Login failed): User not a UserAlias.",
origuser);
goto auth_failure;
}
2000-01-28 07:35:15 +00:00
@@ -568,7 +568,7 @@
1999-12-05 19:29:55 +00:00
aclp = login_check_limits(main_server->conf,FALSE,TRUE,&i);
if((pw = auth_getpwnam(p,user)) == NULL) {
- log_pri(LOG_NOTICE, "USER %s (Login failed): Can't find user.", user);
+ log_pri(LOG_INFO, "USER %s (Login failed): Can't find user.", user);
goto auth_failure;
}
2000-01-28 07:35:15 +00:00
@@ -629,14 +629,14 @@
1999-12-05 19:29:55 +00:00
}
if(!login_check_limits(c->subset,FALSE,TRUE,&i) || (!aclp && !i) ){
- log_auth(LOG_NOTICE, "ANON %s (Login failed): Limit access denies "
+ log_auth(LOG_INFO, "ANON %s (Login failed): Limit access denies "
"login.", origuser);
goto auth_failure;
}
}
if(!c && !aclp) {
- log_auth(LOG_NOTICE, "USER %s (Login failed): Limit access denies login.",
+ log_auth(LOG_INFO, "USER %s (Login failed): Limit access denies login.",
origuser);
goto auth_failure;
}
2000-01-28 07:35:15 +00:00
@@ -650,7 +650,7 @@
1999-12-05 19:29:55 +00:00
/* if 'AuthUsingAlias' set and logging in under an alias then auth using that alias */
if (origuser && strcasecmp(user,origuser) && get_param_int(c->subset,"AuthUsingAlias",FALSE) == 1) {
user_name = origuser;
- log_auth(LOG_NOTICE,"ANON AUTH: User %s, Auth Alias %s",user,user_name);
+ log_auth(LOG_INFO,"ANON AUTH: User %s, Auth Alias %s",user,user_name);
}
if(c)
2000-01-28 07:35:15 +00:00
@@ -677,22 +677,22 @@
1999-12-05 19:29:55 +00:00
switch(authcode) {
case AUTH_NOPWD:
- log_auth(LOG_NOTICE, "USER %s (Login failed): No such user found.",
+ log_auth(LOG_INFO, "USER %s (Login failed): No such user found.",
user);
goto auth_failure;
case AUTH_BADPWD:
- log_auth(LOG_NOTICE, "USER %s (Login failed): Incorrect password.",
+ log_auth(LOG_INFO, "USER %s (Login failed): Incorrect password.",
origuser);
goto auth_failure;
case AUTH_AGEPWD:
- log_auth(LOG_NOTICE, "USER %s (Login failed): Password expired.",
+ log_auth(LOG_INFO, "USER %s (Login failed): Password expired.",
user);
goto auth_failure;
case AUTH_DISABLEDPWD:
- log_auth(LOG_NOTICE, "USER %s (Login failed): Account disabled.",
+ log_auth(LOG_INFO, "USER %s (Login failed): Account disabled.",
user);
goto auth_failure;
2000-01-28 07:35:15 +00:00
@@ -715,12 +715,12 @@
1999-12-05 19:29:55 +00:00
auth_setgrent(p);
if(!_auth_check_shell((c ? c->subset : main_server->conf),pw->pw_shell)) {
- log_auth(LOG_NOTICE, "USER %s (Login failed): Invalid shell.", user);
+ log_auth(LOG_INFO, "USER %s (Login failed): Invalid shell.", user);
goto auth_failure;
}
if(!_auth_check_ftpusers((c ? c->subset : main_server->conf),pw->pw_name)) {
2000-01-28 07:35:15 +00:00
- log_auth(LOG_NOTICE, "USER %s (Login failed): User in %s.",
+ log_auth(LOG_INFO, "USER %s (Login failed): User in %s.",
user, FTPUSERS_PATH);
1999-12-05 19:29:55 +00:00
goto auth_failure;
}
2000-01-28 07:35:15 +00:00
@@ -792,7 +792,7 @@
1999-12-05 19:29:55 +00:00
if(!login_check_limits((c ? c->subset : main_server->conf),FALSE,TRUE,&i))
{
- log_auth(LOG_NOTICE, "%s: Limit access denies login (DenyGroup).",
+ log_auth(LOG_INFO, "%s: Limit access denies login (DenyGroup).",
origuser);
goto auth_failure;
}
2000-01-28 07:35:15 +00:00
@@ -807,9 +807,9 @@
resolve_anonymous_dirs(c->subset);
if(c)
1999-12-05 19:29:55 +00:00
- log_auth(LOG_NOTICE, "ANON %s: Login successful.", origuser);
+ log_auth(LOG_INFO, "ANON %s: Login successful.", origuser);
else
1999-12-05 19:29:55 +00:00
- log_auth(LOG_NOTICE,"USER %s: Login successful.", origuser);
+ log_auth(LOG_INFO,"USER %s: Login successful.", origuser);
1999-12-05 19:29:55 +00:00
/* Write the login to wtmp. This must be done here because we won't
* have access after we give up root. This can result in falsified
2000-01-28 07:35:15 +00:00
@@ -1073,7 +1073,7 @@
1999-12-05 19:29:55 +00:00
if(failnopwprompt) {
if(!user) {
- log_pri(LOG_NOTICE, "USER %s (Login failed): Not a UserAlias.",
+ log_pri(LOG_INFO, "USER %s (Login failed): Not a UserAlias.",
origuser);
send_response(R_530,"Login incorrect.");
end_login(0);
2000-01-28 07:35:15 +00:00
@@ -1090,7 +1090,7 @@
1999-12-05 19:29:55 +00:00
if(c) {
if(!login_check_limits(c->subset,FALSE,TRUE,&i) || (!aclp && !i) ) {
- log_auth(LOG_NOTICE, "ANON %s: Limit access denies login.",
+ log_auth(LOG_INFO, "ANON %s: Limit access denies login.",
origuser);
send_response(R_530,"Login incorrect.");
end_login(0);
2000-01-28 07:35:15 +00:00
@@ -1098,7 +1098,7 @@
}
1999-12-05 19:29:55 +00:00
if(!c && !aclp) {
- log_auth(LOG_NOTICE, "USER %s: Limit access denies login.", origuser);
+ log_auth(LOG_INFO, "USER %s: Limit access denies login.", origuser);
send_response(R_530,"Login incorrect.");
end_login(0);
}
2000-01-28 07:35:15 +00:00
@@ -1169,7 +1169,7 @@
1999-12-05 19:29:55 +00:00
"Too many users in your class, "
"please try again later.");
- log_auth(LOG_NOTICE, "Connection refused (max clients for class %s).",
+ log_auth(LOG_INFO, "Connection refused (max clients for class %s).",
session.class->name);
end_login(0);
2000-01-28 07:35:15 +00:00
@@ -1202,7 +1202,7 @@
send_response(R_530,"%s",
sreplace(cmd->tmp_pool,maxstr,"%m",maxn,NULL));
1999-12-05 19:29:55 +00:00
- log_auth(LOG_NOTICE, "Connection refused (max clients per host %d).",
+ log_auth(LOG_INFO, "Connection refused (max clients per host %d).",
max);
end_login(0);
2000-01-28 07:35:15 +00:00
@@ -1226,7 +1226,7 @@
1999-12-05 19:29:55 +00:00
if(cur >= max) {
send_response(R_530, "%s",
sreplace(cmd->tmp_pool, maxstr, "%m", maxn, NULL));
- log_auth(LOG_NOTICE, "Connection refused (max clients %d).", max);
+ log_auth(LOG_INFO, "Connection refused (max clients %d).", max);
end_login(0);
}
1999-12-05 19:29:55 +00:00
2000-01-28 07:35:15 +00:00
@@ -1301,7 +1301,7 @@
if(++auth_tries >= max) {
send_response(R_530,"Login incorrect");
1999-12-05 19:29:55 +00:00
- log_auth(LOG_NOTICE, "Maximum login attempts exceeded.");
+ log_auth(LOG_INFO, "Maximum login attempts exceeded.");
end_login(0);
}