[Samba] printjob stays in windows queue after transfer failure

2004-02-03 Thread christoph.beyer
Hi Jerry et al,

I'm using the 3.0.1 release in 'ADS' mode with ~450 print queues and ~150
users (getting migrated right now, will be ~3.000 in the end). In general
everything works fine apart from some smaller driver configuration
problems, the usual stuff. Though I see a lot of errors in the log files
and it seems that sometimes the print job transfer fails (get 'zero
nothing to print' messages in '/var/adm/messages'). Now in these cases the
job naturally never shows up in the UNIX queue but it stays in the windows
queue window forever. As far as I understand it doesn't get wiped out in
'../var/locks/printing/printer.tdb'. Of course I could write a small
wrapper for the lpr command to check that circumstance and delete the
printer.tdb file ;-)

Hope this makes any sense to you, I think the job transfer problem is
related to this messages in log.smbd:

[2004/02/03 09:39:46, 0] lib/util.c:smb_panic(1400)
  PANIC: internal error
[2004/02/03 09:39:53, 0] smbd/connection.c:register_message_flags(220)
  register_message_flags: tdb_fetch failed
[2004/02/03 09:40:32, 0] rpc_client/cli_pipe.c:rpc_api_pipe(424)
  cli_pipe: return critical error. Error was Write error: Resource
temporarily unavailable
[2004/02/03 09:41:15, 0] lib/fault.c:fault_report(36)
  ===
[2004/02/03 09:41:15, 0] lib/fault.c:fault_report(37)
  INTERNAL ERROR: Signal 11 in pid 9213 (3.0.1)
  Please read the appendix Bugs of the Samba HOWTO collection
[2004/02/03 09:41:15, 0] lib/fault.c:fault_report(39)
  ===
[2004/02/03 09:41:16, 0] lib/util.c:smb_panic(1400)
  PANIC: internal error
[2004/02/03 09:41:23, 0] smbd/connection.c:register_message_flags(220)
  register_message_flags: tdb_fetch failed


best regards  thanks for any help
~christoph


-- 
/*   Christoph Beyer |   Office: Building 2b / 23 *\
 *   DESY|Phone: 040-8998-2317*
 *   - IT -  |  Fax: 040-8998-4060*
\*   22603 Hamburg   | http://www.desy.de */


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


[Samba] setting printing preference in 3.0.1 for 'HP LJ 4/4M plus'

2004-01-08 Thread christoph.beyer
Hi Jerry et al,

I'm using the 3.0.1 release on Solaris 9 in security mode ADS. It works
fine in general. But there are some problems with printer drivers. For ex
the HP LJ 4/4M plus driver can not be set to 'A4' from 'letter' in the
printing preferences.

I use 'rundll32 printui.dll,PrintUIEntry /p /t3 /n\\...' to get to the
dialogue, so I'm pretty sure I try to write on the server, the connections
also looks good (printer admin rights). In the logs I see:

[2003/12/18 13:38:19, 0] smbd/service.c:set_admin_user(321)
  lp logged in as admin user (root privileges)
[2004/01/08 16:13:33, 0] lib/util_sock.c:write_socket_data(388)
  write_socket_data: write failure. Error = Broken pipe
[2004/01/08 16:13:33, 0] lib/util_sock.c:write_socket(413)
  write_socket: Error writing 4 bytes to socket 5: ERRNO = Broken pipe
[2004/01/08 16:13:33, 0] lib/util_sock.c:send_smb(601)
  Error writing 4 bytes to client. -1. (Broken pipe)
[2004/01/08 16:13:38, 0] lib/fault.c:fault_report(36)
  ===
[2004/01/08 16:13:38, 0] lib/fault.c:fault_report(37)
  INTERNAL ERROR: Signal 11 in pid 10534 (3.0.1)
  Please read the appendix Bugs of the Samba HOWTO collection
[2004/01/08 16:13:39, 0] lib/fault.c:fault_report(39)
  ===
[2004/01/08 16:13:39, 0] lib/util.c:smb_panic(1400)
  PANIC: internal error


Any hints ?

thanks for your ongoing support  a happy new year
~christoph


-- 
/*   Christoph Beyer |   Office: Building 2b / 23 *\
 *   DESY|Phone: 040-8998-2317*
 *   - IT -  |  Fax: 040-8998-4060*
\*   22603 Hamburg   | http://www.desy.de */


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


[Samba] printing problems with 3.0.1

2003-12-19 Thread christoph.beyer
Hi Jerry et al,

