barış tombul
2015-Apr-29 17:55 UTC
[Samba] cups automatic driver install (WERR_ACCESS_DENIED)
[root at samba ~]# cupsaddsmb -U administrator -v hp4 Password for administrator required to access localhost via SAMBA: ********************* Running command: smbclient //localhost/print$ -N -A /tmp/075335545d5bf -c 'mkdir W32X86;put /tmp/07533554ccef1 W32X86/hp4.ppd;put /usr/share/cups/drivers/ps5ui.dll W32X86/ps5ui.dll;put /usr/share/cups/drivers/pscript.hlp W32X86/pscript.hlp;put /usr/share/cups/drivers/pscript.ntf W32X86/pscript.ntf;put /usr/share/cups/drivers/pscript5.dll W32X86/pscript5.dll' Domain=[TEST] OS=[Windows 6.1] Server=[Samba 4.2.1] NT_STATUS_OBJECT_NAME_COLLISION making remote directory \W32X86 putting file /tmp/07533554ccef1 as \W32X86/hp4.ppd (448.4 kb/s) (average 448.4 kb/s) putting file /usr/share/cups/drivers/ps5ui.dll as \W32X86/ps5ui.dll (1826.1 kb/s) (average 1304.8 kb/s) putting file /usr/share/cups/drivers/pscript.hlp as \W32X86/pscript.hlp (605.4 kb/s) (average 1112.8 kb/s) putting file /usr/share/cups/drivers/pscript.ntf as \W32X86/pscript.ntf (8063.2 kb/s) (average 3792.5 kb/s) putting file /usr/share/cups/drivers/pscript5.dll as \W32X86/pscript5.dll (13469.7 kb/s) (average 4924.9 kb/s) Running command: smbclient //localhost/print$ -N -A /tmp/075335545d5bf -c 'put /usr/share/cups/drivers/cups6.ini W32X86/cups6.ini;put /usr/share/cups/drivers/cupsps6.dll W32X86/cupsps6.dll;put /usr/share/cups/drivers/cupsui6.dll W32X86/cupsui6.dll' Domain=[TEST] OS=[Windows 6.1] Server=[Samba 4.2.1] putting file /usr/share/cups/drivers/cups6.ini as \W32X86/cups6.ini (11.7 kb/s) (average 11.7 kb/s) putting file /usr/share/cups/drivers/cupsps6.dll as \W32X86/cupsps6.dll (2454.6 kb/s) (average 1122.2 kb/s) putting file /usr/share/cups/drivers/cupsui6.dll as \W32X86/cupsui6.dll (2225.2 kb/s) (average 1511.5 kb/s) Running command: rpcclient localhost -N -A /tmp/075335545d5bf -c 'adddriver "Windows NT x86" "hp4:pscript5.dll:hp4.ppd:ps5ui.dll:pscript.hlp:NULL:RAW:pscript5.dll,hp4.ppd,ps5ui.dll,pscript.hlp,pscript.ntf,cups6.ini,cupsps6.dll,cupsui6.dll"' added interface ens192 ip=192.168.0.4 bcast=192.168.0.255 netmask=255.255.255.0 added interface lo ip=::1 bcastnetmask=ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff added interface lo ip=127.0.0.1 bcast=127.255.255.255 netmask=255.0.0.0 Registered MSG_REQ_POOL_USAGE Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED Connecting to ::1 at port 445 Doing spnego session setup (blob length=96) got OID=1.2.840.48018.1.2.2 got OID=1.2.840.113554.1.2.2 got OID=1.3.6.1.4.1.311.2.2.10 got principal=not_defined_in_RFC4178 at please_ignore Got challenge flags: Got NTLMSSP neg_flags=0x60898215 NTLMSSP: Set final flags: Got NTLMSSP neg_flags=0x60088215 NTLMSSP Sign/Seal - Initialising with flags: Got NTLMSSP neg_flags=0x60088215 GENSEC backend 'gssapi_spnego' registered GENSEC backend 'gssapi_krb5' registered GENSEC backend 'gssapi_krb5_sasl' registered GENSEC backend 'sasl-DIGEST-MD5' registered GENSEC backend 'spnego' registered GENSEC backend 'schannel' registered GENSEC backend 'naclrpc_as_system' registered GENSEC backend 'sasl-EXTERNAL' registered GENSEC backend 'ntlmssp' registered GENSEC backend 'http_basic' registered GENSEC backend 'http_ntlm' registered GENSEC backend 'krb5' registered GENSEC backend 'fake_gssapi_krb5' registered Printer Driver hp4 successfully installed. Running command: smbclient //localhost/print$ -N -A /tmp/075335545d5bf -c 'mkdir x64;put /tmp/07533554ccef1 x64/hp4.ppd;put /usr/share/cups/drivers/x64/ps5ui.dll x64/ps5ui.dll;put /usr/share/cups/drivers/x64/pscript.hlp x64/pscript.hlp;put /usr/share/cups/drivers/x64/pscript.ntf x64/pscript.ntf;put /usr/share/cups/drivers/x64/pscript5.dll x64/pscript5.dll' Domain=[TEST] OS=[Windows 6.1] Server=[Samba 4.2.1] NT_STATUS_OBJECT_NAME_COLLISION making remote directory \x64 putting file /tmp/07533554ccef1 as \x64/hp4.ppd (2690.5 kb/s) (average 2690.6 kb/s) putting file /usr/share/cups/drivers/x64/ps5ui.dll as \x64/ps5ui.dll (14318.9 kb/s) (average 13066.7 kb/s) putting file /usr/share/cups/drivers/x64/pscript.hlp as \x64/pscript.hlp (3632.5 kb/s) (average 12149.5 kb/s) putting file /usr/share/cups/drivers/x64/pscript.ntf as \x64/pscript.ntf (14825.5 kb/s) (average 13468.7 kb/s) putting file /usr/share/cups/drivers/x64/pscript5.dll as \x64/pscript5.dll (13644.4 kb/s) (average 13511.0 kb/s) Running command: smbclient //localhost/print$ -N -A /tmp/075335545d5bf -c 'put /usr/share/cups/drivers/x64/cups6.ini x64/cups6.ini;put /usr/share/cups/drivers/x64/cupsps6.dll x64/cupsps6.dll;put /usr/share/cups/drivers/x64/cupsui6.dll x64/cupsui6.dll' Domain=[TEST] OS=[Windows 6.1] Server=[Samba 4.2.1] putting file /usr/share/cups/drivers/x64/cups6.ini as \x64/cups6.ini (14.1 kb/s) (average 14.1 kb/s) putting file /usr/share/cups/drivers/x64/cupsps6.dll as \x64/cupsps6.dll (3083.3 kb/s) (average 1688.2 kb/s) putting file /usr/share/cups/drivers/x64/cupsui6.dll as \x64/cupsui6.dll (3333.3 kb/s) (average 2268.8 kb/s) Running command: rpcclient localhost -N -A /tmp/075335545d5bf -c 'adddriver "Windows x64" "hp4:pscript5.dll:hp4.ppd:ps5ui.dll:pscript.hlp:NULL:RAW:pscript5.dll,hp4.ppd,ps5ui.dll,pscript.hlp,pscript.ntf,cups6.ini,cupsps6.dll,cupsui6.dll"' added interface ens192 ip=192.168.0.4 bcast=192.168.0.255 netmask=255.255.255.0 added interface lo ip=::1 bcastnetmask=ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff added interface lo ip=127.0.0.1 bcast=127.255.255.255 netmask=255.0.0.0 Registered MSG_REQ_POOL_USAGE Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED Connecting to ::1 at port 445 Doing spnego session setup (blob length=96) got OID=1.2.840.48018.1.2.2 got OID=1.2.840.113554.1.2.2 got OID=1.3.6.1.4.1.311.2.2.10 got principal=not_defined_in_RFC4178 at please_ignore Got challenge flags: Got NTLMSSP neg_flags=0x60898215 NTLMSSP: Set final flags: Got NTLMSSP neg_flags=0x60088215 NTLMSSP Sign/Seal - Initialising with flags: Got NTLMSSP neg_flags=0x60088215 GENSEC backend 'gssapi_spnego' registered GENSEC backend 'gssapi_krb5' registered GENSEC backend 'gssapi_krb5_sasl' registered GENSEC backend 'sasl-DIGEST-MD5' registered GENSEC backend 'spnego' registered GENSEC backend 'schannel' registered GENSEC backend 'naclrpc_as_system' registered GENSEC backend 'sasl-EXTERNAL' registered GENSEC backend 'ntlmssp' registered GENSEC backend 'http_basic' registered GENSEC backend 'http_ntlm' registered GENSEC backend 'krb5' registered GENSEC backend 'fake_gssapi_krb5' registered Printer Driver hp4 successfully installed. Running command: rpcclient localhost -N -A /tmp/075335545d5bf -c 'setdriver hp4 hp4' added interface ens192 ip=192.168.0.4 bcast=192.168.0.255 netmask=255.255.255.0 added interface lo ip=::1 bcastnetmask=ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff added interface lo ip=127.0.0.1 bcast=127.255.255.255 netmask=255.0.0.0 Registered MSG_REQ_POOL_USAGE Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED Connecting to ::1 at port 445 Doing spnego session setup (blob length=96) got OID=1.2.840.48018.1.2.2 got OID=1.2.840.113554.1.2.2 got OID=1.3.6.1.4.1.311.2.2.10 got principal=not_defined_in_RFC4178 at please_ignore Got challenge flags: Got NTLMSSP neg_flags=0x60898215 NTLMSSP: Set final flags: Got NTLMSSP neg_flags=0x60088215 NTLMSSP Sign/Seal - Initialising with flags: Got NTLMSSP neg_flags=0x60088215 GENSEC backend 'gssapi_spnego' registered GENSEC backend 'gssapi_krb5' registered GENSEC backend 'gssapi_krb5_sasl' registered GENSEC backend 'sasl-DIGEST-MD5' registered GENSEC backend 'spnego' registered GENSEC backend 'schannel' registered GENSEC backend 'naclrpc_as_system' registered GENSEC backend 'sasl-EXTERNAL' registered GENSEC backend 'ntlmssp' registered GENSEC backend 'http_basic' registered GENSEC backend 'http_ntlm' registered GENSEC backend 'krb5' registered GENSEC backend 'fake_gssapi_krb5' registered SetPrinter call failed! result was WERR_ACCESS_DENIED Unable to set Windows printer driver (1). Running command: smbclient //localhost/print$ -N -A /tmp/07533554adb3c -c 'mkdir W32X86;put /tmp/07533554ccef1 W32X86/hp4.ppd;put /usr/share/cups/drivers/ps5ui.dll W32X86/ps5ui.dll;put /usr/share/cups/drivers/pscript.hlp W32X86/pscript.hlp;put /usr/share/cups/drivers/pscript.ntf W32X86/pscript.ntf;put /usr/share/cups/drivers/pscript5.dll W32X86/pscript5.dll' Domain=[TEST] OS=[Windows 6.1] Server=[Samba 4.2.1] NT_STATUS_OBJECT_NAME_COLLISION making remote directory \W32X86 putting file /tmp/07533554ccef1 as \W32X86/hp4.ppd (2690.5 kb/s) (average 2690.6 kb/s) putting file /usr/share/cups/drivers/ps5ui.dll as \W32X86/ps5ui.dll (10499.9 kb/s) (average 7622.8 kb/s) putting file /usr/share/cups/drivers/pscript.hlp as \W32X86/pscript.hlp (4237.9 kb/s) (average 6810.5 kb/s) putting file /usr/share/cups/drivers/pscript.ntf as \W32X86/pscript.ntf (15177.7 kb/s) (average 12425.4 kb/s) putting file /usr/share/cups/drivers/pscript5.dll as \W32X86/pscript5.dll (14338.7 kb/s) (average 12979.7 kb/s) Running command: smbclient //localhost/print$ -N -A /tmp/07533554adb3c -c 'put /usr/share/cups/drivers/cups6.ini W32X86/cups6.ini;put /usr/share/cups/drivers/cupsps6.dll W32X86/cupsps6.dll;put /usr/share/cups/drivers/cupsui6.dll W32X86/cupsui6.dll' Domain=[TEST] OS=[Windows 6.1] Server=[Samba 4.2.1] putting file /usr/share/cups/drivers/cups6.ini as \W32X86/cups6.ini (14.1 kb/s) (average 14.1 kb/s) putting file /usr/share/cups/drivers/cupsps6.dll as \W32X86/cupsps6.dll (2454.6 kb/s) (average 1234.4 kb/s) putting file /usr/share/cups/drivers/cupsui6.dll as \W32X86/cupsui6.dll (2225.2 kb/s) (average 1606.0 kb/s) Running command: rpcclient localhost -N -A /tmp/07533554adb3c -c 'adddriver "Windows NT x86" "hp4:pscript5.dll:hp4.ppd:ps5ui.dll:pscript.hlp:NULL:RAW:pscript5.dll,hp4.ppd,ps5ui.dll,pscript.hlp,pscript.ntf,cups6.ini,cupsps6.dll,cupsui6.dll"' added interface ens192 ip=192.168.0.4 bcast=192.168.0.255 netmask=255.255.255.0 added interface lo ip=::1 bcastnetmask=ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff added interface lo ip=127.0.0.1 bcast=127.255.255.255 netmask=255.0.0.0 Registered MSG_REQ_POOL_USAGE Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED Connecting to ::1 at port 445 Doing spnego session setup (blob length=96) got OID=1.2.840.48018.1.2.2 got OID=1.2.840.113554.1.2.2 got OID=1.3.6.1.4.1.311.2.2.10 got principal=not_defined_in_RFC4178 at please_ignore Got challenge flags: Got NTLMSSP neg_flags=0x60898215 NTLMSSP: Set final flags: Got NTLMSSP neg_flags=0x60088215 NTLMSSP Sign/Seal - Initialising with flags: Got NTLMSSP neg_flags=0x60088215 GENSEC backend 'gssapi_spnego' registered GENSEC backend 'gssapi_krb5' registered GENSEC backend 'gssapi_krb5_sasl' registered GENSEC backend 'sasl-DIGEST-MD5' registered GENSEC backend 'spnego' registered GENSEC backend 'schannel' registered GENSEC backend 'naclrpc_as_system' registered GENSEC backend 'sasl-EXTERNAL' registered GENSEC backend 'ntlmssp' registered GENSEC backend 'http_basic' registered GENSEC backend 'http_ntlm' registered GENSEC backend 'krb5' registered GENSEC backend 'fake_gssapi_krb5' registered Printer Driver hp4 successfully installed. Running command: smbclient //localhost/print$ -N -A /tmp/07533554adb3c -c 'mkdir x64;put /tmp/07533554ccef1 x64/hp4.ppd;put /usr/share/cups/drivers/x64/ps5ui.dll x64/ps5ui.dll;put /usr/share/cups/drivers/x64/pscript.hlp x64/pscript.hlp;put /usr/share/cups/drivers/x64/pscript.ntf x64/pscript.ntf;put /usr/share/cups/drivers/x64/pscript5.dll x64/pscript5.dll' Domain=[TEST] OS=[Windows 6.1] Server=[Samba 4.2.1] NT_STATUS_OBJECT_NAME_COLLISION making remote directory \x64 putting file /tmp/07533554ccef1 as \x64/hp4.ppd (3138.9 kb/s) (average 3139.0 kb/s) putting file /usr/share/cups/drivers/x64/ps5ui.dll as \x64/ps5ui.dll (16610.0 kb/s) (average 15166.7 kb/s) putting file /usr/share/cups/drivers/x64/pscript.hlp as \x64/pscript.hlp (4237.9 kb/s) (average 14109.1 kb/s) putting file /usr/share/cups/drivers/x64/pscript.ntf as \x64/pscript.ntf (17892.9 kb/s) (average 15937.9 kb/s) putting file /usr/share/cups/drivers/x64/pscript5.dll as \x64/pscript5.dll (16157.9 kb/s) (average 15990.8 kb/s) Running command: smbclient //localhost/print$ -N -A /tmp/07533554adb3c -c 'put /usr/share/cups/drivers/x64/cups6.ini x64/cups6.ini;put /usr/share/cups/drivers/x64/cupsps6.dll x64/cupsps6.dll;put /usr/share/cups/drivers/x64/cupsui6.dll x64/cupsui6.dll' Domain=[TEST] OS=[Windows 6.1] Server=[Samba 4.2.1] putting file /usr/share/cups/drivers/x64/cups6.ini as \x64/cups6.ini (14.1 kb/s) (average 14.1 kb/s) putting file /usr/share/cups/drivers/x64/cupsps6.dll as \x64/cupsps6.dll (3083.3 kb/s) (average 1688.2 kb/s) putting file /usr/share/cups/drivers/x64/cupsui6.dll as \x64/cupsui6.dll (3999.9 kb/s) (average 2410.6 kb/s) Running command: rpcclient localhost -N -A /tmp/07533554adb3c -c 'adddriver "Windows x64" "hp4:pscript5.dll:hp4.ppd:ps5ui.dll:pscript.hlp:NULL:RAW:pscript5.dll,hp4.ppd,ps5ui.dll,pscript.hlp,pscript.ntf,cups6.ini,cupsps6.dll,cupsui6.dll"' added interface ens192 ip=192.168.0.4 bcast=192.168.0.255 netmask=255.255.255.0 added interface lo ip=::1 bcastnetmask=ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff added interface lo ip=127.0.0.1 bcast=127.255.255.255 netmask=255.0.0.0 Registered MSG_REQ_POOL_USAGE Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED Connecting to ::1 at port 445 Doing spnego session setup (blob length=96) got OID=1.2.840.48018.1.2.2 got OID=1.2.840.113554.1.2.2 got OID=1.3.6.1.4.1.311.2.2.10 got principal=not_defined_in_RFC4178 at please_ignore Got challenge flags: Got NTLMSSP neg_flags=0x60898215 NTLMSSP: Set final flags: Got NTLMSSP neg_flags=0x60088215 NTLMSSP Sign/Seal - Initialising with flags: Got NTLMSSP neg_flags=0x60088215 GENSEC backend 'gssapi_spnego' registered GENSEC backend 'gssapi_krb5' registered GENSEC backend 'gssapi_krb5_sasl' registered GENSEC backend 'sasl-DIGEST-MD5' registered GENSEC backend 'spnego' registered GENSEC backend 'schannel' registered GENSEC backend 'naclrpc_as_system' registered GENSEC backend 'sasl-EXTERNAL' registered GENSEC backend 'ntlmssp' registered GENSEC backend 'http_basic' registered GENSEC backend 'http_ntlm' registered GENSEC backend 'krb5' registered GENSEC backend 'fake_gssapi_krb5' registered Printer Driver hp4 successfully installed. Running command: rpcclient localhost -N -A /tmp/07533554adb3c -c 'setdriver hp4 hp4' added interface ens192 ip=192.168.0.4 bcast=192.168.0.255 netmask=255.255.255.0 added interface lo ip=::1 bcastnetmask=ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff added interface lo ip=127.0.0.1 bcast=127.255.255.255 netmask=255.0.0.0 Registered MSG_REQ_POOL_USAGE Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED Connecting to ::1 at port 445 Doing spnego session setup (blob length=96) got OID=1.2.840.48018.1.2.2 got OID=1.2.840.113554.1.2.2 got OID=1.3.6.1.4.1.311.2.2.10 got principal=not_defined_in_RFC4178 at please_ignore Got challenge flags: Got NTLMSSP neg_flags=0x60898215 NTLMSSP: Set final flags: Got NTLMSSP neg_flags=0x60088215 NTLMSSP Sign/Seal - Initialising with flags: Got NTLMSSP neg_flags=0x60088215 GENSEC backend 'gssapi_spnego' registered GENSEC backend 'gssapi_krb5' registered GENSEC backend 'gssapi_krb5_sasl' registered GENSEC backend 'sasl-DIGEST-MD5' registered GENSEC backend 'spnego' registered GENSEC backend 'schannel' registered GENSEC backend 'naclrpc_as_system' registered GENSEC backend 'sasl-EXTERNAL' registered GENSEC backend 'ntlmssp' registered GENSEC backend 'http_basic' registered GENSEC backend 'http_ntlm' registered GENSEC backend 'krb5' registered GENSEC backend 'fake_gssapi_krb5' registered SetPrinter call failed! result was WERR_ACCESS_DENIED Unable to set Windows printer driver (1). Running command: smbclient //localhost/print$ -N -A /tmp/07533554a1e2e -c 'mkdir W32X86;put /tmp/07533554ccef1 W32X86/hp4.ppd;put /usr/share/cups/drivers/ps5ui.dll W32X86/ps5ui.dll;put /usr/share/cups/drivers/pscript.hlp W32X86/pscript.hlp;put /usr/share/cups/drivers/pscript.ntf W32X86/pscript.ntf;put /usr/share/cups/drivers/pscript5.dll W32X86/pscript5.dll' Domain=[TEST] OS=[Windows 6.1] Server=[Samba 4.2.1] NT_STATUS_OBJECT_NAME_COLLISION making remote directory \W32X86 putting file /tmp/07533554ccef1 as \W32X86/hp4.ppd (2690.5 kb/s) (average 2690.6 kb/s) putting file /usr/share/cups/drivers/ps5ui.dll as \W32X86/ps5ui.dll (9692.2 kb/s) (average 7241.7 kb/s) putting file /usr/share/cups/drivers/pscript.hlp as \W32X86/pscript.hlp (3632.5 kb/s) (average 6306.0 kb/s) putting file /usr/share/cups/drivers/pscript.ntf as \W32X86/pscript.ntf (13822.6 kb/s) (average 11377.4 kb/s) putting file /usr/share/cups/drivers/pscript5.dll as \W32X86/pscript5.dll (13073.5 kb/s) (average 11870.3 kb/s) Running command: smbclient //localhost/print$ -N -A /tmp/07533554a1e2e -c 'put /usr/share/cups/drivers/cups6.ini W32X86/cups6.ini;put /usr/share/cups/drivers/cupsps6.dll W32X86/cupsps6.dll;put /usr/share/cups/drivers/cupsui6.dll W32X86/cupsui6.dll' Domain=[TEST] OS=[Windows 6.1] Server=[Samba 4.2.1] putting file /usr/share/cups/drivers/cups6.ini as \W32X86/cups6.ini (11.7 kb/s) (average 11.7 kb/s) putting file /usr/share/cups/drivers/cupsps6.dll as \W32X86/cupsps6.dll (2454.6 kb/s) (average 1122.2 kb/s) putting file /usr/share/cups/drivers/cupsui6.dll as \W32X86/cupsui6.dll (2670.3 kb/s) (average 1606.0 kb/s) Running command: rpcclient localhost -N -A /tmp/07533554a1e2e -c 'adddriver "Windows NT x86" "hp4:pscript5.dll:hp4.ppd:ps5ui.dll:pscript.hlp:NULL:RAW:pscript5.dll,hp4.ppd,ps5ui.dll,pscript.hlp,pscript.ntf,cups6.ini,cupsps6.dll,cupsui6.dll"' added interface ens192 ip=192.168.0.4 bcast=192.168.0.255 netmask=255.255.255.0 added interface lo ip=::1 bcastnetmask=ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff added interface lo ip=127.0.0.1 bcast=127.255.255.255 netmask=255.0.0.0 Registered MSG_REQ_POOL_USAGE Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED Connecting to ::1 at port 445 Doing spnego session setup (blob length=96) got OID=1.2.840.48018.1.2.2 got OID=1.2.840.113554.1.2.2 got OID=1.3.6.1.4.1.311.2.2.10 got principal=not_defined_in_RFC4178 at please_ignore Got challenge flags: Got NTLMSSP neg_flags=0x60898215 NTLMSSP: Set final flags: Got NTLMSSP neg_flags=0x60088215 NTLMSSP Sign/Seal - Initialising with flags: Got NTLMSSP neg_flags=0x60088215 GENSEC backend 'gssapi_spnego' registered GENSEC backend 'gssapi_krb5' registered GENSEC backend 'gssapi_krb5_sasl' registered GENSEC backend 'sasl-DIGEST-MD5' registered GENSEC backend 'spnego' registered GENSEC backend 'schannel' registered GENSEC backend 'naclrpc_as_system' registered GENSEC backend 'sasl-EXTERNAL' registered GENSEC backend 'ntlmssp' registered GENSEC backend 'http_basic' registered GENSEC backend 'http_ntlm' registered GENSEC backend 'krb5' registered GENSEC backend 'fake_gssapi_krb5' registered Printer Driver hp4 successfully installed. Running command: smbclient //localhost/print$ -N -A /tmp/07533554a1e2e -c 'mkdir x64;put /tmp/07533554ccef1 x64/hp4.ppd;put /usr/share/cups/drivers/x64/ps5ui.dll x64/ps5ui.dll;put /usr/share/cups/drivers/x64/pscript.hlp x64/pscript.hlp;put /usr/share/cups/drivers/x64/pscript.ntf x64/pscript.ntf;put /usr/share/cups/drivers/x64/pscript5.dll x64/pscript5.dll' Domain=[TEST] OS=[Windows 6.1] Server=[Samba 4.2.1] NT_STATUS_OBJECT_NAME_COLLISION making remote directory \x64 putting file /tmp/07533554ccef1 as \x64/hp4.ppd (3138.9 kb/s) (average 3139.0 kb/s) putting file /usr/share/cups/drivers/x64/ps5ui.dll as \x64/ps5ui.dll (15379.6 kb/s) (average 14155.6 kb/s) putting file /usr/share/cups/drivers/x64/pscript.hlp as \x64/pscript.hlp (4237.9 kb/s) (average 13254.0 kb/s) putting file /usr/share/cups/drivers/x64/pscript.ntf as \x64/pscript.ntf (15966.0 kb/s) (average 14599.6 kb/s) putting file /usr/share/cups/drivers/x64/pscript5.dll as \x64/pscript5.dll (13347.8 kb/s) (average 14274.3 kb/s) Running command: smbclient //localhost/print$ -N -A /tmp/07533554a1e2e -c 'put /usr/share/cups/drivers/x64/cups6.ini x64/cups6.ini;put /usr/share/cups/drivers/x64/cupsps6.dll x64/cupsps6.dll;put /usr/share/cups/drivers/x64/cupsui6.dll x64/cupsui6.dll' Domain=[TEST] OS=[Windows 6.1] Server=[Samba 4.2.1] putting file /usr/share/cups/drivers/x64/cups6.ini as \x64/cups6.ini (14.1 kb/s) (average 14.1 kb/s) putting file /usr/share/cups/drivers/x64/cupsps6.dll as \x64/cupsps6.dll (3083.3 kb/s) (average 1688.2 kb/s) putting file /usr/share/cups/drivers/x64/cupsui6.dll as \x64/cupsui6.dll (3333.3 kb/s) (average 2268.8 kb/s) Running command: rpcclient localhost -N -A /tmp/07533554a1e2e -c 'adddriver "Windows x64" "hp4:pscript5.dll:hp4.ppd:ps5ui.dll:pscript.hlp:NULL:RAW:pscript5.dll,hp4.ppd,ps5ui.dll,pscript.hlp,pscript.ntf,cups6.ini,cupsps6.dll,cupsui6.dll"' added interface ens192 ip=192.168.0.4 bcast=192.168.0.255 netmask=255.255.255.0 added interface lo ip=::1 bcastnetmask=ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff added interface lo ip=127.0.0.1 bcast=127.255.255.255 netmask=255.0.0.0 Registered MSG_REQ_POOL_USAGE Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED Connecting to ::1 at port 445 Doing spnego session setup (blob length=96) got OID=1.2.840.48018.1.2.2 got OID=1.2.840.113554.1.2.2 got OID=1.3.6.1.4.1.311.2.2.10 got principal=not_defined_in_RFC4178 at please_ignore Got challenge flags: Got NTLMSSP neg_flags=0x60898215 NTLMSSP: Set final flags: Got NTLMSSP neg_flags=0x60088215 NTLMSSP Sign/Seal - Initialising with flags: Got NTLMSSP neg_flags=0x60088215 GENSEC backend 'gssapi_spnego' registered GENSEC backend 'gssapi_krb5' registered GENSEC backend 'gssapi_krb5_sasl' registered GENSEC backend 'sasl-DIGEST-MD5' registered GENSEC backend 'spnego' registered GENSEC backend 'schannel' registered GENSEC backend 'naclrpc_as_system' registered GENSEC backend 'sasl-EXTERNAL' registered GENSEC backend 'ntlmssp' registered GENSEC backend 'http_basic' registered GENSEC backend 'http_ntlm' registered GENSEC backend 'krb5' registered GENSEC backend 'fake_gssapi_krb5' registered Printer Driver hp4 successfully installed. Running command: rpcclient localhost -N -A /tmp/07533554a1e2e -c 'setdriver hp4 hp4' added interface ens192 ip=192.168.0.4 bcast=192.168.0.255 netmask=255.255.255.0 added interface lo ip=::1 bcastnetmask=ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff added interface lo ip=127.0.0.1 bcast=127.255.255.255 netmask=255.0.0.0 Registered MSG_REQ_POOL_USAGE Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED Connecting to ::1 at port 445 Doing spnego session setup (blob length=96) got OID=1.2.840.48018.1.2.2 got OID=1.2.840.113554.1.2.2 got OID=1.3.6.1.4.1.311.2.2.10 got principal=not_defined_in_RFC4178 at please_ignore Got challenge flags: Got NTLMSSP neg_flags=0x60898215 NTLMSSP: Set final flags: Got NTLMSSP neg_flags=0x60088215 NTLMSSP Sign/Seal - Initialising with flags: Got NTLMSSP neg_flags=0x60088215 GENSEC backend 'gssapi_spnego' registered GENSEC backend 'gssapi_krb5' registered GENSEC backend 'gssapi_krb5_sasl' registered GENSEC backend 'sasl-DIGEST-MD5' registered GENSEC backend 'spnego' registered GENSEC backend 'schannel' registered GENSEC backend 'naclrpc_as_system' registered GENSEC backend 'sasl-EXTERNAL' registered GENSEC backend 'ntlmssp' registered GENSEC backend 'http_basic' registered GENSEC backend 'http_ntlm' registered GENSEC backend 'krb5' registered GENSEC backend 'fake_gssapi_krb5' registered SetPrinter call failed! result was WERR_ACCESS_DENIED Unable to set Windows printer driver (1).
Apparently Analagous Threads
- add x64 printer drivers with cupsaddsmb fail
- cupsaddsmb not working after upgrade to Lenny (rpcclient -> WERR_INVALID_PARAM)
- Got cupsaddsmb working but the client PC download of the printer drivers fails for 3 out 4 PCs tested so far!
- rppclient problem with cupsaddsmb
- Problem running rpc add driver