[Samba] printer settings not sticking

2004-04-16 Thread Daniel T. Gynn

I am using samba version 3.0.2a and cups version 1.1.17.  I have a BDC
setup with 14 printers.  Two of which are Lexmark Optra T616's.  I have
setup the printer drivers and printer settings by browsing to the BDC
and going to the printers folder and changing the printer's properties. 
This has worked for all of the printers except for one of the T616's. 
This one printer accepts the printer driver setting and I can change the
options for it (eg Setting size of trays and other options), but after
hitting apply and OK, and then bringing the printer properties backup,
the options are reset to their defaults.  I can't get this one printers
options to stick.  I figure it has something to do with one of the .tdb
files.  I have tried removing all the .tdb files under the printers
directory along with the ntprinters.tdb file which seems to make if
"forget" all of the settings for all of the printers.  I have also
deleted and readded the printer in CUPS, but when setting this one
printer up again, I still can't get it to "stick".  I'm flat out of
ideas for things to try.

Dan


-- 
---
Daniel T. Gynn
RHCE #806200978201621
Essential Systems, Inc.
412-931-5403 ext. 1
fax: 412-931-5425
[EMAIL PROTECTED]
GnuPG Key http://www.essensys.com/~dan/gpgring.asc
Fingerprint: 0979 73B8 847A 349E 7363  66F4 6A79 DD72 495D CD60


signature.asc
Description: This is a digitally signed message part
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba

[Samba] Printing issues w/ 3.x

2004-02-19 Thread Daniel T. Gynn

I am using Samba 3.0.2a on Redhat 9 with CUPS 1.1.17.  Since upgrading
from Samba 2.2.8, I have been having various printing issues.  

1) When printing to an HP LaserJet 4 through Samba, if I collate
multiple pages from Word, it will print all the pages on one sheet.  So,
if I was two copies of two pages, it will print pages 1 and 2 on 1 sheet
twice.  If I setup a TCP port in windows that goes direct to the printer
and install the print driver locally, it will print fine.

2) Lexmark printers no longer seem to be printing PDF files from Acrobat
Reader.  Printing from other applications seems fine.  On a T612, a
message is displayed "900 Service RIP Software" and locks up the
printer.  On a T616, the printer acts like it is going to print, but
never does.  

3) When not logged into the domain, but using a username and password
that is in a printer admin @group, I can no longer edit printer
properties on the server.  If I log onto the domain with the same
username/password, I can.  Under 2.2.8, I didn't have to be logged into
the domain.  Is there a parameter that I can change to get back the old
functionality?

Thanks,
Dan


-- 
-------
Daniel T. Gynn
RHCE #806200978201621
Essential Systems, Inc.
412-931-5403 ext. 1
fax: 412-931-5425
[EMAIL PROTECTED]
GnuPG Key http://www.essensys.com/~dan/gpgring.asc
Fingerprint: 0979 73B8 847A 349E 7363  66F4 6A79 DD72 495D CD60


signature.asc
Description: This is a digitally signed message part
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba

Re: [Samba] calculating passwords, and what to do with sambaLMPassword

2004-02-18 Thread Daniel T. Gynn
I use mkntpwd to calculate LM and NT Passwords.  It is in the examples
directory.  The source is in there, so if you are just interested in
how, then you can look it up.

Dan

On Wed, 2004-02-18 at 13:13, Torben Thomsen wrote:
> Hi,
> 
> I'm trying to calculate the passwords so i can change them from a 
> php-gui, an as i see it, userPassword can have any form if the 
> cryptation algorithm is stated before the hash, like "{md5}blahblah32bit"-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba

[Samba] USRMGR add groups

2004-01-29 Thread Daniel T. Gynn
I am running samba 3.0.0.  When using USRMGR most functionality works,
but I can't get it to create a group.  If I run the script by hand, it
creates the UNIX group and echos out the GID.  In Windows the error
message is:
"The following error occured creating the global group groupname:
The group name could not be found"

The delete user and delete group functions work, but give an error in
USRMGR of "Access Denied".  After refreshing USRMGR the user or group is
gone.  My guess is I am echoing something back that I shouldn't be, or
am not echoing something that I should be.

Thanks,
Dan


-- 
-------
Daniel T. Gynn
RHCE #806200978201621
Essential Systems, Inc.
412-931-5403 ext. 1
fax: 412-931-5425
[EMAIL PROTECTED]
GnuPG Key http://www.essensys.com/~dan/gpgring.asc
Fingerprint: 0979 73B8 847A 349E 7363  66F4 6A79 DD72 495D CD60


signature.asc
Description: This is a digitally signed message part
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba

Re: [Samba] do not show printers?

2002-12-06 Thread Daniel T. Gynn
Put browseable = no in the printers section

On Fri, 2002-12-06 at 10:49, Markus Schabel wrote:
> Hello!
> 
> What can I do to tell samba to do not show the printers. I've configured
> printing = no and removed the [printers]-Section, but I still see the
> printers section when browsing the server. Any hints?
> 
> regards
> Markus Schabel
> ++
> | TGM - Die Schule der Technik   |
> | IT-Service |
> | A-1200 Wien, Wexstrasse 19-23  |
> | Tel.: +43(1)33126/316 Fax: +43(1)33126/154 |
> | eMail: [EMAIL PROTECTED]|
> +--------+
-- 
---
Daniel T. Gynn
RHCE #806200978201621
Essential Systems, Inc.
412-931-5403 ext. 1
fax: 412-931-5425
[EMAIL PROTECTED]
GnuPG Key http://www.essensys.com/~dan/gpgring.asc
Fingerprint: 1341 3132 FDAC C415 8F5F 03D7 FD4E 166B FA90 58E1

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] cipsaddsmb UNSUCCESSFUL

2002-10-28 Thread Daniel T. Gynn
Do you have the 'addprinter command' parameter set in smb.conf?  If so,
remove it

