scalability of print_queue_update

2003-03-10 Thread Martin Pool
I've been testing injection of many jobs (thousands) into a print queue, and am noticing that appliance_head samba seems to spend heaps of time in print_queue_update, trying to reconcile the output of lpq with samba's database. In particular, this is causing smbspool to give warnings because print

Re: Restricting delete on a share?

2003-03-10 Thread Andrew Bartlett
On Mon, 2003-03-10 at 18:50, Stefan (metze) Metzmacher wrote: > At 18:37 10.03.2003 +1100, Andrew Bartlett wrote: > >On Mon, 2003-03-10 at 18:02, Stefan (metze) Metzmacher wrote: > > > At 00:04 10.03.2003 -0600, Jeremy M. Dolan wrote: > > > >Hi all. > > > > > > > >Management here wants to restrict

bug? non-default hash sizes in tdb

2003-03-10 Thread Martin Pool
tdb (all branches) has the behaviour that when opening an existing database, if you don't specify the right hash size, the open will fail with EIO. This means for example that tdbtool can't open printing tdbs after jra's change to increase their has size to 5000. Wouldn't it be reasonable to ig

Re: Printer driver parameter deprecated - what now?

2003-03-10 Thread Tom Alsberg
Hi there. Please read my comments below: On Sun, Mar 09, 2003 at 04:07:57PM +, Ronan Waide wrote: > On March 9, [EMAIL PROTECTED] said: > > > > Well, I tried that, does not work, I get: > > > > SetPrinter call failed! > > result was NT_STATUS_UNSUCCESSFUL > > setdriver expects the following

Re: Printer driver parameter deprecated - what now?

2003-03-10 Thread Ronan Waide
On March 10, [EMAIL PROTECTED] said: > > Uh... How can Samba users be members of NT groups? I did not know > Samba supports that... How do you add Unix users to NT groups for > Samba? I was just clarifying that when I said "Printer Admins" I wasn't referring to the NT group. > Yet, my problem

segv in samba head

2003-03-10 Thread Ronan Waide
background: I had a stock redhat samba setup using security = share and sharing out three directories - [homes] and two fixed locations. pretty trivial setup. I built Samba 3 head (current as of this morning, but the problem has been happening for at least a week) and tried connecting to it from a

Re: segv in samba head

2003-03-10 Thread Andrew Bartlett
On Mon, 2003-03-10 at 23:03, Ronan Waide wrote: > background: > I had a stock redhat samba setup using security = share and sharing > out three directories - [homes] and two fixed locations. pretty > trivial setup. I built Samba 3 head (current as of this morning, but > the problem has been happeni

Re: Restricting delete on a share?

2003-03-10 Thread Volker Lendecke
On Mon, Mar 10, 2003 at 06:37:26PM +1100, Andrew Bartlett wrote: > Just remember that doing this doesn't actually gain you anything - the > users can still write garbage into the file, or make them zero length. And, remember how Word saves files: New file, delete old, rename new to old. Lately I

rpcclient typo: patch

2003-03-10 Thread Ronan Waide
when doing "enumdomusers", rpcclient prints each one preceded by the word "group" instead of "user" Cheers, Waider. Index: rpcclient/cmd_samr.c === RCS file: /cvsroot/samba/source/rpcclient/cmd_samr.c,v retrieving revision 1.157 diff

RE: winbind daemon not running

2003-03-10 Thread MCCALL,DON (HP-USA,ex1)
Jay, The answer is in your logs. There are certain parameters that winbindd needs to read from the smb.conf file in the GLOBAL section, including winbindd uid and winbindd gid range. The log is telling you that they are not there, and so winbindd is refusing to run. Looks like, from the other

Re: Urgent: Cvs download has changed unexpectedly

2003-03-10 Thread David Collier-Brown -- Customer Engineering
Dave Collier-Brown wrote: 1) If I run "cvs update -d :pserver:[EMAIL PROTECTED]:/cvsroot -P" it returns "No CVSROOT specified! Please use the `-d' option", which, you understand, I did (;-)) This also applies if I change the host from [EMAIL PROTECTED] to [EMAIL PROTECTED] --dave --

Re: Urgent: Cvs download has changed unexpectedly

2003-03-10 Thread David Collier-Brown -- Customer Engineering
I deleted the whole tree, changed the makefile to the new syntax, and it fails with the identical messages. The good news is that we documented pserver.samba.org in the second edition... the bad news is that I can't get it to work (;-)) --dave Tim Potter wrote: On Sun, Mar 09, 2003 at 02:13:17PM -

Re: bug? non-default hash sizes in tdb

2003-03-10 Thread jra
On Mon, Mar 10, 2003 at 07:47:29PM +1100, Martin Pool wrote: > tdb (all branches) has the behaviour that when opening an existing > database, if you don't specify the right hash size, the open will fail > with EIO. > > This means for example that tdbtool can't open printing tdbs after > jra's ch

