13.07.2015 Views

Naming and Directory Services (DNS, NIS, and LDAP)

Naming and Directory Services (DNS, NIS, and LDAP)

Naming and Directory Services (DNS, NIS, and LDAP)

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Managing Printer EntriesAdding PrintersTo add printer entries to the <strong>LDAP</strong> directory, use either the printmgr configurationtool or the lpset -n ldap comm<strong>and</strong>-line utility. See lpset(1M). Note that theprinter objects added to the directory only define the connection parameter, requiredby print system clients, of printers. Local print server configuration data is still held infiles. A typical printer entry would look like the following:printer-uri=myprinter,ou=printers,dc=mkg,dc=example,dc=comobjectclass=topobjectclass=printerServiceobjectclass=printerAbstractobjectclass=sunPrinterprinter-name=myprintersun-printer-bsdaddr=printsvr.example.com,myprinter,Solarissun-printer-kvp=description=HP LaserJet (PS)printer-uri=myprinterUsing lpgetlpget(1M) can be used to list all printer entries known by the <strong>LDAP</strong> client’s <strong>LDAP</strong>directory. If the <strong>LDAP</strong> client’s <strong>LDAP</strong> server is a replica server, then printers listedmight not be the same as that in the master <strong>LDAP</strong> server depending on the updatereplication agreement. See lpget(1M) for more information.For example, to list all printers for a given base DN, type the following:# lpget -n ldap listmyprinter:dn=myprinter,ou=printers,dc=mkt,dc=example,dc=combsdaddr=printsvr.example.com,myprinter,Solarisdescription=HP LaserJet (PS)172 System Administration Guide: <strong>Naming</strong> <strong>and</strong> <strong>Directory</strong> <strong>Services</strong> (<strong>DNS</strong>, <strong>NIS</strong>, <strong>and</strong> <strong>LDAP</strong>) • January 2005

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!