[Samba] Publish printer into ADS

Adam Lins adam at bdti.com
Thu Nov 25 01:35:10 GMT 2004


I'd like to publish the printer queues on a SAMBA server to a Win2k native
mode ADS. Apparently, the command fails due to NT_STATUS_LOGON_FAILURE--the
output below is when run as root. 

  # net ads printer publish "tall" -d 2
  [2004/11/24 17:28:37, 2] lib/interface.c:add_interface(79)
    added interface ip= bcast= nmask=
  [2004/11/24 17:28:37, 2]
    Doing kerberos session setup
  [2004/11/24 17:28:37, 1] libsmb/cliconnect.c:cli_full_connection(1464)
    failed session setup with NT_STATUS_LOGON_FAILURE
  Unable to open a connnection to BERTHA to obtain data for tall
  [2004/11/24 17:28:37, 2] utils/net.c:main(792)
    return code = -1

However, smbclient is able to connect just fine:

  # smbclient // -Uadam
  Domain=[BDTI] OS=[Unix] Server=[Samba 3.0.7-1.3E]
  smb: \>

The printer is a valid queue on this server:

  # net rap printq
  Print queues at \\

  Name                         Job #      Size            Status

  copier            Queue     0 jobs                      *Printer Active*
  scratch           Queue     0 jobs                      *Printer Active*
  tall              Queue     0 jobs                      *Printer Active*

Any ideas welcome. 


More information about the samba mailing list