Re: scalability of print_queue_update

2003-03-10 Thread jra
On Mon, Mar 10, 2003 at 07:10:10PM +1100, Martin Pool wrote: > I've been testing injection of many jobs (thousands) into a print > queue, and am noticing that appliance_head samba seems to spend heaps > of time in print_queue_update, trying to reconcile the output of lpq > with samba's database. Y

Re: Restricting delete on a share?

2003-03-10 Thread Simo Sorce
Jeremy, the best way you can accomplish this is to build a custom VFS module. It is really easy to build such module and you only need to intercept and discard any unlink operation. regards, Simo. On Mon, 2003-03-10 at 07:04, Jeremy M. Dolan wrote: > Hi all. > > Management here wants to restric

winbindd failing to list users on 3.0a22

2003-03-10 Thread Nir Soffer
Fresh compile, Redhat Linux 7.3, rather standard installations on it. This is what I get with log level 10 on winbindd when trying to list users. The "need 0 more for a full request" part of the entry seems, well, interesting. Any ideas? Thanks, Nir. [2003/03/10 22:10:17, 10] nsswitch/winbin

Re: 3.0a21 and HEAD: only primary group of a domain user is set onsmbd

2003-03-10 Thread Chere Zhou
After managed to compile HEAD on my box, I don't see that my problem is fixed on HEAD. For a user that belongs to 5 groups in an ADS domain, smbd got only the primary group. Here is something from the log: [2003/03/10 13:01:58, 3] smbd/process.c:switch_message(676) switch message SMBntcreateX

Re: Urgent: Cvs download has changed unexpectedly

2003-03-10 Thread Michael Heironimus
On Mon, Mar 10, 2003 at 08:11:32AM -0500, David Collier-Brown -- Customer Engineering wrote: > Dave Collier-Brown wrote: > > 1) If I run "cvs update -d :pserver:[EMAIL PROTECTED]:/cvsroot -P" > >it returns "No CVSROOT specified! Please use the `-d' option", > >which, you understand, I did (;-))

HEAD: PDC or BDC?

2003-03-10 Thread Simo Sorce
I'm curious at why we think a server should be considered a PDC if security id server, domain or ads. I think there is something wrong here .. I think the 'server' or 'domain' security + lp_domain_logons() should make a BDC, and that 'ads' + lp_domain_logons() should simply give an error until we

Problem Joining w2k box on domain

2003-03-10 Thread Zuber Sidiyot
Hi all I am using using samba 2.2. I have just made samba as a primary domain controller, configure smb.conf file. Add machine name in to smbpasswd and added root to the smbpasswd file. Now when I try to join domain from Win2k box. Gives me error "The procedure range is out of range" or "The Re

Re: rpcclient typo: patch

2003-03-10 Thread Martin Pool
On 10 Mar 2003, Ronan Waide <[EMAIL PROTECTED]> wrote: > when doing "enumdomusers", rpcclient prints each one preceded by the > word "group" instead of "user" Thanks, merged. I was wondering the other day why it said 'group' :-) -- Martin

Samba 3.0 Alpha22 + AD Domain, RedHat Kerberos Problems

2003-03-10 Thread ODC
Hi all, I'm not sure if this is the proper list to send to, but I figure this is it since I'm dealing with the beta software. Anyway, I have compiled Samba 3.0 Alpha 22 and would like to run it as a file server that authenticates AD logins to the W2K Domain Server. I have gotten though all th

Re: Samba 3.0 Alpha22 + AD Domain, RedHat Kerberos Problems

2003-03-10 Thread Herb Lewis
The bad encryption type message happens if you have never changed the administrator password on the PDC and you try to join the domain. Did you successfully join the domain? ODC wrote: > > Hi all, > > I'm not sure if this is the proper list to send to, but I figure this is > it since I'm dealing

Re: scalability of print_queue_update

2003-03-10 Thread John E. Malmberg
Martin Pool wrote: Alternatively we might say that 40,000 jobs is a silly number to have queued. :-) Probably, but it would be good to know that it would work. What I am curious about is if you have a solution to a question I posed about a year ago. On Windows, the print job number appears to be

bug or typo in smbd/service.c: make_connection_snum(line 530)?

