[Samba] HP Deskjet 6940 and 6988

2008-03-16 Thread Glenn Arnold
Hello all,
 
Does anybody share HP Deskjet 6940 and HP Deskjet 6988 off a samba
server successfully?  I currently using Samba versions 3.0.24 Ubuntu
Fiesty Fawn in my production environment.  I also the issue occurs on my
laptop which is running Gutsy Gibbon 7.10 which uses Samba 3.0.26.  The
issue is when my users try to print multiple copies they can not through
the samba server.  These printers are hooked directly to the network and
cups is printing directly to the print through raw queue and using
sockets.  When I did further investigation I found with the driver
initialized if I click on printing preferences and click Paper\Quality
Tab I get the following message Function address 0x77c47efe caused a
protection fault.  (exception code 0xc0005)  The application
property sheet page(s) may not function properly.  I tried adding the
driver with default devmode = yes which I have had to use in the past to
get some HP Deskjet printers to work.  Here is smb.conf for my Gutsy
setup.  Any ideas on how to troubleshoot this further?  I will try to
install 3.0.28 with a vm session of Hardy ubuntu and see if I get the
same results.
 
Thanks 
-Glenn
 
[global]
 
## Browsing/Identification ###
 
workgroup = HACKERVILLE
 
server string = %h server (Samba, Ubuntu)
 
log file = /var/log/samba/log.%m
 
# Put a capping on the size of the log files (in Kb).
max log size = 1000
 
# If you want Samba to only log through syslog then set the following
# parameter to 'yes'.
;   syslog only = no
 
syslog = 0
 
panic action = /usr/share/samba/panic-action %d
 
 
security = user
 
encrypt passwords = true
 
passdb backend = tdbsam
 
obey pam restrictions = yes
 
;   guest account = nobody
invalid users = root
 
load printers = yes
printcap name = cups
printer admin = @lpadmin garnold
 
 
 Misc 
 
# Using the following line enables you to customise your configuration
# on a per machine basis. The %m gets replaced with the netbios name
# of the machine that is connecting
;   include = /home/samba/etc/smb.conf.%m
 
username map = /etc/samba/smbusers
 
 
 [homes]
comment = Home Directories
browseable = no
valid users = %S
writable = yes
create mask = 0770
 
 
[printers]
comment = All Printers
browseable = no
path = /var/spool/samba
printable = yes
public = no
writable = no
create mode = 0700
 
 [print$]
comment = Printer Drivers
path = /var/lib/samba/printers
browseable = yes
read only = yes
default devmode = yes
;   guest ok = no
# Uncomment to allow remote administration of Windows print drivers.
# Replace 'ntadmin' with the name of the group your admin users are
# members of.
   write list = root, garnold, @ntadmin
 
 
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] HP Deskjet 6940 and 6988

2008-03-16 Thread Adam Tauno Williams
 Does anybody share HP Deskjet 6940 and HP Deskjet 6988 off a samba
 server successfully? 

Yes, we have over a dozen HP6940s shared from a Samba/CUPS print server.

 issue is when my users try to print multiple copies they can not through
 the samba server.

Yep, never been able to make multiple copies work.  Quite frustrating.

 These printers are hooked directly to the network and
 cups is printing directly to the print through raw queue and using
 sockets.  

Yep, same here. 

 When I did further investigation I found with the driver
 initialized if I click on printing preferences and click Paper\Quality
 Tab I get the following message Function address 0x77c47efe caused a
 protection fault.  (exception code 0xc0005)  The application
 property sheet page(s) may not function properly.  

Yep, but I think *all* print drivers crash in such a manner when used
with a Samba printer server.  At least all the HP drivers crash when
accessing advanced features,  as do the drivers for Lanier, Ricoh, and
Toshiba document centers.

 I tried adding the
 driver with default devmode = yes which I have had to use in the past to
 get some HP Deskjet printers to work.  

No, that doesn't help.

By, to work you mean they don't print at all?  Ours print just fine
except from certain versions of Acrobat Reader.  Just no multiple copies
and the advanced features tab of the printer dialog is inaccessible.
However, neither of those features work with most [all?] printers in a
Samba/CUPS rig.

There have been innumerable posts around the internet about the multiple
copies issues.  I've never found a resolution. 

 I will try to
 install 3.0.28 with a vm session of Hardy ubuntu and see if I get the
 same results.

You will.

-- 
Adam Tauno Williams, Network  Systems Administrator
Consultant - http://www.whitemiceconsulting.com
Developer - http://www.opengroupware.org

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


RE: [Samba] HP Deskjet 6940 and 6988

