Add shadow support
authorAndrew Psaltis <ampsaltis@gmail.com>
Tue, 29 Jun 2010 02:04:00 +0000 (22:04 -0400)
committerDavid Zeuthen <davidz@redhat.com>
Fri, 2 Jul 2010 20:31:14 +0000 (16:31 -0400)
commita2edcef54d2ab1a92f729e34dfa0c183b2533c61
treeaf68d47e43be008f7f9a6d15a5d3580c8edba2cb
parent14bdfd816512a82b1ad258fa143ae5faa945df8a
Add shadow support

Added support for the shadow authentication framework instead of PAM.
Enable it by passing --with-authfw=shadow to configure.

This is done by splitting the polkitagenthelper source into separate
parts, one that does auth with PAM, and another that does auth with
shadow, sharing functions where appropriate.

Also, all PAM-dependendent code in all other files has been #ifdef'd.
The only affected file is src/programs/pkexec.c

Signed-off-by: David Zeuthen <davidz@redhat.com>
src/polkitagent/Makefile.am
src/polkitagent/polkitagenthelper-pam.c [new file with mode: 0644]
src/polkitagent/polkitagenthelper-shadow.c [new file with mode: 0644]
src/polkitagent/polkitagenthelper.c [deleted file]
src/polkitagent/polkitagenthelperprivate.c [new file with mode: 0644]
src/polkitagent/polkitagenthelperprivate.h [new file with mode: 0644]
src/programs/pkexec.c