Allow printer-dns-sd-name to be set

Open
#1,572 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
52/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
c

Research direction

Start by tracing printer attributes and configuration handling in printers.conf and classes.conf, then inspect add_class, add_printer, set_printer_attrs, and cups/encode.c. Review the lpadmin, classes.conf, and printers.conf man pages, along with admin.cgi and its templates. Done means all checklist items are implemented, including a DNS-SD name field limited to 63 bytes.

Written by the indexing model from the issue text.

Description

enhancement

Currently cupsd doesn't allow the user/admin to change the printer-dns-sd-name value. We want to change that (already supported for CUPS 3.0 via PAPPL):

  • Load/save printer-dns-sd-name (reg_name) values in printers.conf and classes.conf
  • Update add_class, add_printer, and set_printer_attrs to allow "printer-dns-sd-name" to be changed
  • Make sure that "printer-dns-sd-name" is listed in cups/encode.c
  • Document setting values in the lpadmin man page
  • Update the classes.conf and printers.conf man pages
  • Update admin.cgi and the templates to provide a text field for setting/changing the DNS-SD name (up to 63 bytes).
Dominant language
C
Stars
1.8k
Forks
331
Avg merge
9h 42m
Merged PRs (30d)
6

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from OpenPrinting/cups

All issues in OpenPrinting/cups

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.