2008-03-16 Thread Glenn Arnold
By, to work you mean they don't print at all?  Ours print just fine
except from certain versions of Acrobat Reader.  Just no multiple
copies
and the advanced features tab of the printer dialog is inaccessible.
However, neither of those features work with most [all?] printers in a
Samba/CUPS rig.

Yes, the printers print fine, just can not print multiple pages. What is
interesting with Adobe reader 8.1 opening a pdf document we can print
multiple pages.

Yep, but I think *all* print drivers crash in such a manner when used
with a Samba printer server.  At least all the HP drivers crash when
accessing advanced features,  as do the drivers for Lanier, Ricoh, and
Toshiba document centers.

When I have problems like this it is usually with Inkjet printers.  I
have had success with Ricoh and Xerox multifunction copiers.  Since
samba you have manual setup the copier features to get the copiers to
work.  For must part I have had success Canon copiers except send print
jobs to the mailbox on copiers.

I have tried Hardy Heron 8.04 which has samba 3.0.28 same result.  Well
time to try another distro of Linux.  I will download Centos see if it
does the same thing.

Thanks
-Glenn



-Original Message-
From: Adam Tauno Williams [mailto:[EMAIL PROTECTED] 
Sent: Sunday, March 16, 2008 8:40 PM
To: samba
Subject: Re: [Samba] HP Deskjet 6940 and 6988

 Does anybody share HP Deskjet 6940 and HP Deskjet 6988 off a samba
 server successfully? 

Yes, we have over a dozen HP6940s shared from a Samba/CUPS print server.

 issue is when my users try to print multiple copies they can not
through
 the samba server.

Yep, never been able to make multiple copies work.  Quite frustrating.

 These printers are hooked directly to the network and
 cups is printing directly to the print through raw queue and using
 sockets.  

Yep, same here. 

 When I did further investigation I found with the driver
 initialized if I click on printing preferences and click Paper\Quality
 Tab I get the following message Function address 0x77c47efe caused a
 protection fault.  (exception code 0xc0005)  The application
 property sheet page(s) may not function properly.  

Yep, but I think *all* print drivers crash in such a manner when used
with a Samba printer server.  At least all the HP drivers crash when
accessing advanced features,  as do the drivers for Lanier, Ricoh, and
Toshiba document centers.

 I tried adding the
 driver with default devmode = yes which I have had to use in the past
to
 get some HP Deskjet printers to work.  

No, that doesn't help.

By, to work you mean they don't print at all?  Ours print just fine
except from certain versions of Acrobat Reader.  Just no multiple copies
and the advanced features tab of the printer dialog is inaccessible.
However, neither of those features work with most [all?] printers in a
Samba/CUPS rig.

There have been innumerable posts around the internet about the multiple
copies issues.  I've never found a resolution. 

 I will try to
 install 3.0.28 with a vm session of Hardy ubuntu and see if I get the
 same results.

You will.

-- 
Adam Tauno Williams, Network  Systems Administrator
Consultant - http://www.whitemiceconsulting.com
Developer - http://www.opengroupware.org

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


Re: [Samba] HP Deskjet 6940 and 6988

2008-03-16 Thread Michael Heydon

Adam Tauno Williams wrote:

Does anybody share HP Deskjet 6940 and HP Deskjet 6988 off a samba
server successfully? 


snip

When I did further investigation I found with the driver
initialized if I click on printing preferences and click Paper\Quality
Tab I get the following message Function address 0x77c47efe caused a
protection fault.  (exception code 0xc0005)  The application
property sheet page(s) may not function properly.  



Yep, but I think *all* print drivers crash in such a manner when used
with a Samba printer server.  At least all the HP drivers crash when
accessing advanced features,  as do the drivers for Lanier, Ricoh, and
Toshiba document centers.

snip
  
This certainly isn't the case here. We have about a dozen Lexmark 
printers, about half a dozen HP LJ2430s and LJ4250s and one Konica 
copier. All of them work fine, I can access all tabs on the driver 
settings (the HP ones are a little slow to come up but they do work). 
Are you using point-n-print or are you loading drivers onto each machine?


*Michael Heydon - IT Administrator *
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

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


Re: [Samba] HP Deskjet 6940 and 6988

2008-03-16 Thread Ryan Novosielski
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Adam Tauno Williams wrote:
 Does anybody share HP Deskjet 6940 and HP Deskjet 6988 off a samba
 server successfully? 
 
 Yes, we have over a dozen HP6940s shared from a Samba/CUPS print server.
 
 issue is when my users try to print multiple copies they can not through
 the samba server.
 
 Yep, never been able to make multiple copies work.  Quite frustrating.
 
 These printers are hooked directly to the network and
 cups is printing directly to the print through raw queue and using
 sockets.  
 
 Yep, same here. 
 
 When I did further investigation I found with the driver
 initialized if I click on printing preferences and click Paper\Quality
 Tab I get the following message Function address 0x77c47efe caused a
 protection fault.  (exception code 0xc0005)  The application
 property sheet page(s) may not function properly.  
 
 Yep, but I think *all* print drivers crash in such a manner when used
 with a Samba printer server.  At least all the HP drivers crash when
 accessing advanced features,  as do the drivers for Lanier, Ricoh, and
 Toshiba document centers.

Ditto for Xerox. Actually, the Xerox drivers used to cause signal 11 in
smbd too, but HP relased a patch for the CIFS Server version I'm using.
Not sure where/if that was a problem in Samba as well.

 I tried adding the
 driver with default devmode = yes which I have had to use in the past to
 get some HP Deskjet printers to work.  
 
 No, that doesn't help.
 
 By, to work you mean they don't print at all?  Ours print just fine
 except from certain versions of Acrobat Reader.  Just no multiple copies
 and the advanced features tab of the printer dialog is inaccessible.
 However, neither of those features work with most [all?] printers in a
 Samba/CUPS rig.
 
 There have been innumerable posts around the internet about the multiple
 copies issues.  I've never found a resolution. 
 
 I will try to
 install 3.0.28 with a vm session of Hardy ubuntu and see if I get the
 same results.
 
 You will.
 


- --
  _  _ _  _ ___  _  _  _
 |Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Systems Programmer II
 |$| |__| |  | |__/ | \| _| |[EMAIL PROTECTED] - 973/972.0922 (2-0922)
 \__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFH3c0zmb+gadEcsb4RAhoQAKCJd2KvEinVgokJ5OFgNR4gTvcuvACfYTLp
P8OcM6HbALc70ysUeeuCRxY=
=DUH6
-END PGP SIGNATURE-
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

RE: [Samba] HP Deskjet 6940 and 6988

2008-03-16 Thread Glenn Arnold
I have had no problems with HP Laser printers or Lexmark Laser printers
with the point-n-print on Samba.  The only time I have had problems has
been HP Deskjet or Business jet printers and Canon copiers detecting the
features of the copier.  On the Canon Copier I have worked out most of
the problems with manual setting the options of the copier on the
servers.

-Glenn

-Original Message-
From: Michael Heydon [mailto:[EMAIL PROTECTED] 
Sent: Sunday, March 16, 2008 9:28 PM
To: [EMAIL PROTECTED]
Cc: samba
Subject: Re: [Samba] HP Deskjet 6940 and 6988

Adam Tauno Williams wrote:
 Does anybody share HP Deskjet 6940 and HP Deskjet 6988 off a samba
 server successfully? 
 
 snip
 When I did further investigation I found with the driver
 initialized if I click on printing preferences and click
Paper\Quality
 Tab I get the following message Function address 0x77c47efe caused a
 protection fault.  (exception code 0xc0005)  The application
 property sheet page(s) may not function properly.  
 

 Yep, but I think *all* print drivers crash in such a manner when used
 with a Samba printer server.  At least all the HP drivers crash when
 accessing advanced features,  as do the drivers for Lanier, Ricoh, and
 Toshiba document centers.

 snip
   
This certainly isn't the case here. We have about a dozen Lexmark 
printers, about half a dozen HP LJ2430s and LJ4250s and one Konica 
copier. All of them work fine, I can access all tabs on the driver 
settings (the HP ones are a little slow to come up but they do work). 
Are you using point-n-print or are you loading drivers onto each
machine?

*Michael Heydon - IT Administrator *
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

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


[Samba] HP Deskjet 6940 and 6988

2008-03-16 Thread Glenn Arnold
I tried Centos 5.1 samba version 3.0.25b with my samba smb.conf and I
still get the General Protection fault when I click on the Paper\Quality
tab under Print Preferences on the HP Deskjet 6940.  Here is the config
that I used on Ubuntu and Centos. I just want to make sure that I have
everything configured right with samba.  Will samba 3.2 fix this issue?

-Glenn

[global]
 
## Browsing/Identification ###
 
workgroup = HACKERVILLE
 
server string = %h server (Samba, Ubuntu)
 
log file = /var/log/samba/log.%m
 
# Put a capping on the size of the log files (in Kb).
max log size = 1000
 
# If you want Samba to only log through syslog then set the following #
parameter to 'yes'.
;   syslog only = no
 
syslog = 0
 
panic action = /usr/share/samba/panic-action %d
 
 
security = user
 
encrypt passwords = true
 
passdb backend = tdbsam
 
obey pam restrictions = yes
 
;   guest account = nobody
invalid users = root
 
load printers = yes
printcap name = cups
printer admin = @lpadmin garnold
 
 
 Misc 
 
# Using the following line enables you to customise your configuration #
on a per machine basis. The %m gets replaced with the netbios name # of
the machine that is connecting
;   include = /home/samba/etc/smb.conf.%m
 
username map = /etc/samba/smbusers
 
 
 [homes]
comment = Home Directories
browseable = no
valid users = %S
writable = yes
create mask = 0770
 
 
[printers]
comment = All Printers
browseable = no
path = /var/spool/samba
printable = yes
public = no
writable = no
create mode = 0700
 
 [print$]
comment = Printer Drivers
path = /var/lib/samba/printers
browseable = yes
read only = yes
default devmode = yes
;   guest ok = no
# Uncomment to allow remote administration of Windows print drivers. #
Replace 'ntadmin' with the name of the group your admin users are #
members of.
   write list = root, garnold, @ntadmin


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


[SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-252-gc2b2a93

2008-03-16 Thread Volker Lendecke
The branch, v3-2-test has been updated
   via  c2b2a9303d9c84ba4e059f13de9ccc401d08bd59 (commit)
  from  471b1b0c58bc2def5d2fe9d98401def34724d447 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test


- Log -
commit c2b2a9303d9c84ba4e059f13de9ccc401d08bd59
Author: Volker Lendecke [EMAIL PROTECTED]
Date:   Sun Mar 16 11:55:59 2008 +0100

Need to close the /dev/zero fd

---

Summary of changes:
 source/modules/vfs_aio_fork.c |2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/modules/vfs_aio_fork.c b/source/modules/vfs_aio_fork.c
index 21f63d0..28428f2 100644
--- a/source/modules/vfs_aio_fork.c
+++ b/source/modules/vfs_aio_fork.c
@@ -56,6 +56,8 @@ static struct mmap_area *mmap_area_init(TALLOC_CTX *mem_ctx, 
size_t size)
goto fail;
}
 
+   close(fd);
+
result-size = size;
talloc_set_destructor(result, mmap_area_destructor);
 


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-253-g2fd2542

2008-03-16 Thread Jeremy Allison
The branch, v3-2-test has been updated
   via  2fd25423700cb60f20a8b8d6613279cb06fb518d (commit)
  from  c2b2a9303d9c84ba4e059f13de9ccc401d08bd59 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test


- Log -
commit 2fd25423700cb60f20a8b8d6613279cb06fb518d
Author: Volker Lendecke [EMAIL PROTECTED]
Date:   Sun Mar 16 12:23:44 2008 -0700

Fix Coverity ID 567

Jeremy, please push it if you like it and mark the bug as fixed on the 
Coverity
site.

Thanks,

Volker

---

Summary of changes:
 source/lib/util_sock.c |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/lib/util_sock.c b/source/lib/util_sock.c
index 2a65943..6562513 100644
--- a/source/lib/util_sock.c
+++ b/source/lib/util_sock.c
@@ -63,7 +63,7 @@ bool is_ipaddress(const char *str)
sizeof(addr)));
sp = addr;
}
-   ret = inet_pton(AF_INET6, addr, dest6);
+   ret = inet_pton(AF_INET6, sp, dest6);
if (ret  0) {
return true;
}