I recently installed the 3.0.1 release, since then I can not install any
drivers as admin user :-( I'm running on Solaris 9 with ads (mybe I
missed anything):

[2003/12/18 13:56:58, 0] smbd/service.c:set_admin_user(321)
  lp logged in as admin user (root privileges)
[2003/12/18 13:57:27, 0] smbd/connection.c:register_message_flags(220)
  register_message_flags: tdb_fetch failed
[2003/12/18 13:57:30, 1] smbd/service.c:make_connection_snum(705)
  adc1 (131.169.69.134) connect to service print$ initially as user nobody
(uid=60001, gid=60001) (pid 17088)
[2003/12/18 13:57:37, 0] smbd/connection.c:register_message_flags(220)
  register_message_flags: tdb_fetch failed
[2003/12/18 13:57:37, 0] smbd/connection.c:register_message_flags(220)
  register_message_flags: tdb_fetch failed
[2003/12/18 13:58:07, 0] smbd/connection.c:register_message_flags(220)
...skipping...
  ===
[2003/12/19 12:34:40, 0] lib/util.c:smb_panic(1400)
  PANIC: internal error
[2003/12/19 12:35:45, 0] smbd/service.c:set_admin_user(321)
  lp logged in as admin user (root privileges)
[2003/12/19 12:35:45, 1] smbd/service.c:make_connection_snum(705)
  zitpcx3669 (131.169.214.120) connect to service print$ initially as user
lp (uid=0, gid=8) (pid 12402)
[2003/12/19 12:35:49, 0] smbd/nttrans.c:call_nt_transact_ioctl(1990)
  call_nt_transact_ioctl(0x90100): Currently not implemented.
[2003/12/19 12:35:51, 1] smbd/service.c:make_connection_snum(705)
  zitpcx3669 (131.169.214.120) connect to service print$ initially as user
nobody (uid=60001, gid=60001) (pid 12402)
[2003/12/19 12:35:59, 1] smbd/service.c:close_cnum(887)
  zitpcx3669 (131.169.214.120) closed connection to service print$
[2003/12/19 12:36:11, 1] smbd/service.c:make_connection_snum(705)
  zitpcx3669 (131.169.214.120) connect to service print$ initially as user
nobody (uid=60001, gid=60001) (pid 12402)
[2003/12/19 12:36:13, 0] smbd/service.c:set_admin_user(321)
  lp logged in as admin user (root privileges)
[2003/12/19 12:36:13, 1] smbd/service.c:make_connection_snum(705)
  zitpcx3669 (131.169.214.120) connect to service print$ initially as user
lp (uid=0, gid=8) (pid 12402)
[2003/12/19 12:36:13, 1] smbd/service.c:close_cnum(887)
  zitpcx3669 (131.169.214.120) closed connection to service print$
[2003/12/19 12:36:13, 0] smbd/service.c:set_admin_user(321)
  lp logged in as admin user (root privileges)
[2003/12/19 12:36:13, 1] smbd/service.c:make_connection_snum(705)
  zitpcx3669 (131.169.214.120) connect to service print$ initially as user
lp (uid=0, gid=8) (pid 12402)
[2003/12/19 12:36:13, 1] smbd/service.c:close_cnum(887)
  zitpcx3669 (131.169.214.120) closed connection to service print$
[2003/12/19 12:36:19, 1] smbd/service.c:close_cnum(887)
  zitpcx3669 (131.169.214.120) closed connection to service print$
[2003/12/19 12:37:18, 0] smbd/server.c:open_sockets_smbd(377)
  open_sockets_smbd: accept: Software caused connection abort
[2003/12/19 12:38:19, 1] smbd/service.c:close_cnum(887)
  zitpcx3669 (131.169.214.120) closed connection to service print$
[2003/12/19 12:38:55, 0] lib/fault.c:fault_report(36)
  ===
[2003/12/19 12:38:55, 0] lib/fault.c:fault_report(37)
  INTERNAL ERROR: Signal 11 in pid 16595 (3.0.1)
  Please read the appendix Bugs of the Samba HOWTO collection
[2003/12/19 12:38:55, 0] lib/fault.c:fault_report(39)
  ===
[2003/12/19 12:38:55, 0] lib/util.c:smb_panic(1400)
  PANIC: internal error


best regards
~christoph


-- 
/*   Christoph Beyer |   Office: Building 2b / 23 *\
 *   DESY|Phone: 040-8998-2317*
 *   - IT -  |  Fax: 040-8998-4060*
\*   22603 Hamburg   | http://www.desy.de */


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


Re: [Samba] printer permissions - ERROR: NULL dest in safe_strcpy (samba 3.0.0)

