Subject: Authentication using Cyrus Sasl + Postfix + Mysql + Pam
From: rahul Katariya (rahulkattu at yahoo dot co dot in)
Date: Wed Apr 23 2003 - 05:04:42 EDT
Hi,
I installed cyrus-sasl-2.1.12, postfix-2.0.7,
mysql-4.0.12, pam-0.5 and
pam_mysql.
I configured cyrus -sasl with "--with-pam
--enable-login" option
My users and password are in mysql database. When i
execute php script it does not work ..
My main.cf:
------------------------------------------------------
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain =
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions =
permit_sasl_authenticated,
permit_mynetworks,
check_relay_domains
------------------------------------------------------
My /usr/local/sasllib/sasl2/smtpd.conf contains:
pwcheck_method: pam
-----------------------------------------------------
My /etc/pam.d/smtp contains:
#%PAM-1.0
auth optional /lib/security/pam_mysql.so
user=rahul passwd=nofear26 host=localhost
db=db_mydream table=users usercolumn=uid
passwdcolumn=password crypt=2
account required /lib/security/pam_mysql.so
user=rahul passwd=nofear26 host=localhost
db=db_mydream table=users usercolumn=uid
passwdcolumn=password crypt=2
--------------------------------------------------
My signup.php contains script
$mbox = imap_open( $server, 'rahuladmin',
'sr_k0r8Pw5' );
imap_createmailbox( $mbox, "$server" .
"user.$loginName" );
--------------------------------------------------
When this script executed i get the error ..
Eror: couldn't open stream {localhost:143} in
signup.php
--------------------------------------------------
Log messages : /var/log/imapd.conf contains
Apr 23 12:36:10 localhost master[9501]: about to exec
/usr/cyrus/bin/imapd
Apr 23 12:36:10 localhost imap[9501]: executed
Apr 23 12:36:10 localhost imapd[9501]: accepted
connection
Apr 23 12:36:10 localhost imapd[9501]: badlogin:
localhost.localdomain[127.0.0.1] CRAM-MD5 [SASL(-13):
user not found: no secret in database]
----------------------------------------------
Why it is using CRAM-MD5 authentication as i have
configured PAM ??
Any help will be appreciated....
Regards
Rahul ..
=====
Start Where U R ..
With What U Have ..
Make something About It ..
Never be satisfied ... => Gorge Karver
________________________________________________________________________
Missed your favourite TV serial last night? Try the new, Yahoo! TV.
visit http://in.tv.yahoo.com
|
|
|