Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LDAP (RFC 7612) sharing/browsing support #5277

Closed
5 tasks
michaelrsweet opened this issue Mar 26, 2018 · 1 comment
Closed
5 tasks

LDAP (RFC 7612) sharing/browsing support #5277

michaelrsweet opened this issue Mar 26, 2018 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@michaelrsweet
Copy link
Collaborator

(Referencing corresponding ippsample sharing and ippsample browsing issues.)

Implement LDAP (RFC 7612) sharing/browsing support in cupsd, with cupsEnumDests using a new CUPS operation to search for shared printers.

Changes include:

  • Add OpenLDAP schema (LDIF) file for printers (installed to /etc/openldap/schema)
  • Add LDAPBindDN, LDAPPassword, LDAPServer, and LDAPDN directive support to "cupsd.conf"
  • Add ldap calls in dirsvc.c
  • Add vendor extension operation to cupsd to search for LDAP printers and return a list to clients (locally only). Working name: CUPS-Search-Printers (which could also do the Bonjour lookups as well)
  • Add request in cupsEnumDests.

CUPS-Search-Printers request:

Group 1: Operation Attributes:
    "attributes-charset (charset)"
    "attributes-natural-language (naturalLanguage)"
    "printer-uri (uri)" or "system-uri (uri)"
    "requesting-user-name (name)"
    "requested-attributes (1setOf keyword)"
    "limit (integer(1:MAX))"
    "max-time (integer(0:MAX))" - timeout in milliseconds
    "printer-location (text)"
    "printer-type (enum)"
    "printer-type-mask (enum)"
    "printer-uuid (uri)"

CUPS-Search-Printers response:

Group 1: Operation Attributes:
    "attributes-charset (charset)"
    "attributes-natural-language (naturalLanguage)"

Groups 2-N: Printer Attributes:
    Printer attributes as defined in [Appendix D of RFC 8011](https://tools.ietf.org/html/rfc8011#appendix-D)

Example cupsd.conf directives:

LDAPBindDN uid=cupsd,ou=people,dc=example,dc=org
LDAPPassword <ldap password>
LDAPServer ldaps://ldap-server.example.org/
LDAPDN dc=example,dc=org
@michaelrsweet michaelrsweet added the enhancement New feature or request label Mar 26, 2018
@michaelrsweet michaelrsweet added this to the Future milestone Mar 26, 2018
@michaelrsweet michaelrsweet self-assigned this Mar 26, 2018
@michaelrsweet
Copy link
Collaborator Author

This no longer seems likely.

@michaelrsweet michaelrsweet removed this from the Future milestone Dec 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant