it was years ago, but as I remember I changed server-name for printer in Samba (not CUPS) to localhost. The problem was that servers are broadcasting themselves to clients via a machine name like "John's machine" and printer "John's printer" but clients search network hardware by their ip. Therefore, I could not establish an automatic recognition for clients.
I know setting server-name for printer to localhost is not a good way, because user may want to broadcast his printer with a specific name, but that time I could not find another solution.
In this configuration, there was some strange thing. When I set that configuration, client linux machines also automatically add that printer to their OS without any configuration or a command like "Add". Maybe this can be a security bug in linux machines because i can create a virtual machine and broadcast it as "localhost" and then i can automatically connect to clients in my LAN. It was the reason that i did not write the answer because this is really naive solution.
Last edited by xgme; 06-07-2010 at 05:03 AM.