[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Need to Create Default Printer Entries



On Thu, 17 Oct 2013, Michael C. Ibarra wrote:

What I would like to do is to create a new database in my DIT, call it say defaultPrinters, which contains left side username, right side printer; i.e.:
[...]
Additionally, I would like to be able to add an allowable attribute under People, named defaultPrinters, which points to the database that I am trying to create.

So you have uid=richton,ou=People,dc=example,dc=com and you'd like to add:

defaultPrinters: ou=Printers,dc=example,dc=com

as an attribute to uid=richton? Or to ou=People? I'm not clear on that.

Regardless, what does the indirection accomplish? Why not just give the users their favorites:

uid=richton,ou=People,dc=example,dc=com
[...]
  defaultPrinter;x-os-unix: lp1onfire
  defaultPrinter;x-app-cad: bigplotter
  defaultPrinter;x-os-windows: \\laser\printer

perhaps utilizing slapo-constraint(5) to make sure that all defaultPrinter values have a matching entry along the lines of

cn=lp1onfire,ou=Printers,dc=example,dc=com
[...]
  printer-uri: ipp://127.0.0.1/

?