On Mon, 2002-10-28 at 05:18, Kalkoul Morad wrote:
> Hi,
> 
> I have a linux box on RH7.3 with samba 2.2.5-1 and cups-1.1.14-15.
> 
> I create a cups printer on to this machine with success, It called lptest?
> and apparently, when I send a page test it works fine.
> 
> But now I want to share It via Samba then  I putted the different setting in
> smb.conf . I extracted the different files from the ADOBE POSTSCRIPT DRIVER
> and I put them in /usr/share/cups/drivers . After , I ran cupsaddsmb :
> 
> # cupsaddsmb -v lptest
> Password for root required to access localhost via SAMBA:
> Running command: smbclient //localhost/print\$ -N -U'root%secret' -c 'mkdir
> W32X86;put /var/spool/cups/tmp/3dbd0c8f9e398 W32X86/lptest.PPD;put
> /usr/share/cups/drivers/ADOBEPS5.DLL W32X86/ADOBEPS5.DLL;put
> /usr/share/cups/drivers/ADOBEPSU.DLL W32X86/ADOBEPSU.DLL;put
> /usr/share/cups/drivers/ADOBEPSU.HLP W32X86/ADOBEPSU.HLP'
> added interface ip=172.25.4.64 bcast=172.25.255.255 nmask=255.255.0.0
> Domain=[ARTE] OS=[Unix] Server=[Samba 2.2.5]
> NT_STATUS_OBJECT_NAME_COLLISION making remote directory \W32X86
> putting file /var/spool/cups/tmp/3dbd0c8f9e398 as \W32X86/lptest.PPD (1797.7
> kb/s) (average 1797.7 kb/s)
> putting file /usr/share/cups/drivers/ADOBEPS5.DLL as \W32X86/ADOBEPS5.DLL
> (18619.7 kb/s) (average 11410.3 kb/s)
> putting file /usr/share/cups/drivers/ADOBEPSU.DLL as \W32X86/ADOBEPSU.DLL
> (17863.5 kb/s) (average 12749.7 kb/s)
> putting file /usr/share/cups/drivers/ADOBEPSU.HLP as \W32X86/ADOBEPSU.HLP
> (9575.2 kb/s) (average 12634.3 kb/s)
> 
> Running command: smbclient //localhost/print\$ -N -U'root%secret' -c 'mkdir
> WIN40;put /var/spool/cups/tmp/3dbd0c8f9e398 WIN40/lptest.PPD;put
> /usr/share/cups/drivers/ADFONTS.MFM WIN40/ADFONTS.MFM;put
> /usr/share/cups/drivers/ADOBEPS4.DRV WIN40/ADOBEPS4.DRV;put
> /usr/share/cups/drivers/ADOBEPS4.HLP WIN40/ADOBEPS4.HLP;put
> /usr/share/cups/drivers/DEFPRTR2.PPD WIN40/DEFPRTR2.PPD;put
> /usr/share/cups/drivers/ICONLIB.DLL WIN40/ICONLIB.DLL;put
> /usr/share/cups/drivers/PSMON.DLL WIN40/PSMON.DLL;'
> added interface ip=172.25.4.64 bcast=172.25.255.255 nmask=255.255.0.0
> Domain=[ARTE] OS=[Unix] Server=[Samba 2.2.5]
> NT_STATUS_OBJECT_NAME_COLLISION making remote directory \WIN40
> putting file /var/spool/cups/tmp/3dbd0c8f9e398 as \WIN40/lptest.PPD (1198.5
> kb/s) (average 1198.5 kb/s)
> putting file /usr/share/cups/drivers/ADFONTS.MFM as \WIN40/ADFONTS.MFM
> (18736.0 kb/s) (average 10428.8 kb/s)
> putting file /usr/share/cups/drivers/ADOBEPS4.DRV as \WIN40/ADOBEPS4.DRV
> (17604.6 kb/s) (average 14433.9 kb/s)
> putting file /usr/share/cups/drivers/ADOBEPS4.HLP as \WIN40/ADOBEPS4.HLP
> (12698.5 kb/s) (average 14231.8 kb/s)
> putting file /usr/share/cups/drivers/DEFPRTR2.PPD as \WIN40/DEFPRTR2.PPD
> (13153.0 kb/s) (average 14224.5 kb/s)
> putting file /usr/share/cups/drivers/ICONLIB.DLL as \WIN40/ICONLIB.DLL
> (19226.2 kb/s) (average 14420.7 kb/s)
> putting file /usr/share/cups/drivers/PSMON.DLL as \WIN40/PSMON.DLL (13999.3
> kb/s) (average 14415.2 kb/s)
> 
> Running command: rpcclient localhost -N -U'root%secret' -c 'adddriver
> "Windows NT x86"
> "lptest:ADOBEPS5.DLL:lptest.PPD:ADOBEPSU.DLL:ADOBEPSU.HLP:NULL:RAW:NULL"'
> cmd = adddriver "Windows NT x86"
> "lptest:ADOBEPS5.DLL:lptest.PPD:ADOBEPSU.DLL:ADOBEPSU.HLP:NULL:RAW:NULL"
> result was NT_STATUS_UNSUCCESSFUL
> 
> Running command: rpcclient localhost -N -U'root%secret' -c 'addprinter
> lptest lptest "lptest" ""'
> cmd = addprinter lptest lptest "lptest" ""
> result was NT_STATUS_UNSUCCESSFUL
> 
> Running command: rpcclient localhost -N -U'root%secret' -c 'adddriver
> "Windows 4.0"
> "lptest:ADOBEPS4.DRV:lptest.PPD:NULL:ADOBEPS4.HLP:PSMON.DLL:RAW:ADFONTS.MFM,
> DEFPRTR2.PPD,ICONLIB.DLL"'
> cmd = adddriver "Windows 4.0"
> "lptest:ADOBEPS4.DRV:lptest.PPD:NULL:ADOBEPS4.HLP:PSMON.DLL:RAW:ADFONTS.MFM,
> DEFPRTR2.PPD,ICONLIB.DLL"
> result was NT_STATUS_UNSUCCESSFUL
> 
> #
> 
> Why adddriver doesn' work ? Someone can help me? Thanks in advance.
> 
> PS: I don't use Sources of CUPS drivers / PPDs like ESP PrintPro or I had To
> use it absolutely to work it  fine
> 
> 
> 
> 
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  http://lists.samba.org/mailman/listinfo/samba
-- 
---
Daniel T. Gynn
RHCE #806200978201621
Essential Systems, Inc.
412-931-5403 ext. 1
fax: 412-931-5425
[EMAIL PROTECTED]
GnuPG Key http://www.essensys.com/~dan/gpgring.asc
Fingerprint: 1341 3132 FDAC C415 8F5F 03D7 FD4E 166B FA90 58E1



