<Location /printers>
#
# You may wish to limit access to printers and classes, either with Allow
# and Deny lines, or by requiring a username and password.
#
#On demande à l'utilsateur de s'authentifier ET d'appartenir au groupe 'imprimante' :
AuthClass Group
AuthGroupName imprimante
#On vérifie le mot de passe saisi:
AuthType Basic
</Location>
mechant@debian:~$ echo "tu veux bien me laisser imprimer?" | lp
Password for mechant on localhost? (n'importequoi)
Password for mechant on localhost? (mot_de_passe_de_mechant)
lp: unable to print file: client-error-not-authorized
gentil @debian:~$ echo "tu veux bien me laisser imprimer?" | lp
Password for mechant on localhost? (n'importequoi)
Password for mechant on localhost? (mot_de_passe_de_gentil)
request id is HP895Cxi-79 (1 file(s))
gentilOUm echant@debian:~$ echo "tu veux bien me laisser imprimer?" | lp
Password for gentilOUmechant on localhost? (vide)
lp: unable to print file: client-error-not-authorized