-- 
Samba Shared Repository


Build status as of Mon Mar 17 00:00:01 2008

2008-03-16 Thread build
URL: http://build.samba.org/

--- /home/build/master/cache/broken_results.txt.old 2008-03-16 
00:00:56.0 +
+++ /home/build/master/cache/broken_results.txt 2008-03-17 00:00:26.0 
+
@@ -1,4 +1,4 @@
-Build status as of Sun Mar 16 00:00:02 2008
+Build status as of Mon Mar 17 00:00:01 2008
 
 Build counts:
 Tree Total  Broken Panic 
@@ -11,7 +11,7 @@
 lorikeet-heimdal 23 19 0 
 pidl 17 4  0 
 ppp  10 0  0 
-rsync30 15 0 
+rsync30 16 0 
 samba-docs   0  0  0 
 samba-gtk4  4  0 
 samba_3_2_test 29 25 0 


[SCM] Samba Shared Repository - branch v4-0-test updated - release-4-0-0alpha2-1304-gf14737e

2008-03-16 Thread Andrew Bartlett
The branch, v4-0-test has been updated
   via  f14737e4d2040d2f401a3b20c5e78d0d793cfc3a (commit)
  from  218ec98a1694080748d1ac12baa90ffcda364833 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v4-0-test


- Log -
commit f14737e4d2040d2f401a3b20c5e78d0d793cfc3a
Author: Andrew Bartlett [EMAIL PROTECTED]
Date:   Mon Mar 17 15:22:52 2008 +1100