2003-11-18 Thread christoph.beyer
Hi Jerry et al,

my apologize, the temp-file acl's haven't change from the 2.2.* version,
I just forgot the 's-bit' on the lpr binary :-(


best regards
~christoph


-- 
/*   Christoph Beyer |   Office: Building 2b / 23 *\
 *   DESY|Phone: 040-8998-2317*
 *   - IT -  |  Fax: 040-8998-4060*
\*   22603 Hamburg   | http://www.desy.de */


On Mon, 17 Nov 2003, Gerald (Jerry) Carter wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 [EMAIL PROTECTED] wrote:
 |
 | thanks I will try that out during this week, I have another one:
 |
 | I'm mapping everyone to 'nobody' unfortunately the acl's of
 | the temprorary files are not readable by the user 'lp':
 |
 | [printsrv4] ~lp/etc # tail -f /tmp/samba_acls.txt
 | -rw---   1 nobody   nobody111614 Nov 17 15:58
 smbprn.0026.EaaqrB
 | -rw---   1 nobody   nobody111613 Nov 17 16:01
 smbprn.0027.rUai4B
 |
 | I tried 'force create mode = 0777' but it doesn't
 | seem to have any impact on the acl's of the temporary
 | spool files. Did I miss something, I think
 | the same configuration worked fine under 2.2.x (?)

 Yeah.  See lib/util.c:smb_mkstemp().  I just checked though and
 the code is identical to what is in 2..  Are you doing guest
 printing?  The problem might be the facft that the 'guest
 account' parameter in now global rather than on a per share basis
 like it was in 2.2.

 You could try 'force user = lp'.  That would work for 9x
 clients but not for NT or later.


 - --
 cheers, jerry
 - --
 Hewlett-Packard- http://www.hp.com
 SAMBA Team -- http://www.samba.org
 GnuPG Key   http://www.plainjoe.org/gpg_public.asc
 If we're adding to the noise, turn off this song --Switchfoot (2003)
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.2.1 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

 iD8DBQE/uPcOIR7qMdg1EfYRAnyNAKDmN/xjkroAEd2bpd0ay6md/zzibgCcDMtK
 xN2FeS3ZADEma+48n9fIwc0=
 =pCIy
 -END PGP SIGNATURE-



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


[Samba] SAMBA3.0.0pre3

2003-11-18 Thread christoph.beyer
Hi Jerry et al,

I tried the pre3 version and it seemed at the first look that the problems
of setting security properties is solved. Though I was unable to really
test it because the server ran into some different problems which made him
very slow:

  zitpcx3669 (131.169.214.120) closed connection to service print$
[2003/11/18 13:43:43, 1] smbd/service.c:make_connection_snum(705)
  zitpcx3669 (131.169.214.120) connect to service testp9 initially as user
nobody (uid=60001, gid=60001) (pid 13849)
[2003/11/18 13:43:44, 1] smbd/service.c:make_connection_snum(705)
  zitpcx3669 (131.169.214.120) connect to service print$ initially as user
nobody (uid=60001, gid=60001) (pid 13849)
[2003/11/18 13:44:43, 0] lib/fault.c:fault_report(36)
  ===
[2003/11/18 13:44:43, 0] lib/fault.c:fault_report(37)
  INTERNAL ERROR: Signal 11 in pid 13849 (3.0.1pre3)
  Please read the appendix Bugs of the Samba HOWTO collection
[2003/11/18 13:44:43, 0] lib/fault.c:fault_report(39)
  ===
[2003/11/18 13:44:43, 0] lib/util.c:smb_panic(1400)
  PANIC: internal error
[2003/11/18 13:45:33, 0] lib/fault.c:fault_report(36)
  ===
[2003/11/18 13:45:33, 0] lib/fault.c:fault_report(37)
  INTERNAL ERROR: Signal 11 in pid 13876 (3.0.1pre3)
  Please read the appendix Bugs of the Samba HOWTO collection
[2003/11/18 13:45:33, 0] lib/fault.c:fault_report(39)
  ===
[2003/11/18 13:45:33, 0] lib/util.c:smb_panic(1400)
  PANIC: internal error
[2003/11/18 13:46:59, 0] lib/fault.c:fault_report(36)
  ===
[2003/11/18 13:47:00, 0] lib/fault.c:fault_report(37)
  INTERNAL ERROR: Signal 11 in pid 13902 (3.0.1pre3)
  Please read the appendix Bugs of the Samba HOWTO collection
[2003/11/18 13:47:00, 0] lib/fault.c:fault_report(39)
  ===

best regards
~christoph


-- 
/*   Christoph Beyer |   Office: Building 2b / 23 *\
 *   DESY|Phone: 040-8998-2317*
 *   - IT -  |  Fax: 040-8998-4060*
\*   22603 Hamburg   | http://www.desy.de */


On Mon, 17 Nov 2003, Gerald (Jerry) Carter wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 [EMAIL PROTECTED] wrote:
 |
 | thanks I will try that out during this week, I have another one:
 |
 | I'm mapping everyone to 'nobody' unfortunately the acl's of
 | the temprorary files are not readable by the user 'lp':
 |
 | [printsrv4] ~lp/etc # tail -f /tmp/samba_acls.txt
 | -rw---   1 nobody   nobody111614 Nov 17 15:58
 smbprn.0026.EaaqrB
 | -rw---   1 nobody   nobody111613 Nov 17 16:01
 smbprn.0027.rUai4B
 |
 | I tried 'force create mode = 0777' but it doesn't
 | seem to have any impact on the acl's of the temporary
 | spool files. Did I miss something, I think
 | the same configuration worked fine under 2.2.x (?)

 Yeah.  See lib/util.c:smb_mkstemp().  I just checked though and
 the code is identical to what is in 2..  Are you doing guest
 printing?  The problem might be the facft that the 'guest
 account' parameter in now global rather than on a per share basis
 like it was in 2.2.

 You could try 'force user = lp'.  That would work for 9x
 clients but not for NT or later.


 - --
 cheers, jerry
 - --
 Hewlett-Packard- http://www.hp.com
 SAMBA Team -- http://www.samba.org
 GnuPG Key   http://www.plainjoe.org/gpg_public.asc
 If we're adding to the noise, turn off this song --Switchfoot (2003)
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.2.1 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

 iD8DBQE/uPcOIR7qMdg1EfYRAnyNAKDmN/xjkroAEd2bpd0ay6md/zzibgCcDMtK
 xN2FeS3ZADEma+48n9fIwc0=
 =pCIy
 -END PGP SIGNATURE-



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


Re: [Samba] printer permissions - ERROR: NULL dest in safe_strcpy (samba 3.0.0)

2003-11-17 Thread christoph.beyer
Hi again,

thanks I will try that out during this week, I have another one:

I'm mapping everyone to 'nobody' unfortunately the acl's of the temprorary
files are not readable by the user 'lp':

[printsrv4] ~lp/etc # tail -f /tmp/samba_acls.txt
-rw---   1 nobody   nobody111614 Nov 17 15:58 smbprn.0026.EaaqrB
-rw---   1 nobody   nobody111613 Nov 17 16:01 smbprn.0027.rUai4B

I tried 'force create mode = 0777' but it doesn't seem to have any impact
on the acl's of the temporary spool files. Did I miss something, I think
the same configuration worked fine under 2.2.x (?)

thanks for your support !!!
~christoph


-- 
/*   Christoph Beyer |   Office: Building 2b / 23 *\
 *   DESY|Phone: 040-8998-2317*
 *   - IT -  |  Fax: 040-8998-4060*
\*   22603 Hamburg   | http://www.desy.de */


On Mon, 17 Nov 2003, Gerald (Jerry) Carter wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 [EMAIL PROTECTED] wrote:
 |

 Hey Christoph,

 | I'm using SAMBA 3.0.0 on Solaris 9, it looks very
 | cute, unfortunately I can not set the permissions
 | on the printers (I can as an admin add a user etc.
 | but all changes are lost after applying):-(

 There was a significant printing fix for 200X/XP
 clients in 3.0.1pre3.  I just tested the latest
 SAMBA_3_0 cvs and setting a printer acl works
 so you might want to try the latest 3.0.1 snapsnot.

 | Is this somehow related to the error entries in
 | the log file:
 |
 | [2003/11/17 14:45:31, 0] lib/util_str.c:safe_strcpy_fn(577)
 |   ERROR: NULL dest in safe_strcpy

 This was fixed in 3.0.1pre1 I think (i know it was
 fixed...just don't remember when).




 - --
 cheers, jerry
 - --
 Hewlett-Packard- http://www.hp.com
 SAMBA Team -- http://www.samba.org
 GnuPG Key   http://www.plainjoe.org/gpg_public.asc
 If we're adding to the noise, turn off this song --Switchfoot (2003)
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.2.1 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

 iD8DBQE/uOAIIR7qMdg1EfYRAsoZAKDBvnFzzvuLATBXBHJTff8hW2SVwwCfXYFF
 b9JHuxjnqnBo64bpC7ZgZPY=
 =fr40
 -END PGP SIGNATURE-



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


Re: [Samba] can't join W2003 domain with 3.0.0 (krb ticket is OK though)

2003-10-31 Thread christoph.beyer
Hi Jochen et al,

that worked fine, though if I get it right everyone can now read the
active directory structure (?)

Connecting to the samba machine results still in errors, but that may be
something stupid on my behalf too...

thanks for helping
~christoph


 connect_to_domain_password_server: unable to setup the NETLOGON
credentials to machine ADC1. Error was : NT_STATUS_UNSUCCESSFUL.


best regards
~christoph


-- 
/*   Christoph Beyer |   Office: Building 2b / 23 *\
 *   DESY|Phone: 040-8998-2317*
 *   - IT -  |  Fax: 040-8998-4060*
\*   22603 Hamburg   | http://www.desy.de */


On Thu, 30 Oct 2003, Jochen Schmidt wrote:

 Hi Christoph,

 please try the following:

 - Open dsa.msc as Domain Administrator.
 - Right-Click your AD-Domain and select properties
 - Select the Group Policy Tab and Edit your Policy (or the Default Domain 
 Policy)
 - Select Computer Configuration\Windows Settings\Security Settings\Local 
 Policies\Security Options
 - Define the policy Network security: LDAP client signing requirements to none

 Please respond if this helps or not!

 Jochen


 On Thu, 30 Oct 2003, Christoph Beyer wrote:

  Hi Andrew et al,
 
  thank you for the tip, is there any way to get around this, my windows
  admins don't know how to disable this feature. Is it possible to set it on
  a 'per host base' on the windows side, if yes: where ?
 
  Are there plans to realize the feature in an upcoming release in the near
  future ?
 
  thanks again for any advice !
  ~christoph
 
 
 

 --
 mit freundlichen Grüßen

 Jochen Schmidt

 
 Jochen Schmidt   [EMAIL PROTECTED]
 Mi||enux GmbHmobile: +49.175.5752483
 Lilienthalstraße 2  phone: +49.711.88770.300
 70825 Stuttgart-Korntal   fax: +49.711.88770.349
   -= linux without limits -=- http://linux.zSeries.org/ =-
 PGP Fingerprint:  6F9A 85CE 78EA 7EF1 B2BA  3559 8FA1 2B13 098D 20B5



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


[Samba] can't join W2003 domain with 3.0.0 (krb ticket is OK though)

2003-10-29 Thread christoph.beyer
Hi everyone,

I'm using the production release of 3.0.0 and can not join a W2003 domain:

[printsrv4] /spool/samba-3.0.0/bin $ ./net -d 10 ads join -Uhumpty_dumpty
[2003/10/29 15:35:39, 3] libads/sasl.c:ads_sasl_spnego_bind(191)
  got [EMAIL PROTECTED]
[2003/10/29 15:35:39, 1] libsmb/clikrb5.c:ads_krb5_mk_req(269)
  krb5_cc_get_principal failed (No credentials cache found)
[2003/10/29 15:35:40, 10] libsmb/clikrb5.c:get_krb5_smb_session_key(385)
  Got KRB5 session key of length 16
[2003/10/29 15:35:40, 1] utils/net_ads.c:ads_startup(181)
  ads_connect: Strong authentication required
[2003/10/29 15:35:40, 2] utils/net.c:main(758)
  return code = -1

The krb5 token looks OK:

[printsrv4] /spool/samba-3.0.0/bin $ klist
Ticket cache: FILE:/tmp/krb5cc_0
Default principal: [EMAIL PROTECTED]

Valid starting ExpiresService principal
10/29/03 13:48:09  10/29/03 23:48:18  krbtgt/[EMAIL PROTECTED]
renew until 10/30/03 13:48:09


Kerberos 4 ticket cache: /tmp/tkt0
Principal: [EMAIL PROTECTED]

  Issued  Expires Principal
10/21/03 15:42:14  10/22/03 17:08:35  [EMAIL PROTECTED]
10/21/03 15:42:14  10/22/03 17:08:35  [EMAIL PROTECTED]
10/22/03 15:18:13  10/22/03 17:13:13  [EMAIL PROTECTED]



any hints anyone ???
~christoph


-- 
/*   Christoph Beyer |   Office: Building 2b / 23 *\
 *   DESY|Phone: 040-8998-2317*
 *   - IT -  |  Fax: 040-8998-4060*
\*   22603 Hamburg   | http://www.desy.de */


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