CUPSは正常に動作しますが、Samba経由でプリンタにアクセスするとWindowsクライアントにエラーが発生する

CUPSは正常に動作しますが、Samba経由でプリンタにアクセスするとWindowsクライアントにエラーが発生する

CentOS 6.4(newdc)にはCUPS 1.4.2-50.el6_4.5がインストールされており、そのWebインターフェイスにアクセスできます。そこでデフォルトの共有プリンタであるOCE Imagistics cm2520を設定し、テストページを正常に印刷しました。

SerNet Samba 4.0.9が私が見つけることができるすべての例で同じボックスに設定されている場合、Windows(W2K3)でプリンタをダブルクリックして印刷キューを開くポイントに到達できないようです(W2K3、OLDDC)from \ olddc )。 smb.conf でプリンタを手動で定義して得られた最も近い結果は Windows エクスプローラの \newdc に表示されますが、BackOfficeCopier プリンタをダブルクリックすると次のエラーが表示されます。

---------------------------
Printers
---------------------------
Operation could not be completed. Either the printer name was typed incorrectly, or the specified printer has lost its connection to the server.  For more information, click Help.
---------------------------
OK   Help
---------------------------

[プリンタ]共有をダブルクリックすると、次の結果が表示されます。

---------------------------
\\newdc
---------------------------
\\newdc\printers is not accessible. You might not have permission to use this network resource. Contact the administrator of this server to find out if you have access permissions.

Incorrect function.

---------------------------
OK
---------------------------

これらのどれもlog.sambaにエントリを表示しません。ただし、プリンタとFAXをダブルクリックすると、プリンタの追加のみを含むフォルダが表示され、log.sambaに次のログエントリが生成されます。

[2013/08/23 09:18:39.921226,  0] ../source4/smb_server/smb/service.c:127(make_connection)
  make_connection: couldn't find service ::{2227A280-3AEA-1069-A2DE-08002B30309D}: NT_STATUS_OBJECT_NAME_NOT_FOUND
[2013/08/23 09:18:39.935896,  0] ../source4/rpc_server/spoolss/dcesrv_spoolss.c:1189(dcesrv_spoolss_RemoteFindFirstPrinterChangeNotifyEx)
  unable to call back to \\OLDDC
[2013/08/23 09:18:39.952321,  0] ../source4/rpc_server/spoolss/dcesrv_spoolss.c:1189(dcesrv_spoolss_RemoteFindFirstPrinterChangeNotifyEx)
  unable to call back to \\OLDDC

次に、「プリンタの追加」を試みて「次へ」をクリックすると、唯一のオプションはトップレベルのプリンタであり、リストされているポートはありません。この時点で再度「次へ」を試みると、次のような結果が表示されます。

---------------------------
Add Printer Wizard
---------------------------
Operation could not be completed.
---------------------------
OK
---------------------------

最初のエラーに関しては、CUPSのキュー名はOCEであり、smb.confには次のものがあります。

[global]
        workgroup = MYDOMAIN
        realm = mydomain.lan
        netbios name = NEWDC
        server role = active directory domain controller
        server services = rpc, nbt, wrepl, ldap, cldap, kdc, drepl, winbind, ntp_signd, kcc, dnsupdate, smb, dns
        allow dns updates = true
        dns forwarder = 192.168.1.1
#        dns recursive queries = yes
        dcerpc endpoint servers = epmapper, wkssvc, rpcecho, samr, netlogon, lsarpc, spoolss, drsuapi, dssetup, unixinfo, browser, eventlog6, backupkey, dnsserver, winreg, srvsvc
#       dcerpc endpoint servers = winreg srvsvc
        load printers = yes
        printing = cups
printcap name = cups

[netlogon]
        path = /var/lib/samba/sysvol/mydomain.lan/scripts
        read only = No

[sysvol]
        path = /var/lib/samba/sysvol
        read only = No

[printers]
     comment = All Printers
     path = /var/spool/samba/
        guest ok = Yes
     browseable = Yes
     read only = No
     printable = Yes
        create mask = 0700

[print$]
     comment = Point and Print Printer Drivers
     path = /var/lib/samba/printing
     read only = No

[BackOfficeCopier]
     path = /var/spool/samba/
     browseable = yes
     printable = yes
     printer name = OCE

[mytest]
        path = /home/srv/samba-test-share
        read only = No

ACLに関する限り、2番目のエラーなどは次のとおりです。

$ sudo ls -l /var/spool/
...
drwxrwxrwt.  2 root   root   4096 Aug 15 18:10 samba

$ sudo ls -l /var/lib/samba/
...
drwxr-xr-x.  4 root root    4096 Aug 22 22:19 printing

\olddc\print$ のすべての内容を \newdc\print$ にコピーし、再び 755 に chmodding しました。

私はHOWTOに従いました。 CUPSがプリンタを正しく設定しました。権限が正しいようです。私は何を見逃していますか?

ベストアンサー1

おすすめ記事