[Samba] "net ads printer publish" Who does it work?

Stefan Klein stefan.klein at materna.de
Wed Jul 23 12:58:06 GMT 2003


Hi,

i am trying to get a printer published into the ADS.

The part about printer publishing in the Howto collektion isn't ready yet so
i might have to do something else befor i can publish the printer.

Is there any dokument, perhaps a first draft?

In my lab i m trying to publish a printer from Samba3-beta3 to a Windows
ADS. If i use windows to connect to the printer i can publish the printer
into the ADS (from the properties->share tab).

If i use "net -d3 ads printer publish TEST" i get the error message:

===========================================================================
[2003/07/23 14:57:31, 2] libsmb/cliconnect.c:cli_session_setup_kerberos(487)
  Doing kerberos session setup
[2003/07/23 14:57:31, 3]
libads/ldap_printer.c:get_remote_printer_publishing_data(301)
  Unable to do enumdataex on \\PRTSVR\TEST, error is WERR_INVALID_PARAM.
ads_publish_printer: Object class violation
[2003/07/23 14:57:31, 2] utils/net.c:main(683)
  return code = -1
===========================================================================

Any hints?

my smb.conf:
==============================================================
[global]
        dos charset = UTF8
        workgroup = ADS
        realm = ADS.EBIZ.MATERNA-FFM.DE
        security = ADS
        auth methods = winbind
        printcap name = cups
        ldap ssl = no
        idmap uid = 10000-20000
        idmap gid = 10000-20000
        winbind use default domain = Yes
        printer admin = administrator
        printing = cups

[printers]
        comment = All Printers
        path = /var/spool/samba
        printer admin = root, @ntadmins, skl
        guest ok = Yes
        printable = Yes
        browseable = No

[print$]
        comment = Printer Drivers
        path = /usr/local/samba/var/print_drivers
        write list = root, administrator
==============================================================

regards,
-- 
Stefan Klein



More information about the samba mailing list