Using Kerberos For *Everything*
Posted: Mon May 29, 2006 11:38 am
I know I've recently posted about using Kerberos and multiple domains, but I'm having problems with Kerberos elsewhere.
Basically I want to use Kerberos authentication for *everything* - smtp-auth, IMAP, POP, SAC, Webmail, etc.
Is there a single file in ~/sys/pam.d that I can modify to enable this? In addition, I'd like to disable the Scalix internal passwords (which I believe are stored in the ldap server?). I've imported a lot of users with a generic password (for mail migration purposes), and can still be used instead of the proper Kerberos passwords. I just want to minimize the security risk.
I modified the ual.remote file and that seems to do it for IMAP and Webmail, but I can't figure out SMTP. I've modified the following files:
~/sys/pam.d/smtpd
~/sys/pam.d/smtpd.auth
~/sys/pam.d/omslapdeng
~/sys/pam.d/ual.remote
This allows me to SMTP auth with both my Kerberos password and my generic Scalix password, but I don't see any auth parameters having to do with the internal auth. mech.
Also, this kills my SAC login ability as well. If I have my sxadmin user with an authid of a Kerberos principal, I get a "Could not login." If the sxadmin has the proper authid, I still can't login.
Can someone help point me in the right direction? I'd also like to know what pam files are for what service.
Thanks,
Mike
Basically I want to use Kerberos authentication for *everything* - smtp-auth, IMAP, POP, SAC, Webmail, etc.
Is there a single file in ~/sys/pam.d that I can modify to enable this? In addition, I'd like to disable the Scalix internal passwords (which I believe are stored in the ldap server?). I've imported a lot of users with a generic password (for mail migration purposes), and can still be used instead of the proper Kerberos passwords. I just want to minimize the security risk.
I modified the ual.remote file and that seems to do it for IMAP and Webmail, but I can't figure out SMTP. I've modified the following files:
~/sys/pam.d/smtpd
Code: Select all
auth sufficient om_krb5 use_first_pass
auth required pam_deny
account required pam_permit
~/sys/pam.d/smtpd.auth
Code: Select all
auth sufficient om_krb5 use_first_pass
auth required pam_deny
account required om_auth
~/sys/pam.d/omslapdeng
Code: Select all
auth sufficient om_auth nullok
auth sufficient om_krb5 use_first_pass
auth required pam_deny
account required om_auth
~/sys/pam.d/ual.remote
Code: Select all
auth sufficient om_krb5 use_first_pass
auth required pam_deny
account required om_auth
password required om_auth nullok
This allows me to SMTP auth with both my Kerberos password and my generic Scalix password, but I don't see any auth parameters having to do with the internal auth. mech.
Also, this kills my SAC login ability as well. If I have my sxadmin user with an authid of a Kerberos principal, I get a "Could not login." If the sxadmin has the proper authid, I still can't login.
Can someone help point me in the right direction? I'd also like to know what pam files are for what service.
Thanks,
Mike