Romolo Manfredini | 1 May 07:45 2005
Picon

Printing using panasonic 2310 driver

Dear Samba people,
I'm experiencing a weird problem while printing from a windows client to a
linux machine used as printer spool using a Panasonic 2310 driver. I think
my setup works correctly as changing the driver on the client machine (with
by example a HP laserjet5 one) makes the printer work correctly.
Samba version is 3.0.14a build on a SUSE 9.2.
Panasonic driver version is: dp3xxpen031002.exe europen version, please n
that the GDI version of the driver works without any problem but the PCL one
does not.
The driver is available on the www.workio.com site.

Here enclosed is an extract of the log.smb file:
[2005/05/01 07:06:13, 0] rpc_parse/parse_spoolss.c:spoolss_io_devmode(706)
  spoolss_io_devmode: Unknown specversion in devicemode [0x0]
[2005/05/01 07:06:13, 0] rpc_parse/parse_spoolss.c:spoolss_io_devmode(707)
  spoolss_io_devmode: please report to samba-technical <at> samba.org!
[2005/05/01 07:06:13, 0] rpc_parse/parse_spoolss.c:spoolss_io_devmode(803)
  spoolss_io_devmode: I've parsed all I know and there is still stuff left|
[2005/05/01 07:06:13, 0] rpc_parse/parse_spoolss.c:spoolss_io_devmode(805)
  spoolss_io_devmode: available_space = [560], devmode_size = [780]!
[2005/05/01 07:06:13, 0] rpc_parse/parse_spoolss.c:spoolss_io_devmode(806)
  spoolss_io_devmode: please report to samba-technical <at> samba.org!
[2005/05/01 07:06:13, 0]
rpc_server/srv_spoolss.c:api_spoolss_open_printer_ex(76)
  spoolss_io_q_open_printer_ex: unable to unmarshall
SPOOL_Q_OPEN_PRINTER_EX.
[2005/05/01 07:06:13, 0] rpc_server/srv_pipe.c:api_rpcTNP(1560)
  api_rpcTNP: spoolss: SPOOLSS_OPENPRINTEREX failed.

Let me know how can I help,
(Continue reading)

Jeremy Allison | 1 May 12:10 2005
Picon

Re: [PATCH] Linux socket-specific keepalive settings

On Fri, Apr 29, 2005 at 10:52:34AM -0600, Ed Boraas wrote:
> Hi,
> 
> Below (and attached) is a simple patch that we've found useful at our
> site. It simply enables the setting of the three per-socket keepalive
> options (available in Linux 2.4 and above) on systems that support them.
> 
> These three socket options would also need to be added to the list of
> available options in the "socket options" section of smb.conf.5.

Cool ! Applied, thanks.

Jeremy.

Honza Novacek | 1 May 12:53 2005
Picon

Re: NT_STATUS_BAD_NETWORK_NAME - SOLVED

Grant thank you, perfect advice.
I search mistake everywhere, but I forgot check permissions / home
directory...

Again thank you,

Honza

> Honza, you shouold probably post this sort of thing to the samba list
> rather than samba-tehnical.

> Have you checked the permissions of your /home directory? Should be
> something like the following:

> $ ls -ld /home
> drwxr-xr-x  9 root root 4096 Apr 10 10:55 /home

> Cheers, Grant

Wong Onn Chee | 1 May 21:48 2005
Picon
Picon

Password complexity validation by Samba

Hi folks,

Can Samba enforce password complexity checking, i.e. alphanumeric, with Caps letters and etc?
If yes, please advise how this can be configured as none of the documentation touches on this.
Thank you in advance for your advice.

Regards
Onn Chee

Michael B Allen | 2 May 00:06 2005

SMB Sequence Yields Write Corruption

I've noticed a strange thing (actually a jCIFS user noticed it). Consider
the following sequence of SMBs (to XP Pro SP1 in this case):

  NEGOTIATE
  SESSION_SETUP_ANDX
  TREE_CONNECT_ANDX
  NT_CREATE_ANDX       t.txt
  WRITE_ANDX           "hello1" at offset 0
  CLOSE                t.txt
  NT_CREATE_ANDX       foo.txt
  WRITE_ANDX           "hello2" at offset 6
  CLOSE                t.txt
  DISCONNECT
  LOGOFF

Now if I dump that file I get:

  $ hexdump -c /mnt/pub/t.txt
  0000000  \0  \0  \0  \0  \0  \0   h   e   l   l   o   2

Where did all these zeros come from?

If I pause after the first CLOSE and hexdump the file it is what I expect:

  $ hexdump -c /mnt/pub/t.txt
  0000000   h   e   l   l   o   1

Where's the bug?

Mike
(Continue reading)

Michael B Allen | 2 May 01:01 2005

[solved] Re: SMB Sequence Yields Write Corruption

Michael B Allen said:
> Now if I dump that file I get:
>
>   $ hexdump -c /mnt/pub/t.txt
>   0000000  \0  \0  \0  \0  \0  \0   h   e   l   l   o   2
>
> Where did all these zeros come from?

Nevermind. I was using a CreateDisposition of FILE_OVERWRITE_IF so when it
reopend the file it overwrite the existing contents with 0's.

