So possibly someone else can benefit from this, here's the final resolution:
1) Installed pwauth (http://unixpapa.com/pwauth/), which is exactly what Chris suggested as a simple highly secure routine to do the PAM authentication. One benefit of pwauth over various others out there is that at compile time you can set the UIDs of the user(s) that can run it. After compiling, the pwauth binary is setuid root so that it can perform the PAM lookups.
2) Following Cyrus's advice, I modified the wistedcaldav.directory
Hi Chris,
--On January 11, 2008 5:04:43 PM -0600 Chris Cleeland<chris@milodesigns.com> wrote:Right, that's the right approach.
>> But to achieve this, the Calendar Server would have to be running as
>> root. The caller of the PAM functions has to be root... I can't
>> think of an easy way around this. Anyone else?
>
> Call out to another daemon that ONLY does the PAM function. Let that
> other program be simple and highly secure, and let it run as root.
Another option would be to support SASL and then configure PAM into SASL.
The CMU SASL does have a saslauthd that runs separately and can do PAM, I
believe. You may already be using SASL for other services such as SMTP,
IMAP etc.
--
Cyrus Daboo
_______________________________________________
calendarserver-users mailing list
calendarserver-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/calendarserver-users