Clear text passwords was nuked by somebody, now reimplemented.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3803 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
		| @@ -167,13 +167,16 @@ pop_pass (POP *p) | |||||||
|  |  | ||||||
| #ifdef OTP | #ifdef OTP | ||||||
| 	 if (otp_verify_user (&p->otp_ctx, p->pop_parm[1]) == 0) | 	 if (otp_verify_user (&p->otp_ctx, p->pop_parm[1]) == 0) | ||||||
| 	     ; | 	     /* pass OK */; | ||||||
| 	 else | 	 else | ||||||
| #endif | #endif | ||||||
| 	 if(p->auth_level != AUTH_NONE) | 	 /*  Compare the supplied password with the password file entry */ | ||||||
|  | 	 if (p->auth_level != AUTH_NONE) | ||||||
| 	     return pop_msg(p, POP_FAILURE, | 	     return pop_msg(p, POP_FAILURE, | ||||||
| 			    "Password supplied for \"%s\" is incorrect.", | 			    "Password supplied for \"%s\" is incorrect.", | ||||||
| 			    p->user); | 			    p->user); | ||||||
|  | 	 else if (!strcmp(crypt(p->pop_parm[1], pw->pw_passwd), pw->pw_passwd)) | ||||||
|  | 	     /* pass OK */; | ||||||
| 	 else { | 	 else { | ||||||
| 	     int ret = -1; | 	     int ret = -1; | ||||||
| #ifdef KRB4 | #ifdef KRB4 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Björn Groenvall
					Björn Groenvall