You guys are good!

Mike

Picon

$B:G9b5i$N=P2q$$!y$*6b; }$A%^% <at> %`$K=w<c<RD9!&%j%C%A <at> DG/!&?B; N!* <at> ?<B$J=P2q$$!A3d$j <at> Z$j=P2q$$Kx!y


===
男と女のメルマガサービス===================== 2005.GW特大号 ===

男と女のメルマガサービスは会員様限定にホットな情報をお届けしております。
今週は 『出会いの春を先取り!GW特集』 です。

==================================================================

☆━━━━━━━━━━━━━━━━━━━━━━━━━━PR━━━☆

        ┏━┓┏━┓┏━┓┏━┓┏━┓┏━┓┏━┓
        ┃完┃┃全┃┃無┃┃料┃┃出┃┃会┃┃い┃
        ┗━┛┗━┛┗━┛┗━┛┗━┛┗━┛┗━┛
       
 ☆   短、大学生 OL 若い娘 学習院卒リッチ男性がたくさん在籍   ☆
     ∵∵∵∵∵∵∵∵∵∵∵∵∵∵∵∵∵∵∵∵∵∵∵∵∵
       
       実家を離れ1人暮らしの娘達、帰省もしないし・・・
       友達と遊ぼうとしても、友達は帰省、旅行中・・・
       ヒマを持て余してる娘達と出逢うに今がチャンス!

                そんなサイトはココ↓

           http://www.deai-free.jp/hub.cgi?m=288

弊社の自慢はまずクオリティーの高さです!誠実な出会いはもちろん、割り切り
即アポまで、無料とは言え万全のサポートでご提供させていただいております!
皆さん!会ってみたけど、業者だったぁぁって経験ありませんか?
女性ならキャッチ男だった・・・男性ならデリヘルだった・・・もぉぉご安心下さい!!!!
(Continue reading)

David Collier-Brown | 2 May 15:50 2005
Picon

Re: SMB Sequence Yields Write Corruption

The Unix filesystem provided the nulls for you: this is considered
a file with a "hole" from 0 to 5... I have no idea what Windows
does, but I suspect it 's either
1) fail
2) pad will nulls
3) pad with some other character, perhaps space.

--dave

Michael B Allen wrote:
> I've noticed a strange thing (actually a jCIFS user noticed it). Consider
> the following sequence of SMBs (to XP Pro SP1 in this case):
> 
>   NEGOTIATE
>   SESSION_SETUP_ANDX
>   TREE_CONNECT_ANDX
>   NT_CREATE_ANDX       t.txt
>   WRITE_ANDX           "hello1" at offset 0
>   CLOSE                t.txt
>   NT_CREATE_ANDX       foo.txt
>   WRITE_ANDX           "hello2" at offset 6
>   CLOSE                t.txt
>   DISCONNECT
>   LOGOFF
> 
> Now if I dump that file I get:
> 
>   $ hexdump -c /mnt/pub/t.txt
>   0000000  \0  \0  \0  \0  \0  \0   h   e   l   l   o   2
> 
(Continue reading)

Julien Thomas | 2 May 16:11 2005
Picon

My own VFS module

Hi all,

Before all, sorry for my bad english, and sorry again if this is not the 
adapted mailing list for my questions.

I am developing a VFS module to get some log informations. It is 
inspired of the vfs_audit.c

The goal is to trace SMB_VFS_OP_CONNECT and SMB_VFS_OP_DISCONNECT 
operations and to log some informations into an SQLite database.

With this, I want to write a connection counter. I log _the two_ 
operations (connect and disconnect) because I want also to calculate the 
connection time and because I want only to consider a connection if it 
has been _connected_ and after _disconnected_.

So, for those two operations, I want put the following informations in 
the database :
- *samba server process pid*
- *samba internal pid*
- *username*
- *service*
- *time*
- *operation* (connect or disconnect)

I get *operation* trivially.
I get *time* with the C library functions.
I get *service* and *user* with the vfs disk operations functions params.
I don't know how i will get *samba server process pid* but I think this 
will not be a problem.
(Continue reading)

derrell | 2 May 20:06 2005
Picon

Re: svn commit: samba r6586 - in branches/SAMBA_3_0/source: lib libads libsmb smbd tests torture

herb <at> samba.org writes:

> Log:
> get rid of a few more compiler warnings
>
> Modified: branches/SAMBA_3_0/source/lib/dummyroot.c
> ===================================================================
> --- branches/SAMBA_3_0/source/lib/dummyroot.c	2005-05-02 16:23:02 UTC (rev 6585)
> +++ branches/SAMBA_3_0/source/lib/dummyroot.c	2005-05-02 17:49:43 UTC (rev 6586)
>  <at>  <at>  -22,6 +22,9  <at>  <at> 
>  /* Stupid dummy functions required due to the horrible dependency mess
>     in Samba. */
>  
> +void become_root(void);
> +void unbecome_root(void);
> +
>  void become_root(void)
>  {
>          return;
>

Herb, I don't get it.  What is the purpose of a forward declaration
immediately prior to an actual function declaration?  What type of warning
were you getting that this solves?

Confused,

Derrell

(Continue reading)


Gmane