[Samba] SetPrinter call failed

Daniel T. Gynn dan.gynn at essensys.com
Mon Oct 21 20:02:01 GMT 2002


I am having trouble getting the cupsaddsmb script to work to add the
drivers.  Everything seems to work (it copies the drivers to the correct
directories), but I keep getting the result NT_STATUS_UNSUCCESSFUL error
message on the rpcclient setdriver command.  When trying to connect to
the printer from a 2K client, I see a client-error-not-found error in
the log.  

I can't seem to find anything in the mailing list logs or the howto
docs.  I have updated to cups 1.1.16 and samba 2.2.6, but that hasn't
helped any.  

My client error line is:

[2002/10/15 16:29:40, 0] printing/print_cups.c:cups_printername_ok(290)
  Unable to get printer status for
::{2227a280-3aea-1069-a2de-08002b30309d} - client-error-not-found
[2002/10/15 16:29:40, 0] smbd/service.c:make_connection(251)
  ees-9905472 (172.24.151.53) couldn't find service
::{2227a280-3aea-1069-a2de-08002b30309d}


Here is the results of the rpcclient in debug level 3:

Initialising global parameters
params.c:pm_process() - Processing configuration file
"/etc/samba/smb.conf"
Processing section "[global]"
added interface ip=172.24.150.210 bcast=172.24.151.255
nmask=255.255.254.0
resolve_lmhosts: Attempting lmhosts lookup for name localhost<0x20>
Connecting to host=localhost share=IPC$
Connecting to 127.0.0.1 at port 445
error connecting to 127.0.0.1:445 (Connection refused)
Connecting to 127.0.0.1 at port 139
lsa_io_sec_qos: length c does not match size 8
cmd = setdriver business4 business4
SetPrinter call failed!
result was NT_STATUS_UNSUCCESSFUL


Here is my smb.conf:

[global]
        workgroup = LIMBACH
        netbios name = LFSPITPDC
        server string = LFS Samba Server
        encrypt passwords = Yes
        obey pam restrictions = Yes
        pam password change = Yes
        passwd program = /usr/bin/passwd %u
        passwd chat = *New*password* %n\n *Retype*new*password* %n\n
*passwd:*all*authentication*tokens*updated*successfully*
        unix password sync = Yes
        log file = /var/log/samba/%m.log
        max log size = 0
        time server = Yes
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
        printcap name = cups
        addprinter command = /usr/sbin/cupsaddsmb
        domain admin group = ntadmin
        add user script = /usr/local/bin/newMachine.sh %u
        logon path = \\172.24.150.210\profiles\%U
        logon drive = I:
        logon home = \\172.24.150.210\%U
        domain logons = Yes
        os level = 64
        preferred master = Yes
        domain master = Yes
        dns proxy = No
        wins server = 192.168.110.163
        ldap port = 389
        ldap suffix = "ou=smb, o=limbach, c=us"
        ldap admin dn = "uid=manager, o=limbach, c=us"
        ldap ssl = no
        admin users = @ntadmin
        printer admin = @ntadmin
        hosts allow = 172.24.150. 172.24.151. 127.0.0.1 172.29.175.
172.24.155. 172.24.154. 172.29.140.
        printing = cups
        print command = /usr/bin/lpr -r -P%p %s
        lpq command = /usr/bin/lpq -P%p
        lprm command = /usr/bin/lprm -P%p %j

[homes]
        comment = Home Directory of %u
        path = /home/%u
        valid users = %S
        read only = No
        create mask = 0664
        directory mask = 0775

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

[public]
        comment = Public Drive
        path = /home/public
        read only = No
        create mask = 0777
        force create mode = 0777
        directory mask = 0777
        force directory mode = 0777

[netlogon]
        path = /usr/local/samba/netlogon
        write list = @ntadmin

[profiles]
        path = /home/ntprofile
        valid users = %U ntadmin
        force user = %U
        read only = No
        create mask = 0600
        directory mask = 0700

[print$]
        path = /usr/local/samba/printers
        write list = @ntadmin,root
        create mask = 0777
        force create mode = 0755
        directory mask = 0777
        force directory mode = 0755
        guest ok = Yes

[common$]
        path = /home/common
        read only = No
        inherit permissions = Yes
        browseable = No


Thanks for any help!

Dan




More information about the samba mailing list