Bug 9335 - cant add printer via rpcclient
Summary: cant add printer via rpcclient
Status: CLOSED WORKSFORME
Alias: None
Product: Samba 3.6
Classification: Unclassified
Component: Printing (show other bugs)
Version: 3.6.3
Hardware: x64 Linux
: P5 critical
Target Milestone: ---
Assignee: printing-maintainers
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-29 16:01 UTC by Ansgar Jazdzewski
Modified: 2013-01-18 16:53 UTC (History)
0 users

See Also:


Attachments
the full output of the rpcclient -L print -U "SPREADSHIRT\administrator" -c 'adddriver (45.35 KB, application/octet-stream)
2012-10-29 16:01 UTC, Ansgar Jazdzewski
no flags Details
server log (debug level 10) til uce rpcclient -c adddriver (208.38 KB, application/octet-stream)
2012-10-30 07:23 UTC, Ansgar Jazdzewski
no flags Details
smb log (debug level 10) til uce rpcclient -c adddriver (323.16 KB, application/octet-stream)
2012-10-30 07:24 UTC, Ansgar Jazdzewski
no flags Details
client log (debug level 10) til uce rpcclient -c adddriver (3.78 KB, application/octet-stream)
2012-10-30 07:25 UTC, Ansgar Jazdzewski
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ansgar Jazdzewski 2012-10-29 16:01:59 UTC
Created attachment 8116 [details]
the full output of the rpcclient -L print -U "SPREADSHIRT\administrator" -c 'adddriver

hi,

i try'd to add a printer via:

 
rpcclient -L print -U "SPREADSHIRT\administrator" -c 'adddriver "Windows NT x86" "Brother HL-2250DN series:/data/samba/drivers/W32X86/BROHL10A.DLL:/data/samba/drivers/W32X86/BRSH2250DN_0000.DSI:/data/samba/drivers/W32X86/BRUIM10
...

and i got the Error:
result was WERR_NOMEM

i give an atachment wiith an -d 10 debug-level

please give me an hint, how can i add drvers to my new print-server in a other way.

thanks
Ansgar
Comment 1 Andreas Schneider 2012-10-29 20:28:56 UTC
Could you please add a level 10 debug log of the server?
Comment 2 Ansgar Jazdzewski 2012-10-30 07:23:40 UTC
Created attachment 8120 [details]
server log (debug level 10) til uce rpcclient -c adddriver
Comment 3 Ansgar Jazdzewski 2012-10-30 07:24:37 UTC
Created attachment 8122 [details]
smb log (debug level 10) til uce rpcclient -c adddriver
Comment 4 Ansgar Jazdzewski 2012-10-30 07:25:20 UTC
Created attachment 8123 [details]
client log (debug level 10) til uce rpcclient -c adddriver
Comment 5 Andreas Schneider 2012-10-30 09:12:56 UTC
Can you send me the driver files or point me to location where I can get them.

Please also post your smb.conf using 'testparm'.
Comment 6 Ansgar Jazdzewski 2012-10-30 15:43:12 UTC
(In reply to comment #5)
> Can you send me the driver files or point me to location where I can get them.
> 
> Please also post your smb.conf using 'testparm'.

testparm
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[printers]"
Processing section "[print$]"
Loaded services file OK.
Server role: ROLE_DOMAIN_MEMBER
Press enter to see a dump of your service definitions

[global]
        workgroup = SPREADSHIRT
        server string = %h server (Samba, Ubuntu)
        security = DOMAIN
        map to guest = Bad User
        obey pam restrictions = Yes
        pam password change = Yes
        passwd program = /usr/bin/passwd %u
        passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
        unix password sync = Yes
        syslog = 0
        log file = /var/log/samba/log.%m
        max log size = 1000
        printcap name = cups
        dns proxy = No
        wins server = 10.100.21.110
        usershare allow guests = Yes
        panic action = /usr/share/samba/panic-action %d
        winbind enum users = Yes
        winbind enum groups = Yes
        winbind nested groups = No
        winbind expand groups = 0
        winbind refresh tickets = Yes
        winbind offline logon = Yes
        winbind normalize names = Yes
        winbind rpc only = Yes
        idmap config * : range = 1000000-1999999
        idmap config SPREADSHIRT : backend = rid
        idmap config SPREADSHIRT : range = 10000 - 49999
        idmap config * : backend = tdb

[printers]
        comment = All Printers
        path = /var/spool/samba
        guest ok = Yes
        printable = Yes
        print ok = Yes
        browseable = No

[print$]
        comment = Printer Drivers
        path = /etc/samba/drivers
        write list = root, SPREADSHIRT\Administrator, @SPREADSHIRT\domain_admins
        read only = No
Comment 7 Andreas Schneider 2012-11-13 12:16:53 UTC
Can you send me the driver files or tell where I can find them on the net?
Comment 8 Andreas Schneider 2013-01-18 16:53:19 UTC
We return a bad error code here, but we fixed that. Just specify the file names without any path components. Like

adddriver "Windows NT x86" "Brother HL-2250DN
series:BROHL10A.DLL:BRSH2250DN_0000.DSI:..." 

We will add that information to the rpcclient addriver command help and improve the manpage.