[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lists-bincimap
Subject:    Re: [bincimap] bincimap+checkpassword-pam=true
From:       Oden Eriksson <oden.eriksson () kvikkjokk ! net>
Date:       2003-04-23 18:54:47
[Download RAW message or body]

onsdagen den 23 april 2003 19.15 skrev du:
> > I just cracked the mystery I had not having this combo work. Attached
>
> is a fix
>
> > for bincimap.
>
> Could you please post a micro-how-to of making bincimap work with
> checkpassword-pam? I would like bincimap to authenticate the users
> already authenticated by SAMBA.

Shure, attached you find a simple howto. Maybe this is something for Andreas 
too?

-- 
Regards // Oden Eriksson, Deserve-IT.com
["The_bincimap+checkpassword-pam_micro_HOWTO.html" (text/html)]

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta http-equiv="content-type"
 content="text/html; charset=ISO-8859-1">
  <title>The bincimap+checkpassword-pam micro HOWTO</title>
  <meta name="author" content="Oden Eriksson">
</head>
<body style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"
 link="#0000ff" alink="#000088" vlink="#ff0000">
<h1>The bincimap+checkpassword-pam micro HOWTO</h1>
<br>
<address><big><big>Oden Eriksson, Wed Apr 23 2003<br>
<a href="http://www.deserve-it.com">http://www.deserve-it.com</a></big></big></address>
 <br>
<hr style="width: 100%; height: 2px;"><br>
This is not a document with a lot of mumbo jumbo and lot of text, it's
just a simple step by step guide. Many common steps are implied because
you simple should know this much anyhow... And..., oh..., this document
is released under the GPL.<br>
<br>
BTW. I'm the Mandrake Linux maintainer for <span
 style="font-weight: bold;">checkpassword-pam</span> and <span
 style="font-weight: bold;">bincimap</span> and you would probably find
the latest and greatest here: <a
 href="ftp://ftp.uninett.no/pub/Linux/Mandrake/Mandrake-devel/contrib/">ftp://ftp.uninett.no/pub/Linux/Mandrake/Mandrake-devel/contrib/</a>
 With the next Mandrake Linux distribution (v9.2?) you would simply type <span
 style="font-weight: bold;">urmpi bincimap</span>, and have a working
imap server in a couple of seconds...<br>
<br>
Well..., well.., enough of this and off we go...<br>
<h3>1. Grab the sources.</h3>
<address style="font-weight: bold; margin-left: 40px;">wget
http://www.bincimap.org/dl/tarballs/bincimap-1.1.5.tar.gz</address>
<address style="font-weight: bold; margin-left: 40px;">wget
http://unc.dl.sourceforge.net/sourceforge/checkpasswd-pam/checkpassword-pam-0.95.tar.gz</address>
 <h3>2. Build and install the softwares.</h3>
<div style="margin-left: 40px;">...<br>
</div>
<h3>3. Make bincimap+checkpassword-pam work.</h3>
On a Redhat/Mandrake'ish system just use the login pam stuff, I did but
I could be wrong..., well anyway:<br>
<br>
<address style="font-weight: bold; margin-left: 40px;">cp
/etc/pam.d/login /etc/pam.d/checkpassword-pam</address>
<br>
<br>
Here's the /etc/pam.d/login stuff from my Mandrake Linux 9.1 system:<br>
<pre>#%PAM-1.0<br>auth       required     /lib/security/pam_securetty.so<br>auth      \
required     /lib/security/pam_stack.so service=system-auth<br>auth       required    \
/lib/security/pam_nologin.so<br>account    required     /lib/security/pam_stack.so \
service=system-auth<br>password   required     /lib/security/pam_stack.so \
service=system-auth<br>session    required     /lib/security/pam_stack.so \
service=system-auth<br>session    optional     /lib/security/pam_console.so<br></pre> \
<br> <br>
Here's my working xinetd invocation stuff:<br>
<pre>(the /etc/xinetd.d/bincimaps file)<br>service imap<br>{<br>        disable       \
= no<br>        flags           = REUSE<br>        socket_type     = stream<br>       \
wait            = no<br>        user            = root<br>        group           = \
root<br>        instances       = UNLIMITED<br>        server          = \
/usr/sbin/bincimap-up<br>        server_args     = --conf=/etc/bincimap.conf \
--logtype=syslog -- /bin/checkpassword-pam -s checkpassword-pam --stdin -- \
/usr/sbin/bincimapd --conf=/etc/bincimap.conf<br>        log_type        = SYSLOG \
daemon info<br>}<br><br><br><br>(the /etc/xinetd.d/bincimaps file)<br>service \
imaps<br>{<br>        disable         = no<br>        flags           = REUSE<br>     \
socket_type     = stream<br>        wait            = no<br>        user            = \
root<br>        group           = root<br>        instances       = UNLIMITED<br>     \
server          = /usr/sbin/bincimap-up<br>        server_args     = --ssl \
--conf=/etc/bincimap.conf --logtype=syslog -- /bin/checkpassword-pam -s \
checkpassword-pam --stdin -- /usr/sbin/bincimapd --conf=/etc/bincimap.conf<br>        \
log_type        = SYSLOG daemon info<br>}<br><br></pre> <h3>4. Done</h3>
<br>
<br>
</body>
</html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic