#2423 cyrus_authenticate() doesn't flag SASL autenticated sessions as authenticated
Submitted: 2004-09-30 15:07 UTC
From: liamr at umich dot edu Assigned:
Status: Open Package:
PHP Version: Irrelevant OS: Linux 2.4.26
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 4 + 9 = ?

 
 [2004-09-30 15:07 UTC] liamr at umich dot edu
Description: ------------ When using GSSAPI (SASL) authentication w/ cyrus, strace and kerberos credentials indicate that authentication is successful, but the cyrus_authenticate() function reports that authentication fails. Reproduce code: --------------- $connection = cyrus_connect( 'cyrus.example.com', 143 ); if ( cyrus_authenticate( $connection, 'GSSAPI', 'imap', 'juser', 0, 1000 )){ print( "i authenticated<br>" ); } else { print( "i couldn't authenticate<br>" ); } Expected result: ---------------- cyrus_authenticate() should return TRUE Actual result: -------------- Strace show's that the user's authenticated.. 11200 write(4, "1 AUTHENTICATE GSSAPI\r\n", 23) = 23 11200 select(5, [4], [], NULL, NULL) = 1 (in [4]) 11200 read(4, "* OK cyrus.example.com Cyrus IMAP4 Murder v2.2.8 server ready\r\n", 4096) = 73 11200 select(5, [4], [], NULL, NULL) = 1 (in [4]) 11200 read(4, "+ \r\n", 4096) = 4 ...bunch of kerberos stuff.... 11200 read(4, "1 OK Success (privacy protection)\r\n", 4096) = 35 but the value returned by cyrus_authenticate() is FALSE

Comments