Помогите плз, хочу прикрутить Pam Winbind авторизацию к Курьеру...
Что имею:
FreeBSD 10.1-STABLE введена в домен Win2008R2
exim-4.8.2, настроена вторизация по Pam - Работает
courier-authlib-0.66.1, courier-authlib-base-0.66.1_2 , courier-imap-4.15_2,2:
/usr/local/etc/authlib/authdaemonrc:
Код: Выделить всё
authmodulelist="authpam"
authmodulelistorig="authpam"
daemons=5
authdaemonvar=/var/run/authdaemond
subsystem=mail
DEBUG_LOGIN=1
DEFAULTOPTIONS="wbnodsn=1"
LOGGEROPTS=""
Код: Выделить всё
SSLPORT=993
SSLADDRESS=0
SSLPIDFILE=/var/run/imapd-ssl.pid
SSLLOGGEROPTS="-name=imapd-ssl"
IMAPDSSLSTART=NO
IMAPDSTARTTLS=YES
IMAP_MAILBOX_SANITY_CHECK=0
IMAP_TLS_REQUIRED=0
COURIERTLS=/usr/local/bin/couriertls
TLS_CERTFILE=/usr/local/share/courier-imap/imapd.pem
TLS_TRUSTCERTS=/etc/ssl/cert.pem
TLS_VERIFYPEER=NONE
TLS_CACHEFILE=/usr/local/var/couriersslcache
TLS_CACHESIZE=524288
MAILDIR=Maildir
MAXPERIP=40
Код: Выделить всё
auth sufficient /usr/local/lib/pam_winbind.so
account sufficient /usr/local/lib/pam_winbind.so
Код: Выделить всё
imapd-ssl: Connection, ip=[192.168.250.6]
authdaemond: received auth request, service=imap, authtype=login
authdaemond: authpam: trying this module
authdaemond: authpam: sysusername=USER, sysuserid=<null>, sysgroupid=10000, homedir=/nfs/samba/homes/USER, address=USER, fullname=, maildir=<null>, quota=<null>, options=<null>
authdaemond: pam_service=imap, pam_username=USER
authdaemond: pam_winbind(imap): getting password (0x00000000)
authdaemond: pam_winbind(imap): user 'USER' granted access
authdaemond: pam_winbind(imap): user 'USER' granted access
authdaemond: dopam successful
authdaemond: Authenticated: sysusername=USER, sysuserid=<null>, sysgroupid=10000, homedir=/nfs/samba/homes/USER, address=USER, fullname=, maildir=<null>, quota=<null>, options=<null>