--
On Thu, Jul 25, 2002 at 01:43:31PM -0700, Derrick wrote:
| Am I correct in thinking that SMTP Auth is not doable on FreeBSD because
No.
| /etc/master.passwd is rw only for root.wheel..
You can change that, or you can change the group exim runs as.
| Is it possible to create a script to dump the password field out of
| the master.passwd field into
Is it possible? Of course! Anything is "possible" :-).
#!/bin/sh
awk -F: '
/^(sash)?root:/ { next }
#/^[^:]*:([^!*x]|x)[^:]/ {
/^[^:]*:.[^:]/ {
if ( length($2) > 10 )
{ print $1 ":{md5}" $2 }
else { print $1 ":" $2 }
}
' /etc/shadow
This works on a linux system to pull the passwords out of /etc/shadow.
Redirect stdout to the file of your choosing, then either use a fancy
${lookup in exim or use pam_pwdfile.so to use that as the data store.
If you don't like this duplicated-data method of using the same
credentials for shell and SMTP authentication, a nice solution is to
move all of your user accounts into LDAP and use pam_ldap.so for both
shell and exim logins.
-D
--
In my Father's house are many rooms; if it were not so, I would have
told you. I am going there to prepare a place for you. And if I go and
prepare a place for you, I will come and take you to be with me that you
also may be where I am.
John 14:2-3
http://dman.ddts.net/~dman/
--
[ Content of type application/pgp-signature deleted ]
--