I would like to know who is printing, when, and how much of paper is
used, in the aim to do stats.

- I have a Samba share (not a PDC : "security = share") where all my
printers are defined via the cups printing system, so everybody can print.
- All my users are known by a LDAP annuaire

How can I get the username of the windows users when they are printing ?

I do not need to authenticate them, what I want to do is only an
identification of my users.

Thanks for your help,