I had a test setup of OpenOTP/WebADM up and working, but pointing at a
test ldap instance.
I pointed it at our real ldap to do testing in production.
I am pretty certain I have everything set up properly again, however
when testing with e-mail authentication, e-mails are not sent.
I'm sure I've missed something in the switchover, but nothing obvious
is showing up in the logs.
I am testing from the webadm interface. An anonymized portion of the
soap log with a successful login:
[Sun May 06 20:02:24 2012] [127.0.0.1] [OpenOTP_083327AE] New
openotpStatus SOAP request
[Sun May 06 20:02:25 2012] [127.0.0.1] Checking OpenOTP built-in
license
[Sun May 06 20:02:25 2012] [127.0.0.1] License Ok (10/25 acivated
users)
[Sun May 06 20:02:25 2012] [127.0.0.1] [OpenOTP_083327AE] Sent status
response
[Sun May 06 20:02:32 2012] [127.0.0.1] [OpenOTP_08F2963D] New
openotpLogin SOAP request
[Sun May 06 20:02:32 2012] [127.0.0.1] [OpenOTP_08F2963D] > Username:
Test
[Sun May 06 20:02:32 2012] [127.0.0.1] [OpenOTP_08F2963D] > Domain:
TestDomain
[Sun May 06 20:02:32 2012] [127.0.0.1] [OpenOTP_08F2963D] > LDAP
Password: xxxxxxxxxxxxxxxxx
[Sun May 06 20:02:32 2012] [127.0.0.1] [OpenOTP_08F2963D] > Client ID:
OpenOTP
[Sun May 06 20:02:32 2012] [127.0.0.1] [OpenOTP_08F2963D] Registered
openotpLogin request
[Sun May 06 20:02:32 2012] [127.0.0.1] [OpenOTP_08F2963D] Searching
for user in domain 'TestDomain' (o=test)
[Sun May 06 20:02:32 2012] [127.0.0.1] [OpenOTP_08F2963D] Found LDAP
user: CN=Test User,O=test
[Sun May 06 20:02:32 2012] [127.0.0.1] [OpenOTP_08F2963D] Locked user
account
[Sun May 06 20:02:32 2012] [127.0.0.1] [OpenOTP_08F2963D] Found user
mobile:
708-555-1212
[Sun May 06 20:02:32 2012] [127.0.0.1] [OpenOTP_08F2963D] Found user
email:
te...@test.com
[Sun May 06 20:02:32 2012] [127.0.0.1] [OpenOTP_08F2963D] Found user
settings:
LoginMode=LDAPOTP,OTPType=MAIL,OTPLength=6,ChallengeMode=1,ChallengeTimeout=30,ChallengeFake=1,HOTPLookAheadWindow=25,TOTPTimeStep=30,TOTPTimeOffsetWindow=120,MOTPTimeOffsetWindow=120,OCRASuite=OCRA-1:HOTP-
SHA1-6:QN06-
T1M,SMSType=Normal,SMSMode=Ondemand,MailMode=Ondemand,ListSize=50,LastOTPTime=86400
[Sun May 06 20:02:32 2012] [127.0.0.1] [OpenOTP_08F2963D] LDAP
password Ok
[Sun May 06 20:02:32 2012] [127.0.0.1] [OpenOTP_08F2963D] Challenge
required
[Sun May 06 20:02:32 2012] [127.0.0.1] [OpenOTP_08F2963D] Could not
send MAIL OTP to
te...@test.com for CN=Test User,O=test
[Sun May 06 20:02:32 2012] [127.0.0.1] Recorded alert in SQL database
[Sun May 06 20:02:32 2012] [127.0.0.1] Could not send alert email to
'
ad...@test.com'
[Sun May 06 20:02:34 2012] [127.0.0.1] [OpenOTP_08F2963D] Sent failure
response
[Sun May 06 20:02:36 2012] [127.0.0.1] [OpenOTP_2E136A2F] New
openotpStatus SOAP request
[Sun May 06 20:02:36 2012] [127.0.0.1] [OpenOTP_2E136A2F] Sent status
response
The mail server is a separate box running sendmail. I get this in the
sendmail logs:
May 6 18:28:51 canit2 sendmail[29476]: q46NSppM029476:
2factor.test.com [192.168.1.166] did not issue MAIL/EXPN/VRFY/ETRN
during connection to MTA
When I run a tcpdump on the openotp machine and watch the smtp
conversation, the openotp machine issues an "EHLO 127.0.0.1" and then
issues a "quit" for the first e-mail attempt. For the second, after
the "EHLO 127.0.0.1" openOTP just issues a TCP FIN in response to the
sendmail response.
I've tried with two different mail servers.
When I was using my test ldap server this was working. That ldap was
a copy of production. After changing the ldap server, I hit the
button to install the ldap settings, set up a default domain and
started testing. Perhaps there was some other cleanup I missed.
My mail server section of the servers.xml file looks like:
<MailServer name="CanIT SMTP Server"
host="
canit2.test.com"
port="25"
user=""
password=""
encryption="NONE" />
A telnet smtp session from the OpenOTP server works fine.
Any help or suggestions appreciated.