Greetings;
I’ve recently built a new LDAP infrastructure, migrated from NIS. Under NIS, I had a map, “printers”, which I used to query with “ypcat printers.byname|grep username”. I need to setup default printers for several applications, and making them centrally available, and configurable, is a must for me.
The issue I am facing is that my users, now listed under people, have no place to add a default printer; although there is an “allowed attribute” for “host”, which right now for me goes unused.
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.:
smitha hp001 joner hp002 carsont hp001
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.
Thanks in advance.
-mi
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/
?
On Oct 17, 2013, at 4:33 PM, Aaron Richton richton@nbcs.rutgers.edu wrote:
On Thu, 17 Oct 2013, MI 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
Correct, and uncertain how to do this, I assume via an LDIF? Didn't mention this earlier, I am using Oracle Directory Server Enterprise Edition, shouldn't matter though.
as an attribute to uid=richton? Or to ou=People? I'm not clear on that.
Ideally, as an attribute to uid=richton, but not required.
Regardless, what does the indirection accomplish? Why not just give the users their favorites:
How, and where in my DIT should I define this?
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/
Not sure what this would accomplish, the new DB doesn't have to point at the Printers DB.
Hi,
On Thu, 17 Oct 2013, Michael C. Ibarra wrote:
On Oct 17, 2013, at 4:33 PM, Aaron Richton richton@nbcs.rutgers.edu wrote:
On Thu, 17 Oct 2013, MI 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
Correct, and uncertain how to do this, I assume via an LDIF? Didn't mention this earlier, I am using Oracle Directory Server Enterprise Edition, shouldn't matter though.
This list is about OpenLDAP not Oracle DS. Please ask in the appropriate places for the product you are using.
Greetings Christian
openldap-technical@openldap.org