signature.asc
Description: This is a digitally signed message part


Re: [Samba] SetPrinter call failed

2002-10-25 Thread Daniel T. Gynn
Ok, I finally figured out what the problem was.  In case anyone has the
problem in the future, here is what it was.  I had the 'addprinter
command' parameter set to cupsaddsmb (as I read to do somewhere), when I
ran cupsaddsmb by hand, it would fail.  Once I took the 'addprinter
command' parameter out, it works great!


On Mon, 2002-10-21 at 15:59, Daniel T. Gynn wrote:
> 
> I am having trouble getting the cupsaddsmb script to work to add the
> drivers.  Everything seems to work (it copies the drivers to the correct
> directories), but I keep getting the result NT_STATUS_UNSUCCESSFUL error
> message on the rpcclient setdriver command.  When trying to connect to
> the printer from a 2K client, I see a client-error-not-found error in
> the log.  
> 
> I can't seem to find anything in the mailing list logs or the howto
> docs.  I have updated to cups 1.1.16 and samba 2.2.6, but that hasn't
> helped any.  
> 
> My client error line is:
> 
> [2002/10/15 16:29:40, 0] printing/print_cups.c:cups_printername_ok(290)
>   Unable to get printer status for
> ::{2227a280-3aea-1069-a2de-08002b30309d} - client-error-not-found
> [2002/10/15 16:29:40, 0] smbd/service.c:make_connection(251)
>   ees-9905472 (172.24.151.53) couldn't find service
> ::{2227a280-3aea-1069-a2de-08002b30309d}
> 
> 
> Here is the results of the rpcclient in debug level 3:
> 
> Initialising global parameters
> params.c:pm_process() - Processing configuration file
> "/etc/samba/smb.conf"
> Processing section "[global]"
> added interface ip=172.24.150.210 bcast=172.24.151.255
> nmask=255.255.254.0
> resolve_lmhosts: Attempting lmhosts lookup for name localhost<0x20>
> Connecting to host=localhost share=IPC$
> Connecting to 127.0.0.1 at port 445
> error connecting to 127.0.0.1:445 (Connection refused)
> Connecting to 127.0.0.1 at port 139
> lsa_io_sec_qos: length c does not match size 8
> cmd = setdriver business4 business4
> SetPrinter call failed!
> result was NT_STATUS_UNSUCCESSFUL
> 
> 
> Here is my smb.conf:
> 
> [global]
> workgroup = LIMBACH
> netbios name = LFSPITPDC
> server string = LFS Samba Server
> encrypt passwords = Yes
> obey pam restrictions = Yes
> pam password change = Yes
> passwd program = /usr/bin/passwd %u
> passwd chat = *New*password* %n\n *Retype*new*password* %n\n
> *passwd:*all*authentication*tokens*updated*successfully*
> unix password sync = Yes
> log file = /var/log/samba/%m.log
> max log size = 0
> time server = Yes
> socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
> printcap name = cups
> addprinter command = /usr/sbin/cupsaddsmb
> domain admin group = ntadmin
> add user script = /usr/local/bin/newMachine.sh %u
> logon path = \\172.24.150.210\profiles\%U
> logon drive = I:
> logon home = \\172.24.150.210\%U
> domain logons = Yes
> os level = 64
> preferred master = Yes
> domain master = Yes
> dns proxy = No
> wins server = 192.168.110.163
> ldap port = 389
> ldap suffix = "ou=smb, o=limbach, c=us"
> ldap admin dn = "uid=manager, o=limbach, c=us"
> ldap ssl = no
> admin users = @ntadmin
> printer admin = @ntadmin
> hosts allow = 172.24.150. 172.24.151. 127.0.0.1 172.29.175.
> 172.24.155. 172.24.154. 172.29.140.
> printing = cups
> print command = /usr/bin/lpr -r -P%p %s
> lpq command = /usr/bin/lpq -P%p
> lprm command = /usr/bin/lprm -P%p %j
> 
> [homes]
> comment = Home Directory of %u
> path = /home/%u
> valid users = %S
> read only = No
> create mask = 0664
> directory mask = 0775
> 
> [printers]
> comment = All Printers
> path = /var/spool/samba
> printer admin = root @ntadmin
> guest ok = Yes
> printable = Yes
> browseable = No
> 
> [public]
> comment = Public Drive
> path = /home/public
> read only = No
> create mask = 0777
> force create mode = 0777
> directory mask = 0777
> force directory mode = 0777
> 
> [netlogon]
> path = /usr/local/samba/netlogon
> write list = @ntadmin
> 
> [profiles]
> path = /home/ntprofile
> valid users = %U ntadmin
> force user = %U
> read only = No
> create mask = 0600
> directory mask = 0700
> 
> [print$]
> path = /usr/l

[Samba] cupsaddsmb rpcclient error

2002-10-24 Thread Daniel T. Gynn


