Date: Wed, 13 Mar 2002 11:08:46 -0500 From: "Robin P. Blanchard" <Robin_Blanchard@gactr.uga.edu> To: jah4007@cs.rit.edu Cc: stable@freebsd.org Subject: getopt / cupsaddsmb (cups-lpr 1.1.14) Message-ID: <3C8F798E.18FDA83B@gactr.uga.edu>
next in thread | raw e-mail | index | archive | help
In effort to get samba and cups working together, we have come across a peculiarity which we believe is either related to getopt or to coding differences between cupsaddsmb and samba (rpcclient). Here is what happens: # cupsaddsmb -v -a Password for root required to access localhost via SAMBA: Running command: smbclient //localhost/print\$ -N -U'stuffhere' -c 'mkdir W32X86;put /var/spool/cups/tmp/3c8f7755a05f7 W32X86/itoj95.PPD;put /usr/local/share/cups/drivers/ADOBEPS5.DLL W32X86/ADOBEPS5.DLL;put /usr/local/share/cups/drivers/ADOBEPSU.DLL W32X86/ADOBEPSU.DLL;put /usr/local/share/cups/drivers/ADOBEPSU.HLP W32X86/ADOBEPSU.HLP' added interface ip=10.10.10.181 bcast=10.10.255.255 nmask=255.255.0.0 Domain=[GACTRTEST] OS=[Unix] Server=[Samba 2.2.3a] NT_STATUS_OBJECT_NAME_COLLISION making remote directory \W32X86 putting file /var/spool/cups/tmp/3c8f7755a05f7 as \W32X86/itoj95.PPD (3312.1 kb/s) (average 3312.2 kb/s) putting file /usr/local/share/cups/drivers/ADOBEPS5.DLL as \W32X86/ADOBEPS5.DLL (23473.6 kb/s) (average 20724.4 kb/s) putting file /usr/local/share/cups/drivers/ADOBEPSU.DLL as \W32X86/ADOBEPSU.DLL (18642.6 kb/s) (average 20221.9 kb/s) putting file /usr/local/share/cups/drivers/ADOBEPSU.HLP as \W32X86/ADOBEPSU.HLP (9008.8 kb/s) (average 19498.6 kb/s) Running command: smbclient //localhost/print\$ -N -U'stuffhere' -c 'mkdir WIN40;put /var/spool/cups/tmp/3c8f7755a05f7 WIN40/itoj95.PPD;put /usr/local/share/cups/drivers/ADFONTS.MFM WIN40/ADFONTS.MFM;put /usr/local/share/cups/drivers/ADOBEPS4.DRV WIN40/ADOBEPS4.DRV;put /usr/local/share/cups/drivers/ADOBEPS4.HLP WIN40/ADOBEPS4.HLP;put /usr/local/share/cups/drivers/DEFPRTR2.PPD WIN40/DEFPRTR2.PPD;put /usr/local/share/cups/drivers/ICONLIB.DLL WIN40/ICONLIB.DLL;put /usr/local/share/cups/drivers/PSMON.DLL WIN40/PSMON.DLL;' added interface ip=10.10.10.181 bcast=10.10.255.255 nmask=255.255.0.0 Domain=[GACTRTEST] OS=[Unix] Server=[Samba 2.2.3a] NT_STATUS_OBJECT_NAME_COLLISION making remote directory \WIN40 putting file /var/spool/cups/tmp/3c8f7755a05f7 as \WIN40/itoj95.PPD (4968.0 kb/s) (average 4968.3 kb/s) putting file /usr/local/share/cups/drivers/ADFONTS.MFM as \WIN40/ADFONTS.MFM (23420.0 kb/s) (average 22000.8 kb/s) putting file /usr/local/share/cups/drivers/ADOBEPS4.DRV as \WIN40/ADOBEPS4.DRV (23843.7 kb/s) (average 23237.2 kb/s) putting file /usr/local/share/cups/drivers/ADOBEPS4.HLP as \WIN40/ADOBEPS4.HLP (21317.0 kb/s) (average 23040.8 kb/s) putting file /usr/local/share/cups/drivers/DEFPRTR2.PPD as \WIN40/DEFPRTR2.PPD (6587.6 kb/s) (average 22675.2 kb/s) putting file /usr/local/share/cups/drivers/ICONLIB.DLL as \WIN40/ICONLIB.DLL (19226.2 kb/s) (average 22459.7 kb/s) putting file /usr/local/share/cups/drivers/PSMON.DLL as \WIN40/PSMON.DLL (18666.1 kb/s) (average 22344.7 kb/s) ********** Running command: rpcclient localhost -N -U'stuffhere' -c 'adddriver "Windows NT x86" "itoj95:ADOBEPS5.DLL:itoj95.PPD:ADOBEPSU.DLL:ADOBEPSU.HLP:NULL:RAW:NULL"' INFO: Debug class all level = 3 (pid 65060 from pid 65060) Enter Password: ********** Here, cupsaddsmb fails upon executing `rpcclient localhost ....`. However, if we take that command it tries to excute, and place the hostname as the final argument, rpcclient connects and executes successfully. Hence our belief that we're dealing either with a getopt issue or the way in which cupsaddsmb calls rpcclient. Are we dealing with some sort of linuxism in which their getopt is more tolerant, or is cupsaddsmb simply broken and in need of a cosmetic patch? Thanks very much in advance. Robin. system involved: FreeBSD 4.5-STABLE #0: Tue Mar 12 09:55:26 EST 2002 samba-2.2.3a (with LDAP (and therefore gettext) and CUPS) cups-1.1.14-base cups-1.1.14-lpr -- ------------------------------------ Robin P. Blanchard IT Program Specialist Georgia Center for Continuing Ed. fon: 706.542.2404 fax: 706.542.6546 email: Robin_Blanchard@gactr.uga.edu ------------------------------------ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3C8F798E.18FDA83B>