In the paper,we extend the pluggable authentication module(PAM)and make it a pluggable authentication and access control module,introduce the Java authentication and authorization service(JAAS)which is a PAM implementation on the Java platform,extend it and make it feature the ability of pluggable authentication and access control at the same time.