I am running samba 2.2.6 and cups 1.1.16.  I can't get cupsaddsmb to
complete successfully.  I'm at an end here, I can't think of anything
else to try after 2 weeks of searching the web.  It copies the drivers
to the print$ share directory, however the SetPrinter command fails on
the rpcclient command and it returns with an NT_STATUS_UNSUCCESSFUL
error.  At the SetPrinter failure, it returns an WERR_ACCESS_DENIED, but
I'm not sure what permissions it's looking for or where it wants them
set.  I'm attaching the results of rpcclient with debug level 100.

PS I'm snipping alot of this since it seems like the list won't let a 
long list in.  You can see the whole log at 
http://www.essensys.com/~dan/rpcclient.txt


Serverzone is 14400
[snip]
Initialising global parameters
params.c:pm_process() - Processing configuration file "/etc/samba/smb.conf"
Processing section "[global]"
doing parameter workgroup = LIMBACH
doing parameter netbios name = LFSPITPDC
handle_netbios_name: set global_myname to: LFSPITPDC
doing parameter server string = LFS Samba Server
doing parameter encrypt passwords = Yes
doing parameter obey pam restrictions = Yes
doing parameter pam password change = Yes
doing parameter passwd program = /usr/bin/passwd %u
doing parameter passwd chat = *New*password* %n\n *Retype*new*password* %n\n 
*passwd:*all*authentication*tokens*updated*successfully*
doing parameter unix password sync = Yes
doing parameter log file = /var/log/samba/%m.log
doing parameter max log size = 0
doing parameter time server = Yes
doing parameter socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
doing parameter addprinter command = /usr/sbin/cupsaddsmb
doing parameter domain admin group = ntadmin
doing parameter add user script = /usr/local/bin/newMachine.sh %u
doing parameter logon path = \\172.24.150.210\profiles\%U
doing parameter logon drive = I:
doing parameter logon home = \\172.24.150.210\%U
doing parameter domain logons = Yes
doing parameter os level = 64
doing parameter preferred master = Yes
doing parameter domain master = Yes
doing parameter dns proxy = No
doing parameter wins server = 192.168.110.163
wins_srv_load_list(): Building WINS server list:
192.168.110.163,
1 WINS server listed.
doing parameter ldap port = 389
doing parameter ldap suffix = "ou=smb, o=limbach, c=us"
doing parameter ldap admin dn = "uid=manager, o=limbach, c=us"
doing parameter ldap ssl = no
doing parameter admin users = @ntadmin
doing parameter printer admin = @ntadmin
doing parameter hosts allow = 172.24.150. 172.24.151. 127.0.0.1 172.29.175. 
172.24.155. 172.24.154. 172.29.140.
doing parameter printcap name = /etc/printcap
doing parameter printing = cups
doing parameter print command = /usr/bin/lpr -r -P%p %s
doing parameter lpq command = /usr/bin/lpq -P%p
doing parameter lprm command = /usr/bin/lprm -P%p %j
pm_process() returned Yes
lp_servicenumber: couldn't find homes
set_server_role: ROLE_DOMAIN_PDC
codepage_initialise: client code page = 850
load_client_codepage: loading codepage 850.
[snip]
load_dos_unicode_map: 850
load_unicode_map: loading unicode map for codepage 850.
load_unix_unicode_map: ISO8859-1 (init_done=0, override=0)
load_unicode_map: loading unicode map for codepage ISO8859-1.
added interface ip=172.24.150.210 bcast=172.24.151.255 nmask=255.255.254.0
resolve_lmhosts: Attempting lmhosts lookup for name localhost<0x20>
getlmhostsent: lmhost entry: 127.0.0.1 localhost 
internal_resolve_name: returning 1 addresses: 127.0.0.1 