2003-03-10 Thread Chere Zhou
The block reads: if (conn->force_user || conn->force_group) { /* groups stuff added by ih */ conn->ngroups = 0; conn->groups = NULL; /* Find all the groups this uid is in and store them. Used by change_to_

Re: HEAD: PDC or BDC?

2003-03-10 Thread Luke Howard
>I think there is something wrong here .. >I think the 'server' or 'domain' security + lp_domain_logons() should >make a BDC, and that 'ads' + lp_domain_logons() should simply give an >error until we are able to make up a compatible AD DC. Maybe this could remain enabled in HEAD but cause an erro

Re: scalability of print_queue_update

2003-03-10 Thread Martin Pool
On 10 Mar 2003, [EMAIL PROTECTED] wrote: > > One approach that was discussed a while ago is to have the lpd notify > > samba when jobs are completed, deleted, or changed. It could either > > give all the details sufficient to update the record, or (much > > simpler) just send an smbcontrol messag

Re: scalability of print_queue_update

2003-03-10 Thread jra
On Tue, Mar 11, 2003 at 12:18:55PM +1100, Martin Pool wrote: > > I observed that it spends a large fraction of its time in > print_parse_jobid, called from traverse_fn_delete, called from > print_queue_update. This function is I think called O(n**2) times, > because smbd compares every job in the

Re: Urgent: Cvs download has changed unexpectedly

2003-03-10 Thread Dave Collier-Brown
Michael Heironimus wrote: > I believe the syntax you're looking for is: > cvs -d :pserver:[EMAIL PROTECTED]:/cvsroot update -P No such luck... $ pwd /export/home/davecb/projects/samba $ cvs -d :pserver:[EMAIL PROTECTED]:/cvsroot update -P cvs server: Updating . $ ls $

Re: Samba 3.0 Alpha22 + AD Domain, RedHat Kerberos Problems

2003-03-10 Thread ODC
Herb Lewis wrote: The bad encryption type message happens if you have never changed the administrator password on the PDC and you try to join the domain. Did you successfully join the domain? ODC wrote: I believe I have joined the linux machine to the domain successfully. I used net ads JOIN

Re: scalability of print_queue_update

2003-03-10 Thread Martin Pool
On 11 Mar 2003, [EMAIL PROTECTED] wrote: > Doh ! Yeah, that's a really good idea. Wish I'd thought of it :-). Good, I'll send you a patch then. > It would make the stress tests of a certain person in Roseville > much harder to destroy Samba :-). I imagine her work as being similar to somebody te

Re: Urgent: Cvs download has changed unexpectedly

2003-03-10 Thread Michael Heironimus
On Mon, Mar 10, 2003 at 07:42:02PM -0500, Dave Collier-Brown wrote: > Michael Heironimus wrote: > > I believe the syntax you're looking for is: > > cvs -d :pserver:[EMAIL PROTECTED]:/cvsroot update -P > > No such luck... > > $ pwd > /export/home/davecb/projects/samba > $ cvs -d :pserver:[EM

tdb, valgrind, and mmap

2003-03-10 Thread Martin Pool
If you use tdbs under valgrind, and in particular if you run tdbtorture, you may get spurious "uninitialized value" warnings. I think this is because valgrind doesn't understand that the mmap'd area may be written to by other processes. Memory can, from the point of view of the grinded process, s

valgrind_strlen?

2003-03-10 Thread Martin Pool
Some files have a little valgrind_strlen function in there, I suppose to work around a Valgrind bug. Does anyone know what the bug was? There might be a cleaner solution. -- Martin

Re: valgrind_strlen?

2003-03-10 Thread jra
On Tue, Mar 11, 2003 at 04:49:56PM +1100, Martin Pool wrote: > Some files have a little valgrind_strlen function in there, I suppose > to work around a Valgrind bug. Does anyone know what the bug was? > There might be a cleaner solution. Yep, it's a glibc inlining strlen() calls problem, causes a

Re: valgrind_strlen?

2003-03-10 Thread Andrew Bartlett
On Tue, Mar 11, 2003 at 04:49:56PM +1100, Martin Pool wrote: > Some files have a little valgrind_strlen function in there, I suppose > to work around a Valgrind bug. Does anyone know what the bug was? > There might be a cleaner solution. I've not used it myself, and with valgind 1.9.x, gcc 3.2 (R

Re: valgrind_strlen?

2003-03-10 Thread Martin Pool
On 11 Mar 2003, Andrew Bartlett <[EMAIL PROTECTED]> wrote: > On Tue, Mar 11, 2003 at 04:49:56PM +1100, Martin Pool wrote: > > Some files have a little valgrind_strlen function in there, I suppose > > to work around a Valgrind bug. Does anyone know what the bug was? > > There might be a cleaner sol

Re: valgrind_strlen?

2003-03-10 Thread John H Terpstra
On Tue, 11 Mar 2003, Martin Pool wrote: > On 11 Mar 2003, Andrew Bartlett <[EMAIL PROTECTED]> wrote: > > On Tue, Mar 11, 2003 at 04:49:56PM +1100, Martin Pool wrote: > > > Some files have a little valgrind_strlen function in there, I suppose > > > to work around a Valgrind bug. Does anyone know w