Don't require users of credentials.h to have krb5.h and gssapi.h

Rather than require users of Samba4's headers to have krb5-devel
installed (presumably in their system paths), don't expose the minor
functions which require this by default.

Andrew Bartlett

---

Summary of changes:
 source/auth/credentials/credentials.h  |5 -
 source/auth/credentials/credentials_krb5.c |8 
 source/auth/credentials/credentials_krb5.h |   14 --
 source/auth/kerberos/kerberos_util.c   |8 
 4 files changed, 24 insertions(+), 11 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/auth/credentials/credentials.h 
b/source/auth/credentials/credentials.h
index a3da5c6..1b205c6 100644
--- a/source/auth/credentials/credentials.h
+++ b/source/auth/credentials/credentials.h
@@ -128,7 +128,10 @@ struct cli_credentials {
 
 struct ldb_context;
 struct loadparm_context;
-#include auth/credentials/credentials_krb5.h
+struct ccache_container;
+
+struct gssapi_creds_container;
+
 #include auth/credentials/credentials_proto.h
 
 #endif /* __CREDENTIALS_H__ */
diff --git a/source/auth/credentials/credentials_krb5.c 
b/source/auth/credentials/credentials_krb5.c
index 90b196e..52bf9f1 100644
--- a/source/auth/credentials/credentials_krb5.c
+++ b/source/auth/credentials/credentials_krb5.c
@@ -400,10 +400,10 @@ int cli_credentials_get_client_gss_creds(struct 
cli_credentials *cred,
to the credentials system.
 */
 
-int cli_credentials_set_client_gss_creds(struct cli_credentials *cred, 
-struct loadparm_context *lp_ctx,
-gss_cred_id_t gssapi_cred,
-enum credentials_obtained obtained) 
+ int cli_credentials_set_client_gss_creds(struct cli_credentials *cred, 
+ struct loadparm_context *lp_ctx,
+ gss_cred_id_t gssapi_cred,
+ enum credentials_obtained obtained) 
 {
int ret;
OM_uint32 maj_stat, min_stat;
diff --git a/source/auth/credentials/credentials_krb5.h 
b/source/auth/credentials/credentials_krb5.h
index b963fbd..aaa7d7f 100644
--- a/source/auth/credentials/credentials_krb5.h
+++ b/source/auth/credentials/credentials_krb5.h
@@ -26,10 +26,20 @@
 #include gssapi/gssapi.h
 #include krb5.h
 
-struct ccache_container;
-
 struct gssapi_creds_container {
gss_cred_id_t creds;
 };
 
+/* Manually prototyped here to avoid needing gss headers in most callers */
+int cli_credentials_set_client_gss_creds(struct cli_credentials *cred, 
+struct loadparm_context *lp_ctx,
+gss_cred_id_t gssapi_cred,
+enum credentials_obtained obtained);
+
+/* Manually prototyped here to avoid needing krb5 headers in most callers */
+krb5_error_code principal_from_credentials(TALLOC_CTX *parent_ctx, 
+  struct cli_credentials *credentials, 
+  struct smb_krb5_context 
*smb_krb5_context,
+  krb5_principal *princ);
+   
 #endif /* __CREDENTIALS_KRB5_H__ */
diff --git a/source/auth/kerberos/kerberos_util.c 
b/source/auth/kerberos/kerberos_util.c
index 70e2961..e905e3e 100644
--- a/source/auth/kerberos/kerberos_util.c
+++ b/source/auth/kerberos/kerberos_util.c
@@ -101,10 +101,10 @@ static krb5_error_code 
salt_principal_from_credentials(TALLOC_CTX *parent_ctx,
  * the library routines.  The returned princ is placed in the talloc
  * system by means of a destructor (do *not* free). */
 
-krb5_error_code principal_from_credentials(TALLOC_CTX *parent_ctx, 
-  struct cli_credentials *credentials, 
-  struct smb_krb5_context 
*smb_krb5_context,
-  krb5_principal *princ)
+ krb5_error_code principal_from_credentials(TALLOC_CTX *parent_ctx, 
+   struct cli_credentials 
*credentials, 
+   struct smb_krb5_context 
*smb_krb5_context,
+   krb5_principal *princ)
 {
krb5_error_code ret;
const char *princ_string;


-- 
Samba Shared Repository