Connecting to host=localhost share=IPC$
Connecting to 127.0.0.1 at port 445
error connecting to 127.0.0.1:445 (Connection refused)
Connecting to 127.0.0.1 at port 139
socket option SO_KEEPALIVE = 0
socket option SO_REUSEADDR = 0
socket option SO_BROADCAST = 0
socket option TCP_NODELAY = 1
socket option IPTOS_LOWDELAY = 0
socket option IPTOS_THROUGHPUT = 0
socket option SO_SNDBUF = 16384
socket option SO_RCVBUF = 16384
socket option SO_SNDLOWAT = 1
socket option SO_RCVLOWAT = 1
socket option SO_SNDTIMEO = 0
socket option SO_RCVTIMEO = 0
write_socket(3,72)
write_socket(3,72) wrote 72
Sent session request
[snip]
[000] 04 0B DF 23 F2 0A A6 53  4C 49 4D 42 41 43 48 00  ...#...S LIMBACH.
write_socket(3,134)
write_socket(3,134) wrote 134
got smb length of 66
[snip]
[000] 49 50 43 00 49 50 43 00   IPC.IPC. 
cli_init_creds: user root domain รจ!@ flgs: 0
ntlmssp_cli_flgs:0
write_socket(3,95)
write_socket(3,95) wrote 95
got smb length of 103
[sni]
Bind RPC Pipe[731d]: \PIPE\lsarpc
Bind Abstract Syntax: [000] 78 57 34 12 34 12 CD AB  EF 00 01 23 45 67 89 AB  xW4.4... 
...#Eg..
[010] 00 00 00 00    
Bind Transfer Syntax: [000] 04 5D 88 8A EB 1C C9 11  9F E8 08 00 2B 10 48 60  .].. 
+.H`
[010] 02 00 00 00    
00 smb_io_rpc_hdr hdr
 major : 05
0001 minor : 00
0002 pkt_type  : 0b
0003 flags : 03
0004 pack_type0: 10
0005 pack_type1: 00
0006 pack_type2: 

[Samba] cupsaddsmb rpcclient error

2002-10-24 Thread Daniel T. Gynn

I am running samba 2.2.6 and cups 1.1.16.  I can't get cupsaddsmb to
complete successfully.  I'm at an end here, I can't think of anything
else to try after 2 weeks of searching the web.  It copies the drivers
to the print$ share directory, however the SetPrinter command fails on
the rpcclient command and it returns with an NT_STATUS_UNSUCCESSFUL
error.  At the SetPrinter failure, it returns an WERR_ACCESS_DENIED, but
I'm not sure what permissions it's looking for or where it wants them
set.  I'm attaching the results of rpcclient with debug level 100.


Serverzone is 14400
Adding chars 0x0 0x0 (l->u = False) (u->l = False)
Adding chars 0x21 0x0 (l->u = False) (u->l = False)
Adding chars 0x23 0x0 (l->u = False) (u->l = False)
Adding chars 0x24 0x0 (l->u = False) (u->l = False)
Adding chars 0x25 0x0 (l->u = False) (u->l = False)
Adding chars 0x26 0x0 (l->u = False) (u->l = False)
Adding chars 0x27 0x0 (l->u = False) (u->l = False)
Adding chars 0x28 0x0 (l->u = False) (u->l = False)
Adding chars 0x29 0x0 (l->u = False) (u->l = False)
Adding chars 0x2d 0x0 (l->u = False) (u->l = False)
Adding chars 0x2e 0x0 (l->u = False) (u->l = False)
Adding chars 0x30 0x0 (l->u = False) (u->l = False)
Adding chars 0x31 0x0 (l->u = False) (u->l = False)
Adding chars 0x32 0x0 (l->u = False) (u->l = False)
Adding chars 0x33 0x0 (l->u = False) (u->l = False)
Adding chars 0x34 0x0 (l->u = False) (u->l = False)
Adding chars 0x35 0x0 (l->u = False) (u->l = False)
Adding chars 0x36 0x0 (l->u = False) (u->l = False)
Adding chars 0x37 0x0 (l->u = False) (u->l = False)
Adding chars 0x38 0x0 (l->u = False) (u->l = False)
Adding chars 0x39 0x0 (l->u = False) (u->l = False)
Adding chars 0x40 0x0 (l->u = False) (u->l = False)
Adding chars 0x41 0x0 (l->u = False) (u->l = False)
Adding chars 0x42 0x0 (l->u = False) (u->l = False)
Adding chars 0x43 0x0 (l->u = False) (u->l = False)
Adding chars 0x44 0x0 (l->u = False) (u->l = False)
Adding chars 0x45 0x0 (l->u = False) (u->l = False)
Adding chars 0x46 0x0 (l->u = False) (u->l = False)
Adding chars 0x47 0x0 (l->u = False) (u->l = False)
Adding chars 0x48 0x0 (l->u = False) (u->l = False)
Adding chars 0x49 0x0 (l->u = False) (u->l = False)
Adding chars 0x4a 0x0 (l->u = False) (u->l = False)
Adding chars 0x4b 0x0 (l->u = False) (u->l = False)
Adding chars 0x4c 0x0 (l->u = False) (u->l = False)
Adding chars 0x4d 0x0 (l->u = False) (u->l = False)
Adding chars 0x4e 0x0 (l->u = False) (u->l = False)
Adding chars 0x4f 0x0 (l->u = False) (u->l = False)
Adding chars 0x50 0x0 (l->u = False) (u->l = False)
Adding chars 0x51 0x0 (l->u = False) (u->l = False)
Adding chars 0x52 0x0 (l->u = False) (u->l = False)
Adding chars 0x53 0x0 (l->u = False) (u->l = False)
Adding chars 0x54 0x0 (l->u = False) (u->l = False)
Adding chars 0x55 0x0 (l->u = False) (u->l = False)
Adding chars 0x56 0x0 (l->u = False) (u->l = False)
Adding chars 0x57 0x0 (l->u = False) (u->l = False)
Adding chars 0x58 0x0 (l->u = False) (u->l = False)
Adding chars 0x59 0x0 (l->u = False) (u->l = False)
Adding chars 0x5a 0x0 (l->u = False) (u->l = False)
Adding chars 0x5e 0x0 (l->u = False) (u->l = False)
Adding chars 0x5f 0x0 (l->u = False) (u->l = False)
Adding chars 0x60 0x0 (l->u = False) (u->l = False)
Adding chars 0x61 0x0 (l->u = False) (u->l = False)
Adding chars 0x62 0x0 (l->u = False) (u->l = False)
Adding chars 0x63 0x0 (l->u = False) (u->l = False)
Adding chars 0x64 0x0 (l->u = False) (u->l = False)
Adding chars 0x65 0x0 (l->u = False) (u->l = False)
Adding chars 0x66 0x0 (l->u = False) (u->l = False)
Adding chars 0x67 0x0 (l->u = False) (u->l = False)
Adding chars 0x68 0x0 (l->u = False) (u->l = False)
Adding chars 0x69 0x0 (l->u = False) (u->l = False)
Adding chars 0x6a 0x0 (l->u = False) (u->l = False)
Adding chars 0x6b 0x0 (l->u = False) (u->l = False)
Adding chars 0x6c 0x0 (l->u = False) (u->l = False)
Adding chars 0x6d 0x0 (l->u = False) (u->l = False)
Adding chars 0x6e 0x0 (l->u = False) (u->l = False)
Adding chars 0x6f 0x0 (l->u = False) (u->l = False)
Adding chars 0x70 0x0 (l->u = False) (u->l = False)
Adding chars 0x71 0x0 (l->u = False) (u->l = False)
Adding chars 0x72 0x0 (l->u = False) (u->l = False)
Adding chars 0x73 0x0 (l->u = False) (u->l = False)
Adding chars 0x74 0x0 (l->u = False) (u->l = False)
Adding chars 0x75 0x0 (l->u = False) (u->l = False)
Adding chars 0x76 0x0 (l->u = False) (u->l = False)
Adding chars 0x77 0x0 (l->u = False) (u->l = False)
Adding chars 0x78 0x0 (l->u = False) (u->l = False)
Adding chars 0x79 0x0 (l->u = False) (u->l = False)
Adding chars 0x7a 0x0 (l->u = False) (u->l = False)
Adding chars 0x7b 0x0 (l->u = False) (u->l = False)
Adding chars 0x7d 0x0 (l->u = False) (u->l = False)
Adding chars 0x7e 0x0 (l->u = False) (u->l = False)
Initialising global parameters
params.c:pm_process() - Processing configuration file "/etc/samba/smb.conf"
Processing section "[global]"
doing parameter workgroup = LIMBACH
doing parameter netbios name = LFSPITPDC
handle_netbios_name: set global_myname to: L

[Samba] cupsaddsmb rpcclient error

2002-10-24 Thread Daniel T. Gynn

I am running samba 2.2.6 and cups 1.1.16.  I can't get cupsaddsmb to
complete successfully.  I'm at an end here, I can't think of anything
else to try after 2 weeks of searching the web.  It copies the drivers
to the print$ share directory, however the SetPrinter command fails on
the rpcclient command and it returns with an NT_STATUS_UNSUCCESSFUL
error.  At the SetPrinter failure, it returns an WERR_ACCESS_DENIED, but
I'm not sure what permissions it's looking for or where it wants them
set.  I'm attaching the results of rpcclient with debug level 100.


Serverzone is 14400
Adding chars 0x0 0x0 (l->u = False) (u->l = False)
Adding chars 0x21 0x0 (l->u = False) (u->l = False)
Adding chars 0x23 0x0 (l->u = False) (u->l = False)
Adding chars 0x24 0x0 (l->u = False) (u->l = False)
Adding chars 0x25 0x0 (l->u = False) (u->l = False)
Adding chars 0x26 0x0 (l->u = False) (u->l = False)
Adding chars 0x27 0x0 (l->u = False) (u->l = False)
Adding chars 0x28 0x0 (l->u = False) (u->l = False)
Adding chars 0x29 0x0 (l->u = False) (u->l = False)
Adding chars 0x2d 0x0 (l->u = False) (u->l = False)
Adding chars 0x2e 0x0 (l->u = False) (u->l = False)
Adding chars 0x30 0x0 (l->u = False) (u->l = False)
Adding chars 0x31 0x0 (l->u = False) (u->l = False)
Adding chars 0x32 0x0 (l->u = False) (u->l = False)
Adding chars 0x33 0x0 (l->u = False) (u->l = False)
Adding chars 0x34 0x0 (l->u = False) (u->l = False)
Adding chars 0x35 0x0 (l->u = False) (u->l = False)
Adding chars 0x36 0x0 (l->u = False) (u->l = False)
Adding chars 0x37 0x0 (l->u = False) (u->l = False)
Adding chars 0x38 0x0 (l->u = False) (u->l = False)
Adding chars 0x39 0x0 (l->u = False) (u->l = False)
Adding chars 0x40 0x0 (l->u = False) (u->l = False)
Adding chars 0x41 0x0 (l->u = False) (u->l = False)
Adding chars 0x42 0x0 (l->u = False) (u->l = False)
Adding chars 0x43 0x0 (l->u = False) (u->l = False)
Adding chars 0x44 0x0 (l->u = False) (u->l = False)
Adding chars 0x45 0x0 (l->u = False) (u->l = False)
Adding chars 0x46 0x0 (l->u = False) (u->l = False)
Adding chars 0x47 0x0 (l->u = False) (u->l = False)
Adding chars 0x48 0x0 (l->u = False) (u->l = False)
Adding chars 0x49 0x0 (l->u = False) (u->l = False)
Adding chars 0x4a 0x0 (l->u = False) (u->l = False)
Adding chars 0x4b 0x0 (l->u = False) (u->l = False)
Adding chars 0x4c 0x0 (l->u = False) (u->l = False)
Adding chars 0x4d 0x0 (l->u = False) (u->l = False)
Adding chars 0x4e 0x0 (l->u = False) (u->l = False)
Adding chars 0x4f 0x0 (l->u = False) (u->l = False)
Adding chars 0x50 0x0 (l->u = False) (u->l = False)
Adding chars 0x51 0x0 (l->u = False) (u->l = False)
Adding chars 0x52 0x0 (l->u = False) (u->l = False)
Adding chars 0x53 0x0 (l->u = False) (u->l = False)
Adding chars 0x54 0x0 (l->u = False) (u->l = False)
Adding chars 0x55 0x0 (l->u = False) (u->l = False)
Adding chars 0x56 0x0 (l->u = False) (u->l = False)
Adding chars 0x57 0x0 (l->u = False) (u->l = False)
Adding chars 0x58 0x0 (l->u = False) (u->l = False)
Adding chars 0x59 0x0 (l->u = False) (u->l = False)
Adding chars 0x5a 0x0 (l->u = False) (u->l = False)
Adding chars 0x5e 0x0 (l->u = False) (u->l = False)
Adding chars 0x5f 0x0 (l->u = False) (u->l = False)
Adding chars 0x60 0x0 (l->u = False) (u->l = False)
Adding chars 0x61 0x0 (l->u = False) (u->l = False)
Adding chars 0x62 0x0 (l->u = False) (u->l = False)
Adding chars 0x63 0x0 (l->u = False) (u->l = False)
Adding chars 0x64 0x0 (l->u = False) (u->l = False)
Adding chars 0x65 0x0 (l->u = False) (u->l = False)
Adding chars 0x66 0x0 (l->u = False) (u->l = False)
Adding chars 0x67 0x0 (l->u = False) (u->l = False)
Adding chars 0x68 0x0 (l->u = False) (u->l = False)
Adding chars 0x69 0x0 (l->u = False) (u->l = False)
Adding chars 0x6a 0x0 (l->u = False) (u->l = False)
Adding chars 0x6b 0x0 (l->u = False) (u->l = False)
Adding chars 0x6c 0x0 (l->u = False) (u->l = False)
Adding chars 0x6d 0x0 (l->u = False) (u->l = False)
Adding chars 0x6e 0x0 (l->u = False) (u->l = False)
Adding chars 0x6f 0x0 (l->u = False) (u->l = False)
Adding chars 0x70 0x0 (l->u = False) (u->l = False)
Adding chars 0x71 0x0 (l->u = False) (u->l = False)
Adding chars 0x72 0x0 (l->u = False) (u->l = False)
Adding chars 0x73 0x0 (l->u = False) (u->l = False)
Adding chars 0x74 0x0 (l->u = False) (u->l = False)
Adding chars 0x75 0x0 (l->u = False) (u->l = False)
Adding chars 0x76 0x0 (l->u = False) (u->l = False)
Adding chars 0x77 0x0 (l->u = False) (u->l = False)
Adding chars 0x78 0x0 (l->u = False) (u->l = False)
Adding chars 0x79 0x0 (l->u = False) (u->l = False)
Adding chars 0x7a 0x0 (l->u = False) (u->l = False)
Adding chars 0x7b 0x0 (l->u = False) (u->l = False)
Adding chars 0x7d 0x0 (l->u = False) (u->l = False)
Adding chars 0x7e 0x0 (l->u = False) (u->l = False)
Initialising global parameters
params.c:pm_process() - Processing configuration file "/etc/samba/smb.conf"
Processing section "[global]"
doing parameter workgroup = LIMBACH
doing parameter netbios name = LFSPITPDC
handle_netbios_name: set global_myname to: L

[Samba] cupsaddsmb rpcclient error

2002-10-23 Thread Daniel T. Gynn
_io_pol_hnd printer handle
0018 data1: 
001c data2: 
0020 data3: 
0022 data4: 
0024 data5: 00 00 00 00 00 00 00 00 
002c status: WERR_OK
write_socket(3,45)
write_socket(3,45) wrote 45
got smb length of 35
size=35
smb_com=0x4
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=1
smb_tid=1
smb_pid=3162
smb_uid=100
smb_mid=1
smt_wct=0
smb_bcc=0
result was NT_STATUS_UNSUCCESSFUL


-- 
---
Daniel T. Gynn
RHCE #806200978201621
Essential Systems, Inc.
412-931-5403 ext. 1
fax: 412-931-5425
[EMAIL PROTECTED]
GnuPG Key http://www.essensys.com/~dan/gpgring.asc
Fingerprint: 1341 3132 FDAC C415 8F5F 03D7 FD4E 166B FA90 58E1



signature.asc
Description: This is a digitally signed message part


Re: [Samba] SetPrinter call failed

2002-10-21 Thread Daniel T. Gynn
I saw something about that before, what would the absolute path be for a
network printer?  In anycase, does the rpcclient setdriver command use
that?  Plus, the commands work from the command line.

On Mon, 2002-10-21 at 17:17, linux power wrote:
> Have you tried to replace -P %p in the print command
> line in the printer share with the absolute path to
> the printer? 
> 
> 
> 
> --- Kurt Pfeifle <[EMAIL PROTECTED]> skrev: > 
> > "Daniel T. Gynn wrote on Samba-Digest:
> > 
> >  > Message: 16
> >  > From: "Daniel T. Gynn" <[EMAIL PROTECTED]>
> >  > To: [EMAIL PROTECTED]
> >  > Date: 21 Oct 2002 15:59:18 -0400
> >  > Subject: [Samba] SetPrinter call failed
> >  >
> >  >
> >  > I am having trouble getting the cupsaddsmb script
> > to work to add the
> >  > drivers.  Everything seems to work (it copies the
> > drivers to the correct
> >  > directories), but I keep getting the result
> > NT_STATUS_UNSUCCESSFUL error
> >  > message on the rpcclient setdriver command.  When
> > trying to connect to
> >  > the printer from a 2K client, I see a
> > client-error-not-found error in
> >  > the log.
> > 
> > Hi Daniel,
> > 
> > have you told CUPS to generate a "printcap" by
> > setting
> > 
> > "Printcap /etc/printcap"
> > 
> > in cupsd.conf?
> > 
> > Cheers,
> > Kurt
> > 
> > 
> >  > I can't seem to find anything in the mailing list
> > logs or the howto
> >  > docs.  I have updated to cups 1.1.16 and samba
> > 2.2.6, but that hasn't
> >  > helped any.
> >  >
> >  > My client error line is:
> >  >
> >  > [2002/10/15 16:29:40, 0]
> > printing/print_cups.c:cups_printername_ok(290)
> >  >   Unable to get printer status for
> >  > ::{2227a280-3aea-1069-a2de-08002b30309d} -
> > client-error-not-found
> >  > [2002/10/15 16:29:40, 0]
> > smbd/service.c:make_connection(251)
> >  >   ees-9905472 (172.24.151.53) couldn't find
> > service
> >  > ::{2227a280-3aea-1069-a2de-08002b30309d}
> >  >
> >  >
> >  > Here is the results of the rpcclient in debug
> > level 3:
> >  >
> >  > Initialising global parameters
> >  > params.c:pm_process() - Processing configuration
> > file
> >  > "/etc/samba/smb.conf"
> >  > Processing section "[global]"
> >  > added interface ip=172.24.150.210
> > bcast=172.24.151.255
> >  > nmask=255.255.254.0
> >  > resolve_lmhosts: Attempting lmhosts lookup for
> > name localhost<0x20>
> >  > Connecting to host=localhost share=IPC$
> >  > Connecting to 127.0.0.1 at port 445
> >  > error connecting to 127.0.0.1:445 (Connection
> > refused)
> >  > Connecting to 127.0.0.1 at port 139
> >  > lsa_io_sec_qos: length c does not match size 8
> >  > cmd = setdriver business4 business4
> >  > SetPrinter call failed!
> >  > result was NT_STATUS_UNSUCCESSFUL
> >  >
> >  >
> >  >
> >  > Here is my smb.conf:
> >  >
> >  > [global]
> >  > workgroup = LIMBACH
> >  > netbios name = LFSPITPDC
> >  > server string = LFS Samba Server
> >  > encrypt passwords = Yes
> >  > obey pam restrictions = Yes
> >  > pam password change = Yes
> >  > passwd program = /usr/bin/passwd %u
> >  > passwd chat = *New*password* %n\n
> > *Retype*new*password* %n\n
> >  >
> >
> *passwd:*all*authentication*tokens*updated*successfully*
> >  > unix password sync = Yes
> >  > log file = /var/log/samba/%m.log
> >  > max log size = 0
> >  > time server = Yes
> >  > socket options = TCP_NODELAY
> > SO_RCVBUF=8192 SO_SNDBUF=8192
> >  > printcap name = cups
> >  > addprinter command = /usr/sbin/cupsaddsmb
> >  > domain admin group = ntadmin
> >  > add user script =
> > /usr/local/bin/newMachine.sh %u
> >  > logon path = \\172.24.150.210\profiles\%U
> >  > logon drive = I:
> >  > logon home = \\172.24.150.210\%U
> >  > domain logons = Yes
> >  > os level = 64
> >  > preferred master = Yes
> >  > domain master = Yes
> >  > dns proxy = No
> >  > wins server

Re: [Samba] SetPrinter call failed

2002-10-21 Thread Daniel T. Gynn
Yes, I have 
Printcap /etc/printcap
in the cupsd.conf file.  And it is generating new printcaps.  The
printers are showing up fine in the samba browse list and I can print to
them from the Linux box.


On Mon, 2002-10-21 at 16:48, Kurt Pfeifle wrote:
> 
> "Daniel T. Gynn wrote on Samba-Digest:
> 
>  > Message: 16
>  > From: "Daniel T. Gynn" <[EMAIL PROTECTED]>
>  > To: [EMAIL PROTECTED]
>  > Date: 21 Oct 2002 15:59:18 -0400
>  > Subject: [Samba] SetPrinter call failed
>  >
>  >
>  > I am having trouble getting the cupsaddsmb script to work to add the
>  > drivers.  Everything seems to work (it copies the drivers to the correct
>  > directories), but I keep getting the result NT_STATUS_UNSUCCESSFUL error
>  > message on the rpcclient setdriver command.  When trying to connect to
>  > the printer from a 2K client, I see a client-error-not-found error in
>  > the log.
> 
> Hi Daniel,
> 
> have you told CUPS to generate a "printcap" by setting
> 
> "Printcap /etc/printcap"
> 
> in cupsd.conf?
> 
> Cheers,
> Kurt
> 
> 
>  > I can't seem to find anything in the mailing list logs or the howto
>  > docs.  I have updated to cups 1.1.16 and samba 2.2.6, but that hasn't
>  > helped any.
>  >
>  > My client error line is:
>  >
>  > [2002/10/15 16:29:40, 0] printing/print_cups.c:cups_printername_ok(290)
>  >   Unable to get printer status for
>  > ::{2227a280-3aea-1069-a2de-08002b30309d} - client-error-not-found
>  > [2002/10/15 16:29:40, 0] smbd/service.c:make_connection(251)
>  >   ees-9905472 (172.24.151.53) couldn't find service
>  > ::{2227a280-3aea-1069-a2de-08002b30309d}
>  >
>  >
>  > Here is the results of the rpcclient in debug level 3:
>  >
>  > Initialising global parameters
>  > params.c:pm_process() - Processing configuration file
>  > "/etc/samba/smb.conf"
>  > Processing section "[global]"
>  > added interface ip=172.24.150.210 bcast=172.24.151.255
>  > nmask=255.255.254.0
>  > resolve_lmhosts: Attempting lmhosts lookup for name localhost<0x20>
>  > Connecting to host=localhost share=IPC$
>  > Connecting to 127.0.0.1 at port 445
>  > error connecting to 127.0.0.1:445 (Connection refused)
>  > Connecting to 127.0.0.1 at port 139
>  > lsa_io_sec_qos: length c does not match size 8
>  > cmd = setdriver business4 business4
>  > SetPrinter call failed!
>  > result was NT_STATUS_UNSUCCESSFUL
>  >
>  >
>  >
>  > Here is my smb.conf:
>  >
>  > [global]
>  > workgroup = LIMBACH
>  > netbios name = LFSPITPDC
>  > server string = LFS Samba Server
>  > encrypt passwords = Yes
>  > obey pam restrictions = Yes
>  > pam password change = Yes
>  > passwd program = /usr/bin/passwd %u
>  > passwd chat = *New*password* %n\n *Retype*new*password* %n\n
>  > *passwd:*all*authentication*tokens*updated*successfully*
>  > unix password sync = Yes
>  > log file = /var/log/samba/%m.log
>  > max log size = 0
>  > time server = Yes
>  > socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
>  > printcap name = cups
>  > addprinter command = /usr/sbin/cupsaddsmb
>  > domain admin group = ntadmin
>  > add user script = /usr/local/bin/newMachine.sh %u
>  > logon path = \\172.24.150.210\profiles\%U
>  > logon drive = I:
>  > logon home = \\172.24.150.210\%U
>  > domain logons = Yes
>  > os level = 64
>  > preferred master = Yes
>  > domain master = Yes
>  > dns proxy = No
>  > wins server = 192.168.110.163
>  > ldap port = 389
>  > ldap suffix = "ou=smb, o=limbach, c=us"
>  > ldap admin dn = "uid=manager, o=limbach, c=us"
>  > ldap ssl = no
>  > admin users = @ntadmin
>  > printer admin = @ntadmin
>  > hosts allow = 172.24.150. 172.24.151. 127.0.0.1 172.29.175.
>  > 172.24.155. 172.24.154. 172.29.140.
>  > printing = cups
>  > print command = /usr/bin/lpr -r -P%p %s
>  > lpq command = /usr/bin/lpq -P%p
>  > lprm command = /usr/bin/lprm -P%p %j
>  >
>  > [homes]
>  > comment = Home Directory of %u
>  > path = /home/%u
>  > valid users = %S
>  > read only = No
>  > create mask =