Chris
2008-Oct-26 09:27 UTC
[Samba] Installing windows drivers into print$ on OS X 10.5 Leopard
Has anyone had any success installing windows printer drivers onto a leopard-hosted print$ share? If I use the Add Printer Wizard method, if copies the driver files to \ \SERVER\print$\W32X86 then fails with an "Operation cannot be completed." If I use the rpcclient method I get a WERR_INVALID_PARAM error. Using the Adobe Generic PostScript driver as an example. osxserver:W32X86 root# ls -l total 2832 drwxrwxr-x 2 root domainadmins 68 Oct 25 23:16 0 drwxrwxr-x 2 root domainadmins 68 Oct 25 23:16 2 drwxrwxr-x 2 root domainadmins 68 Oct 26 00:00 3 -rw-r--r-- 1 fred domainadmins 13492 Oct 26 01:43 DEFPRTR2.PPD -rw-r--r-- 1 fred domainadmins 135248 Oct 26 01:43 PS5UI.DLL -rw-r--r-- 1 fred domainadmins 26056 Oct 26 01:43 PSCRIPT.HLP -rw-r--r-- 1 fred domainadmins 792644 Oct 26 01:43 PSCRIPT.NTF -rw-r--r-- 1 fred domainadmins 470608 Oct 26 01:43 PSCRIPT5.DLL osxserver:W32X86 root# rpcclient localhost -d3 -Ufred%password -c 'adddriver "Windows NT x86" "genericps:PSCRIPT5 .DLL:DEFPRTR2.PPD:PS5UI.DLL:PSCRIPT.HLP:NULL:RAW:PSCRIPT.NTF"' added interface ip=192.168.223.13 bcast=192.168.223.255 nmask=255.255.255.0 lp_load: refreshing parameters Initialising global parameters params.c:pm_process() - Processing configuration file "/private/etc/ smb.conf" Processing section "[global]" params.c:pm_process() - Processing configuration file "/var/db/smb.conf" Processing section "[global]" Processing section "[global]" Connecting to host=localhost Connecting to 127.0.0.1 at port 445 Doing spnego session setup (blob length=126) got OID=1 2 840 113554 1 2 2 got OID=1 2 840 48018 1 2 2 got OID=1 3 6 1 4 1 311 2 2 10 got principal=cifs/osxserver.example.com@EXAMPLE.COM Got challenge flags: Got NTLMSSP neg_flags=0x40898215 NTLMSSP: Set final flags: Got NTLMSSP neg_flags=0x40088215 NTLMSSP Sign/Seal - Initialising with flags: Got NTLMSSP neg_flags=0x40088215 rpc_pipe_bind: Remote machine localhost pipe \lsarpc fnum 0x7400 bind request returned ok. lsa_io_sec_qos: length c does not match size 8 rpc_pipe_bind: Remote machine localhost pipe \spoolss fnum 0x7401 bind request returned ok. result was WERR_INVALID_PARAM smb.log shows this: osxserver (127.0.0.1) connect to service print$ initially as user fred (uid=1025, gid=20) (pid 36350) [2008/10/26 02:01:50, 2, pid=36350] /SourceCache/samba/samba-187.8/ samba/source/smbd/open.c:open_file(391) fred opened file W32X86/PSCRIPT5.DLL read=Yes write=No (numopen=1) [2008/10/26 02:01:50, 2, pid=36350] /SourceCache/samba/samba-187.8/ samba/source/smbd/close.c:close_normal_file(399) fred closed file W32X86/PSCRIPT5.DLL (numopen=0) NT_STATUS_OK [2008/10/26 02:01:50, 1, pid=36350] /SourceCache/samba/samba-187.8/ samba/source/smbd/service.c:close_cnum(1284) osxserver (127.0.0.1) closed connection to service print$ User fred is a member of Admins and Domain Admins and I have explicitly added SePrintOperatorPrivilege to EXAMPLE\Domain Admins (it didn't help.) This used to work great on 10.4...
James Peach
2008-Oct-29 00:05 UTC
[Samba] Installing windows drivers into print$ on OS X 10.5 Leopard
2008/10/26 Chris <cjl@viptalk.net>:> Has anyone had any success installing windows printer drivers onto a > leopard-hosted print$ share? > > If I use the Add Printer Wizard method, if copies the driver files to > \\SERVER\print$\W32X86 then fails with an "Operation cannot be completed." > > If I use the rpcclient method I get a WERR_INVALID_PARAM error. Using the > Adobe Generic PostScript driver as an example. > > osxserver:W32X86 root# ls -l > total 2832 > drwxrwxr-x 2 root domainadmins 68 Oct 25 23:16 0 > drwxrwxr-x 2 root domainadmins 68 Oct 25 23:16 2 > drwxrwxr-x 2 root domainadmins 68 Oct 26 00:00 3 > -rw-r--r-- 1 fred domainadmins 13492 Oct 26 01:43 DEFPRTR2.PPD > -rw-r--r-- 1 fred domainadmins 135248 Oct 26 01:43 PS5UI.DLL > -rw-r--r-- 1 fred domainadmins 26056 Oct 26 01:43 PSCRIPT.HLP > -rw-r--r-- 1 fred domainadmins 792644 Oct 26 01:43 PSCRIPT.NTF > -rw-r--r-- 1 fred domainadmins 470608 Oct 26 01:43 PSCRIPT5.DLL > > osxserver:W32X86 root# rpcclient localhost -d3 -Ufred%password -c 'adddriver > "Windows NT x86" > "genericps:PSCRIPT5.DLL:DEFPRTR2.PPD:PS5UI.DLL:PSCRIPT.HLP:NULL:RAW:PSCRIPT.NTF"' > added interface ip=192.168.223.13 bcast=192.168.223.255 nmask=255.255.255.0 > lp_load: refreshing parameters > Initialising global parameters > params.c:pm_process() - Processing configuration file > "/private/etc/smb.conf" > Processing section "[global]" > params.c:pm_process() - Processing configuration file "/var/db/smb.conf" > Processing section "[global]" > Processing section "[global]" > Connecting to host=localhost > Connecting to 127.0.0.1 at port 445 > Doing spnego session setup (blob length=126) > got OID=1 2 840 113554 1 2 2 > got OID=1 2 840 48018 1 2 2 > got OID=1 3 6 1 4 1 311 2 2 10 > got principal=cifs/osxserver.example.com@EXAMPLE.COM > Got challenge flags: > Got NTLMSSP neg_flags=0x40898215 > NTLMSSP: Set final flags: > Got NTLMSSP neg_flags=0x40088215 > NTLMSSP Sign/Seal - Initialising with flags: > Got NTLMSSP neg_flags=0x40088215 > rpc_pipe_bind: Remote machine localhost pipe \lsarpc fnum 0x7400 bind > request returned ok. > lsa_io_sec_qos: length c does not match size 8 > rpc_pipe_bind: Remote machine localhost pipe \spoolss fnum 0x7401 bind > request returned ok. > result was WERR_INVALID_PARAMI believe that this problem is because the Darwin VFS doesn't implement the read operation, only the pread operation. You should be able to work around this by temporarily commenting out the "vfs objects" line in /etc/smb.conf while you do the printer setup.> > > smb.log shows this: > osxserver (127.0.0.1) connect to service print$ initially as user fred > (uid=1025, gid=20) (pid 36350) > [2008/10/26 02:01:50, 2, pid=36350] > /SourceCache/samba/samba-187.8/samba/source/smbd/open.c:open_file(391) > fred opened file W32X86/PSCRIPT5.DLL read=Yes write=No (numopen=1) > [2008/10/26 02:01:50, 2, pid=36350] > /SourceCache/samba/samba-187.8/samba/source/smbd/close.c:close_normal_file(399) > fred closed file W32X86/PSCRIPT5.DLL (numopen=0) NT_STATUS_OK > [2008/10/26 02:01:50, 1, pid=36350] > /SourceCache/samba/samba-187.8/samba/source/smbd/service.c:close_cnum(1284) > osxserver (127.0.0.1) closed connection to service print$ > > User fred is a member of Admins and Domain Admins and I have explicitly > added SePrintOperatorPrivilege to EXAMPLE\Domain Admins (it didn't help.) > > This used to work great on 10.4... > > -- > To unsubscribe from this list go to the following URL and read the > instructions: lists.samba.org/mailman/listinfo/samba >-- James Peach | jorgar@gmail.com
Maybe Matching Threads
- Samba 3 and cupsaddsmb
- cupsaddsmb error: cli_pipe_validate_current_pdu: RPC fault code DCERPC_FAULT_OP_RNG_ERROR received
- Samba4 CUPS: NT_STATUS_ACCESS_DENIED opening remote file
- adddriver rpc command generates segmentation fault
- Update from 3.5.10 to 3.6.23 broke cupsaddsmb