Ok, I have some new ideas concerning the AFS pam module. Last month
I introduced the "trust_root" and "catch_su" options to the authentication.
I rethought the whole thing because I was still not satisfied with those
options.
So far the module is prompting every user for a password (except root),
even if she is not registered in the current AFS cell.
Now I included "pr" calls to ask for the existence of the user first
(actually the
module does the same like "ptr examine"). When the user is registered in
the cell
she will be prompted for the AFS password the usual way. Otherwise the
module
returns success, so that another pam module has to block/grant the user
(from) authentication.
This behaviour can be turned on using the new "trust_unknown_user" switch.
A pam config may look like this:

auth required  /lib/security/pam_unix.so      nullok md5 ....
auth required  /lib/security/pam_afs.so.1     try_first_pass
trust_unknown_user

Thus, the admin can still create local users who are not known to the AFS
cell but
should have access to the machine. The "trust_unknown_user" switch makes
"trust_root" and "catch_su" obsolete, and I think this is the right way to
evaluate whether
to prompt for an AFS password or not. Hopefully, nobody but me used those
to
switches that are removed by my new patch ... 8-\
In case AFS is not available only root is granted login access. From my
point of view
this is necessary in order not to lock out the sys admins if the network is
down (you can
believe me this was a very painful experience for me 8-( ) on the one hand,
but on the
other hand it should not be possible to break in a system by blocking a
service (i.e.
make AFS unavailable to make the pam_afs module grant access without
prompting
for a password (for example by pulling the network cable out of the wall
plug)). I still
have in mind giving users null passwords locally and having them type in
the
AFS password for a login.
Does somebody have any further ideas/suggestions? Here is the patch ...

Carsten Jacobi

(See attached file: openafs-1.0.3-pam_trust_unknown.patch)

openafs-1.0.3-pam_trust_unknown.patch

Reply via email to