Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 172656 - app-admin/denyhosts fails to parse >=openssh 4.4 log format for AllowUsers
Summary: app-admin/denyhosts fails to parse >=openssh 4.4 log format for AllowUsers
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Benjamin Smee (strerror) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-29 09:59 UTC by KOVACS Tamas
Modified: 2007-08-15 01:36 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
[PATCH] proposed patch for the bug (denyhosts-2.6-regex-AllowUser-fix.patch,1.83 KB, patch)
2007-03-29 10:02 UTC, KOVACS Tamas
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description KOVACS Tamas 2007-03-29 09:59:30 UTC
Denyhosts does not handle the new log format introduced in OpenSSH 4.4 for login attempts involving users not in the AllowUsers, thus it can't block such attempts.

Reproducible: Always

Steps to Reproduce:
1. Disable root login for ssh (sshd_config, "PermitRootLogin no")
2. Try to log in with root user through ssh

Actual Results:  
Running denyhosts, regex error reported on the login attempt with not allowed user.

Expected Results:  
After reaching the threshold, it should add the host to /etc/hosts.deny, and report it in the denyhosts logfile.
Comment 1 KOVACS Tamas 2007-03-29 10:02:36 UTC
Created attachment 114852 [details, diff]
[PATCH] proposed patch for the bug

Adds regex for the new log format.
Comment 2 Benjamin Smee (strerror) (RETIRED) gentoo-dev 2007-08-15 01:36:57 UTC
take this upstream please.