gpaterno / otpd

Automatically exported from code.google.com/p/otpd
GNU General Public License v2.0
0 stars 0 forks source link

[LDAP] Segmentation fault @ using wrong otpVendor & otpModel #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Settings otpD up using LDAP
2. In LDAP, set the following attributes for an entry:
otpVendor: Secure Metric
otpModel: SecureOTP
(this could be anything)
3. Try to authenticate

What is the expected output? What do you see instead?

Expected: authentication (or better: failure to authenticate). In this case, a 
segmentation fault is produced and otpD quits.

What version of the product are you using? On what operating system?

otpd-3.2.5

Linux dev-roy3 2.6.32-3-686-bigmem #1 SMP Thu Feb 25 06:54:30 UTC 2010 i686 
GNU/Linux
Running Debian 5.0.4

Please provide any additional information below.

Segmentation fault @ otp.c:125

As 'SecureMetric-SecureOTP' isn't a valid cardop, user->cardops isn't set and 
thus it seg-faults.

Patch is attached!

Original issue reported on code.google.com by royvanba...@gmail.com on 11 Jun 2010 at 2:25

Attachments:

GoogleCodeExporter commented 9 years ago
Removed patch; wasn't working after all

Original comment by royvanba...@gmail.com on 11 Jun 2010 at 2:30

GoogleCodeExporter commented 9 years ago
fixed in r29

Original comment by fr...@gmail.com on 9 Aug 2010 at 11:06