Hi Peter,
I have taken a long time to get around to looking at this :-(
Peter Turczak wrote:
while experimenting with the ftpd and telnetd shipped with
uclinux-dist-2008... i found a strange situation appears when enabling
tinylogin with shadow support. After setting up a new user using adduser
and setting its password, telnetd would allow me to log in using this
new user, whereas ftpd would always return "530 Login incorrect.".
After fiddeling a litte around it seems that there was a quirk in the
user/ftp/config.h, it would enable the header for shadow passwords
(#define HAVE_SHADOW_H) but would disable getspnam (#undef
HAVE_GETSPNAM) which is needed in auth.c to use shadow passwords.
Please find attached a patch for this problem, hope it is correct.
Feedback is welcome.
I suspect you are right, and looking at how shadow.h processing
is handled in here, this is the appropriate way to fix it.
Applied to uClinux-dist.
Regards
Greg
------------------------------------------------------------------------
Greg Ungerer -- Principal Engineer EMAIL: [email protected]
SnapGear, a McAfee Company PHONE: +61 7 3435 2888
825 Stanley St, FAX: +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia WEB: http://www.SnapGear.com
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev