Re: [Samba] SLow cups printing, lots of get-printer-attributes

2008-01-07 Thread Emmanuel Lacour
On Wed, Jan 02, 2008 at 09:45:49AM -0800, Jeremy Allison wrote:
> On Wed, Jan 02, 2008 at 08:52:46AM +0100, Martin Zielinski wrote:
> > Hello,
> > 
> > This is the result of asking cups for a comment and location string to 
> > sync them between cups and samba.
> > I've allready asked the samba-team to replace it with a more general 
> > approach but got no response until now.
> 
> Sorry, your mail is sat in my inbox. I understand the issue and I'm planning
> to try and get the fix into 3.2.
> 

Thanks.

I'm currently trying to create a script to maintain comment/location for
my printers, using rpcclient.
I can change comment with "setprinter the_printer_name the_description"
without problem.
But when I try this for setting the location, I get WERR_ACCESS_DENIED:

setprinterdata the_printer_name string location the_location


any idea to solve this would be welcome ;)

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


Re: [Samba] SLow cups printing, lots of get-printer-attributes

2008-01-02 Thread Emmanuel Lacour
On Wed, Jan 02, 2008 at 08:52:46AM +0100, Martin Zielinski wrote:
> Hello,
> 

Ehlo and happy new years dear samba users ;)

> This is the result of asking cups for a comment and location string to 
> sync them between cups and samba.
> I've allready asked the samba-team to replace it with a more general 
> approach but got no response until now.
> 
> As a workaround, please set the comment and location string of every 
> printer from your windows client in the printers and faxes section. When 
> samba has both strings in its ntprinter.tdb database, it will no longer 
> ask cups for them.
> 


Thanks for this hint, I will try this soon :)

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


Re: [Samba] SLow cups printing, lots of get-printer-attributes

2007-12-21 Thread Emmanuel Lacour
On Fri, Dec 14, 2007 at 03:59:02PM +0100, Emmanuel Lacour wrote:
> Hi all,
> 
> I encounter a problem here on a samba PDC with 97 cups printers.
> 
> When on a windows client, I click right on a printer, then select
> "properties", it tooks about 12 secondes to open.
> When from a spreadsheet such as M$ Excel I click on print, then try to
> select an imprimante from my pdc, it tooks about 30 seconds.
> 
> I did some debugging, and with an strace on the smb process, found that
> for my first test (printer properties), samba ask cups 25 times per
> printers for printer attributes (I also found in cups a lot of
> Get-printer-attributes successful-ok).
> 
> below an exemple of this call from strace.
> 
> is there someone who know why samba test each printer 25 times ?
> is there someone who knwo why samba ask for informations on other
> printers when I select a defined printer ?
> 
> 
> Except this give me really slow printing management, printing itself is
> working fine ... just slow.
> 
> 
> Thanks for any hint/help :)
> 


I did some tests and found that it results from a change between 3.0.24
and 3.0.25 and it's stil there in 3.0.28.

The strace for 3.0.24 is really shorter than newer versions as it just
open the right printer and does not try to access all informations of
all printers.

Ther is a lot of changes on the printing code between 3.0.24 and 3.0.25,
but I will try to study it a little bit :/

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


[Samba] SLow cups printing, lots of get-printer-attributes

2007-12-14 Thread Emmanuel Lacour
Hi all,

I encounter a problem here on a samba PDC with 97 cups printers.

When on a windows client, I click right on a printer, then select
"properties", it tooks about 12 secondes to open.
When from a spreadsheet such as M$ Excel I click on print, then try to
select an imprimante from my pdc, it tooks about 30 seconds.

I did some debugging, and with an strace on the smb process, found that
for my first test (printer properties), samba ask cups 25 times per
printers for printer attributes (I also found in cups a lot of
Get-printer-attributes successful-ok).

below an exemple of this call from strace.

is there someone who know why samba test each printer 25 times ?
is there someone who knwo why samba ask for informations on other
printers when I select a defined printer ?


Except this give me really slow printing management, printing itself is
working fine ... just slow.


Thanks for any hint/help :)


15:47:40 connect(27, {sa_family=AF_FILE,
path="/var/run/cups/cups.sock"}, 26) = 0
15:47:40 time(NULL) = 1197643660
15:47:40 time(NULL) = 1197643660
15:47:40 time(NULL) = 1197643660
15:47:40 time(NULL) = 1197643660
15:47:40 time(NULL) = 1197643660
15:47:40 time(NULL) = 1197643660
15:47:40 time(NULL) = 1197643660
15:47:40 send(27, "POST / HTTP/1.1\r\nContent-Length:
196\r\nContent-Type: application/ipp\r\nHost: localhost\r\nUser-Agent:
CUPS/1.2.12\r\nExpect: 100-continue\r\n\r\n", 135, 0) = 135
15:47:40 time(NULL) = 1197643660
15:47:40 time(NULL) = 1197643660
15:47:40 time(NULL) = 1197643660
15:47:40 time(NULL) = 1197643660
15:47:40 time(NULL) = 1197643660
15:47:40 time(NULL) = 1197643660
15:47:40 send(27,
"\1\1\0\v\0\0\0\1\1G\0\22attributes-charset\0\niso-8859-1H\0\33attributes-natural-language\0\5en-usE\0\vprinter-uri\0\31ipp:///printers/5000-001BB\0\24requested-attributes\0\fprinter-nameB\0\0\0\fprinter-infoB\0\0\0\20printer-location\3",
196, 0) = 196
15:47:40 getrlimit(RLIMIT_NOFILE, {rlim_cur=10020, rlim_max=10020}) = 0
15:47:40 select(28, [27], NULL, NULL, {1, 0}) = 1 (in [27], left {1, 0})
15:47:40 recv(27, "HTTP/1.1 100 Continue\r\n\r\n", 2048, 0) = 25
15:47:40 time(NULL) = 1197643660
15:47:40 time(NULL) = 1197643660
15:47:40 recv(27, "HTTP/1.1 200 OK\r\nDate: Fri, 14 Dec 2007 14:47:40
GMT\r\nServer: CUPS/1.2\r\nConnection: Keep-Alive\r\nKeep-Alive:
timeout=60\r\nContent-Language: fr\r\nContent-Type:
application/ipp\r\nContent-Length: 4215\r\n\r\n", 2048, 0) = 197
15:47:40 time(NULL) = 1197643660
15:47:40 time(NULL) = 1197643660
15:47:40 time(NULL) = 1197643660
15:47:40 time(NULL) = 1197643660
15:47:40 time(NULL) = 1197643660
15:47:40 time(NULL) = 1197643660
15:47:40 time(NULL) = 1197643660
15:47:40 time(NULL) = 1197643660
15:47:40 time(NULL) = 1197643660
15:47:40 time(NULL) = 1197643660
15:47:40 recv(27,
"\1\1\0\0\0\0\0\1\1G\0\22attributes-charset\0\niso-8859-1H\0\33attributes-natural-language\0\5en-us\0041\0\24printer-current-time\0\v\7\327\f\16\16/(\0+\0\0B\0\24printer-error-policy\0\fstop-printer\"\0\31printer-is-accepting-jobs\0\1\1\"\0\21printer-is-shared\0\1\1B\0\21printer-op-policy\0\7default#\0\rprinter-state\0\4\0\0\0\3!\0\31printer-state-change-time\0\4G%\340\315A\0\25printer-state-message\0\0D\0\25printer-state-reasons\0\4none#\0\fprinter-type\0\4\0\0\0\4!\0\17printer-up-time\0\4Gb\227\214E\0\25printer-uri-supported\0&ipp://localhost:631/printers/
[...]
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] User connexions stats

2007-11-09 Thread Emmanuel Lacour
On Fri, Nov 09, 2007 at 04:23:10PM +0100, Francis Galiegue wrote:
> 
> (c'est "connection" en anglais ;))
> 

merci ;)

> Unfortunately, no, there's no such thing as a logon/logoff sequence. You can 
> scan for entries telling that someone has initiated a connection to the 
> [profiles] as user , that would be the most accurate you can 
> guess. But you cannot tell when the person logs off AFAIK.
> 

Ok, that's what I worried :(

Thanks.

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


[Samba] User connexions stats

2007-11-09 Thread Emmanuel Lacour
Dear samba users/developpers,

I would like to make stats on user desktop login/logout and I ask myself
if it's possible to do this on the samba PDC. But it doesn't seems to be
so easy.
Maybe parsing logs or using smbstatus?

Is there anyone who did something like this and who can share he's
knowledge ;)

Or maybe it's ... impossible to get accurate datas about this, I don't
know exactly the smb protocol so I'm not sure that the connexion between
client and server is maintained during the whole user session.

Well, many doubts and not a lot of idea ... any hint would be welcome ;)

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


Re: [Samba] mkntpasswd

2004-06-29 Thread Emmanuel Lacour
On Tue, Jun 29, 2004 at 10:51:45AM +0200, Mario Ohnewald wrote:
> Hi!
> 
> I am currently follwoing this howto:
> http://www.samba.org/samba/docs/man/guide/happy.html#ch6-nss02
> 
> and i am stuck with:
> (..)You must compile the mkntpasswd tool and then install it into the
> /var/lib/samba/sbin directory, as shown here(...)
> 
> 
> Where can i get the mkntpasswd sources from? Or is there a rpm package for
> it?
> 

You'll get it from the source directory of smbldap-tools from Idealx.

http://cvs.idealx.org/cgi-bin/cvsweb/samba/smbldap-tools/mkntpwd.tar.gz

-- 
Emmanuel Lacour  Easter-eggs
44-46 rue de l'Ouest  -  75014 Paris   -   France -  Métro Gaité
Phone: +33 (0) 1 43 35 00 37- Fax: +33 (0) 1 41 35 00 76
mailto:[EMAIL PROTECTED]   -http://www.easter-eggs.com
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] ACL INTERNAL ERROR

2004-06-18 Thread Emmanuel Lacour
Hi,

I've got those crash entries in my logs and there is multiple smbd
process eating a lot of cpu/mem.

I'm using samba 3.0.4, rpmsource from samba.org rebuilt with posix acls support. Samba 
is linked with an openldap-2.0.27.
All of this on redhat ES 3 :/ 

Any hint to fix this problem?


[2004/06/17 17:57:39, 0] smbd/posix_acls.c:create_canon_ace_lists(1482)
  create_canon_ace_lists: malformed ACL in file ACL ! Deny entry after Allow entry. 
Failing to set on file Offres Commerciales 
Missions/7819_Cea_LMJ/DERBi_OTH_SO/old/étude_recettes_version_pl_1ere.xls.
[2004/06/17 17:57:39, 0] smbd/posix_acls.c:create_canon_ace_lists(1482)
  create_canon_ace_lists: malformed ACL in file ACL ! Deny entry after Allow entry. 
Failing to set on file Offres Commerciales 
Missions/7819_Cea_LMJ/DERBi_OTH_SO/old/Bilan_Matériel_finance.doc.
[2004/06/17 17:57:39, 0] smbd/posix_acls.c:create_canon_ace_lists(1482)
  create_canon_ace_lists: malformed ACL in file ACL ! Deny entry after Allow entry. 
Failing to set on file Offres Commerciales 
Missions/7819_Cea_LMJ/DERBi_OTH_SO/old/Bilan_Matériel_phase_To.xls.
[2004/06/17 17:57:39, 0] smbd/posix_acls.c:create_canon_ace_lists(1482)
  create_canon_ace_lists: malformed ACL in file ACL ! Deny entry after Allow entry. 
Failing to set on file Offres Commerciales 
Missions/7819_Cea_LMJ/DERBi_OTH_SO/old/Buget_etude_CEA-LMJ-LR.xls.
[2004/06/17 17:57:39, 0] smbd/posix_acls.c:create_canon_ace_lists(1482)
  create_canon_ace_lists: malformed ACL in file ACL ! Deny entry after Allow entry. 
Failing to set on file Offres Commerciales 
Missions/7819_Cea_LMJ/DERBi_OTH_SO/old/Cout_SGTi_GPDoc_10_03_03.xls.
[2004/06/17 17:57:39, 0] smbd/posix_acls.c:create_canon_ace_lists(1482)
  create_canon_ace_lists: malformed ACL in file ACL ! Deny entry after Allow entry. 
Failing to set on file Offres Commerciales 
Missions/7819_Cea_LMJ/DERBi_OTH_SO/old/Total_12122002.xls.
[2004/06/17 17:57:39, 0] smbd/posix_acls.c:create_canon_ace_lists(1482)
  create_canon_ace_lists: malformed ACL in file ACL ! Deny entry after Allow entry. 
Failing to set on file Offres Commerciales 
Missions/7819_Cea_LMJ/DERBi_OTH_SO/old/etude-de-prix-CEA-LMJ-LR.xls.
[2004/06/17 17:57:39, 0] smbd/posix_acls.c:create_canon_ace_lists(1482)
  create_canon_ace_lists: malformed ACL in file ACL ! Deny entry after Allow entry. 
Failing to set on file Offres Commerciales 
Missions/7819_Cea_LMJ/DERBi_OTH_SO/old/montants.doc.
[2004/06/17 17:57:39, 0] smbd/posix_acls.c:create_canon_ace_lists(1482)
  create_canon_ace_lists: malformed ACL in file ACL ! Deny entry after Allow entry. 
Failing to set on file Offres Commerciales 
Missions/7819_Cea_LMJ/DERBi_OTH_SO/old/étude_recettes_minimale.xls.
[2004/06/17 17:57:39, 0] smbd/posix_acls.c:create_canon_ace_lists(1482)
  create_canon_ace_lists: malformed ACL in file ACL ! Deny entry after Allow entry. 
Failing to set on file Offres Commerciales Missions/7819_Cea_LMJ/DERBi_OTH_SO/old.
[2004/06/17 17:57:39, 0] smbd/posix_acls.c:create_canon_ace_lists(1482)
  create_canon_ace_lists: malformed ACL in file ACL ! Deny entry after Allow entry. 
Failing to set on file Offres Commerciales Missions/7819_Cea_LMJ/DERBi_OTH_SO.
[2004/06/17 17:57:39, 0] lib/fault.c:fault_report(36)
  ===
[2004/06/17 17:57:39, 0] lib/fault.c:fault_report(37)
  INTERNAL ERROR: Signal 11 in pid 17478 (3.0.4)
  Please read the appendix Bugs of the Samba HOWTO collection
[2004/06/17 17:57:39, 0] lib/fault.c:fault_report(39)
  ===
[2004/06/17 17:57:39, 0] lib/util.c:smb_panic2(1388)
  smb_panic(): calling panic action [/usr/share/samba/panic-action 17478]
sh: line 1: /usr/share/samba/panic-action: No such file or directory
[2004/06/17 17:57:39, 0] lib/util.c:smb_panic2(1396)
  smb_panic(): action returned status 127
[2004/06/17 17:57:39, 0] lib/util.c:smb_panic2(1398)
  PANIC: internal error
[2004/06/17 17:57:39, 0] lib/util.c:smb_panic2(1406)
  BACKTRACE: 16 stack frames:
   #0 smbd(smb_panic2+0x128) [0x81c7b98]
   #1 smbd(smb_panic+0x19) [0x81c7a69]
   #2 smbd [0x81b5c72]
   #3 /lib/tls/libc.so.6 [0xb742ebe8]
   #4 /lib/tls/libc.so.6(malloc+0x8d) [0xb7476dfd]
   #5 /lib/tls/libc.so.6(vasprintf+0x23) [0xb746db03]
   #6 smbd(talloc_init+0x3b) [0x81cc71b]
   #7 smbd(strftime+0x17a0) [0x8077344]
   #8 smbd(change_to_user+0x9f) [0x80b7a3f]
   #9 smbd [0x80cbb3d]
   #10 smbd [0x80cbc99]
   #11 smbd(process_smb+0x8f) [0x80cbeaf]
   #12 smbd(smbd_process+0x167) [0x80ccaf7]
   #13 smbd(main+0x4d9) [0x822e529]
   #14 /lib/tls/libc.so.6(__libc_start_main+0xf8) [0xb741c748]
   #15 smbd(ldap_msgfree+0x7d) [0x8076781]


-- 
Emmanuel Lacour  Easter-eggs
44-46 rue de l'Ouest  -  75014 Paris   -   France -  Métro Gaité
Phone: +33 (0) 1 43 35 00 37- Fax: +33 (0) 1 41 35 00 76
mailto:[EMAIL PROTECTED]   -http://www.easter-eggs.com
-- 
To unsubscribe from this list go to the fo