[Samba] Samba 3 + mysql + add new user?

2003-10-02 Thread Miguel Manso
Hi there.

I've installed the new samba3 distribution and I'd like to use the mysql
backend for the autentication instead of the normal passwd file.

I've read the docs and I've added the correct info to smb.conf.

Now, I'd like to create a new user in the database. Is there any script
for that or I must do the INSERT ... by and (or create a script for
that)

Thanks.

-- 
Miguel Manso [EMAIL PROTECTED]

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


Re: [Samba] Slow windows - cups print - CONCLUSION

2003-06-19 Thread Miguel Manso
Hi there,

Quoting Kurt Pfeifle [EMAIL PROTECTED]:
 
 The illegal chars were the commas. It indicates that your
 Linuxprinting.org
 retrieved PPDs were not the current version. Current versions don't have
 this
 issue any more.
 

Check for yourself:

http://www.linuxprinting.org/ppd-o-matic.cgi?driver=hpijsprinter=HP-OfficeJet_5110show=1

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


Re: [Samba] Slow windows - cups print - CONCLUSION

2003-06-19 Thread Miguel Manso
Hi there,

Quoting Kurt Pfeifle [EMAIL PROTECTED]:
 PPD-O-Matic previously used commans inside the field tagged be the
 *ModelName
 keyword. My guess is that *this* was causing the problem with the Adobe
 driver.
 This *is* fixed now.
 
 The online PPD spec test at http://www.cups.org/testppd.php now has no
 complaints
 with the PPD you refer to above.
 
 Could you please re-check with the Adobe driver, if that on still has an
 issue
 with a current HP-OfficeJet_5110.ppd from Linuxprinting.org? Could you
 please
 report back and confirm or reject?
 
 Thanks,
 Kurt
 

These are the results on testing the PPD that comes with the Adobe Postscript
Printer drivers:

Test Results

defprtr2.ppd: PASS
WARNObsolete PPD version 4.0!
REF: Page 42, section 5.2.
WARNLanguageEncoding required by PPD 4.3 spec.
REF: Pages 56-57, section 5.3.
WARNManufacturer required by PPD 4.3 spec.
REF: Pages 58-59, section 5.3.
WARNShortNickName required by PPD 4.3 spec.
REF: Pages 64-65, section 5.3.


And these are the results of the HP OfficeJet 5110 PPD I'm using now:

Test Results

hp.ppd: PASS


This gives you any usefull information?


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


[Samba] Slow windows - cups print (Facts discovered)

2003-06-18 Thread Miguel Manso
Hi there,

Some days ago I've sent a mail talking about some problems printing from a
Windows machine to a printer installed on a Linux server (running CUPS 1.1.19
and SAMBA 2.2.7)

What was happening is when I send a page to be printed, I way 15/20 secs per page.

I've installed the network printer with the correct HP drivers.

After trying a LOT of stuff, I've installed the PostScript Printer Driver from
ADOBE and it just works GREAT. When I print the page it's immediate. Problem is
that it don't print collors. To make things tricker, it prints collors on the
test page.

I'm confused in understanding why when using the HP drivers the print process
takes a lot of time and when using the adobe postscript ones, it's immediate.
Then, I wouldn't care if I needed to use the adobe drivers but I need the colors :)

Any help?

-- 
Miguel Manso [EMAIL PROTECTED]




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


Re: [Samba] Slow windows - cups print (Facts discovered)

2003-06-18 Thread Miguel Manso
Hi there,

I've created a CUPS filter to capture de content it's receiving and the
Postscript sent by adobe's postscript printer driver arrived B/W.

On the windows printer (with the adobe driver) I don't have any option to
activate color. I've something on the Printer Preferences that says: Color: No.

Can't I print colors with this driver? Should I look for a different one?

Any help will be appreciated.

-- 
Miguel Manso [EMAIL PROTECTED]


Quoting Joel Hammer [EMAIL PROTECTED]:

 I am not really sure of your set up. 
 
 I assume you have installed the drivers on the windows client. 
 
 And, I assume you send the job to a raw queue on the linux box. If not,
 maybe your linux filter is removing colors.
 
 I would look at the driver configuration on the windows client and make
 sure you don't have some option checked for BW only.
 
 You might print the job to a file, send it over to
 the linux box, and  open it with gv, and see if you have color.
 
 Sometimes, depending on your setup, the test page goes to a different
 queue than the real print jobs.
 
 Joel
 
 
 
 

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


[Samba] Slow windows - cups print - CONCLUSION

2003-06-18 Thread Miguel Manso
Hi list,

I've just figured it out.

When we're installing the drivers from adobe there's a part where we must
Select the Printer Model. By default it uses the Generic Postscript Printer
(it has an associated PPD for that). We must get a PPD for our printer
(installed on the linux server) from the www.linuxprinting.org, click the
Browse button and select that PPD. After that you'll have a new printer
installed an all will work like a charm.

Note:

Inside the PPD of my printer (HP OfficeJet 5110) I had these line (despite all
the others :) ):

*ShortNickName: HP OfficeJet 5110, hpijs
*NickName:  HP OfficeJet 5110, Foomatic + hpijs (recommended)

On the instalation of the Adobe drivers I had erros saying my printed had
illegal chars on it's name. So, I've replaced the previous lines with:

*ShortNickName: HP OfficeJet 5110
*NickName:  HP OfficeJet 5110


Hope this helps anyone.

Bye,

-- 
Miguel Manso [EMAIL PROTECTED]




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


Re: AW: [Samba] Printing from Windows to Samba takes a LOT of time.

2003-06-15 Thread Miguel Manso
Hi there,

I thought my problem was in Samba because the time is lost in the smbd process
and only after receiving all the information the cups system is triggers. This
was I thought.

After your message, I'll try changing to LPRNG to see it it works. Tomorrow I'll
send more news.

Thanks for the help.

-- 
Miguel Manso [EMAIL PROTECTED]


Quoting Alexandros Gougousoudis [EMAIL PROTECTED]:

 Hi,
 
 I had nearly the same problem. In my opinition it was CUPS, I switched to
 LPRNG and all worked like it should.
 
 ALex
 
 
 --
 
 
 Aloha-Systeme GmbH *  Tel: 030 / 627 08 630
 Wilmersdorfer Str. 79 * 10629 Berlin * Fax: 030 / 627 08 639
 
 Alexandros Gougousoudis *  Mobil:  0172 / 310 64 63
 ** Netzwerke und Linux **  Email:  [EMAIL PROTECTED]
 
 Offizielle Homepage: http://www.aloha-systeme.de/
 
 
 
 
  -Ursprüngliche Nachricht-
  Von: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]
  Auftrag von
  Miguel Manso
  Gesendet: Samstag, 14. Juni 2003 14:14
  An: Karl Banasky
  Cc: [EMAIL PROTECTED]
  Betreff: re: [Samba] Printing from Windows to Samba takes a
  LOT of time.
 
 
  Hi there,
 
  I've tryed the settings you've suggested me and the situation
  is the same.
 
  The software versions I'm using are:
 
  Windows version: XP Pro
  Samba version: 2.2.7a
  CUPS version: 1.1.19-1
 
  Printing a 6 pages document takes 1 minute or so... Again, I
  think it's a samba
  related problem because until the process arrives the CUP
  system, it takes that
  minute. While the time passes, there's a smbd process working
  and working and
  working...
 
  Any clue?
 
  Thx.
 
 
  --
  Miguel Manso [EMAIL PROTECTED]
 
 
  Quoting Karl Banasky [EMAIL PROTECTED]:
 
   I thought you need a guest = yes in your printer file for
  Slowdows to have
   free access to it.  Also I put the printcap name = lpstat
  in the global
   settings.  Though some reading says it should be printcap
  name = cups.
   Your choice.
   It would be helpful to know what samba ver. and cups ver.
  you are running
   even the (maybe more important) version of  Slowdows you
  are using. :)
   Cheers.
  
   Karl-
  
  
  Hi there,
  
  I've a linux server (PII 233, 94mb ram) running
  Mandrake Linux 9.1 with
   an
  HP
  printer attached to it.
  
  I've configured the printer (I'm using CUPS) and it
  works fine. Next,
   I've
  configured samba:
  
  [global]
  .
  .
  .
  workgroup = MYWORKGROUP
  security = share
  log level = 2
  printing = cups
  .
  .
  .
  
  [hp]
  printer = hp
  printable = yes
  path = /var/spool/samba
  create mask = 0700
  
  
  Now, I've installed the printer on a windows machine,
  it worked ok.
   I've
  tryed
  the test page and it works like a charm.
  
  Now, when I thought everything was doing fine, I've
  noticed that for
  documents
  with more pages (4, 5, 6 ...) the printing takes a LOT
  (1,5 minutes for
  those
  examples) to complete.
  
  My first guess was that CUPS was taking too much time
  processing the
   job.
  After
  analising the system with the top utility and
  configured CUPS to
  dissalow
  printing jobs, I've noticed that the time was spent
  before CUPS. The
   smbd
  process takes a lot to end.
  
  I've looking at the /var/log/samba/log.user file and
  I've found this:
  
  
  [2003/06/13 21:19:41, 2]
  rpc_server/srv_spoolss_nt.c:find_printer_index_by_hnd(263)
  find_printer_index_by_hnd: Printer handle not found:
  find_printer_index_by_hnd: Printer handle not found:
   close_printer_handle:
  Invalid handle (OTHER:2442:2255)
  [2003/06/13 21:19:41, 2]
  rpc_server/srv_spoolss_nt.c:find_printer_index_by_hnd(263)
  find_printer_index_by_hnd: Printer handle not found:
  find_printer_index_by_hnd: Printer handle not found:
   close_printer_handle:
  Invalid handle (OTHER:2442:2255)
  [2003/06/13 21:19:41, 2]
  rpc_server/srv_spoolss_nt.c:find_printer_index_by_hnd(263)
  find_printer_index_by_hnd: Printer handle not found:
  find_printer_index_by_hnd: Printer handle not found:
   close_printer_handle:
  Invalid handle (OTHER:2442:2255)
  [2003/06/13 21:19:43, 2]
  rpc_server/srv_spoolss_nt.c:find_printer_index_by_hnd(263)
  find_printer_index_by_hnd: Printer handle not found:
  _spoolss_writeprinter:
  Invalid handle (OTHER:2809:2253)
  
  
  I thought that this only happed when I was printing,
  but no, it's
   allways
  appearing on the log file.
  
  My two guesses for the occurence are:
  
  - My server is weak for the processing that samba needs
  - I've any problem in the samba configuration (judging
  the logs)
  
  Could someone point me to any direction? I think I've
  spent all my
  guesses.
  
  Thanks a lot.
  
  --
  Miguel Manso [EMAIL PROTECTED

re: [Samba] Printing from Windows to Samba takes a LOT of time.

2003-06-14 Thread Miguel Manso
Hi there,

I've tryed the settings you've suggested me and the situation is the same.

The software versions I'm using are:

Windows version: XP Pro
Samba version: 2.2.7a
CUPS version: 1.1.19-1

Printing a 6 pages document takes 1 minute or so... Again, I think it's a samba
related problem because until the process arrives the CUP system, it takes that
minute. While the time passes, there's a smbd process working and working and
working...

Any clue?

Thx.


-- 
Miguel Manso [EMAIL PROTECTED]


Quoting Karl Banasky [EMAIL PROTECTED]:

 I thought you need a guest = yes in your printer file for Slowdows to have
 free access to it.  Also I put the printcap name = lpstat in the global
 settings.  Though some reading says it should be printcap name = cups. 
 Your choice. 
 It would be helpful to know what samba ver. and cups ver. you are running
 even the (maybe more important) version of  Slowdows you are using. :) 
 Cheers.
 
 Karl-
 
 
Hi there,
 
I've a linux server (PII 233, 94mb ram) running Mandrake Linux 9.1 with
 an
HP
printer attached to it.
 
I've configured the printer (I'm using CUPS) and it works fine. Next,
 I've
configured samba:
 
[global]
.
.
.
workgroup = MYWORKGROUP
security = share
log level = 2
printing = cups
.
.
.
 
[hp]
printer = hp
printable = yes
path = /var/spool/samba
create mask = 0700
 
 
Now, I've installed the printer on a windows machine, it worked ok.
 I've
tryed
the test page and it works like a charm.
 
Now, when I thought everything was doing fine, I've noticed that for
documents
with more pages (4, 5, 6 ...) the printing takes a LOT (1,5 minutes for
those
examples) to complete.
 
My first guess was that CUPS was taking too much time processing the
 job.
After
analising the system with the top utility and configured CUPS to
dissalow
printing jobs, I've noticed that the time was spent before CUPS. The
 smbd
process takes a lot to end.
 
I've looking at the /var/log/samba/log.user file and I've found this:
 
 
[2003/06/13 21:19:41, 2]
rpc_server/srv_spoolss_nt.c:find_printer_index_by_hnd(263)
find_printer_index_by_hnd: Printer handle not found:
find_printer_index_by_hnd: Printer handle not found:
 close_printer_handle:
Invalid handle (OTHER:2442:2255)
[2003/06/13 21:19:41, 2]
rpc_server/srv_spoolss_nt.c:find_printer_index_by_hnd(263)
find_printer_index_by_hnd: Printer handle not found:
find_printer_index_by_hnd: Printer handle not found:
 close_printer_handle:
Invalid handle (OTHER:2442:2255)
[2003/06/13 21:19:41, 2]
rpc_server/srv_spoolss_nt.c:find_printer_index_by_hnd(263)
find_printer_index_by_hnd: Printer handle not found:
find_printer_index_by_hnd: Printer handle not found:
 close_printer_handle:
Invalid handle (OTHER:2442:2255)
[2003/06/13 21:19:43, 2]
rpc_server/srv_spoolss_nt.c:find_printer_index_by_hnd(263)
find_printer_index_by_hnd: Printer handle not found:
_spoolss_writeprinter:
Invalid handle (OTHER:2809:2253)
 
 
I thought that this only happed when I was printing, but no, it's
 allways
appearing on the log file.
 
My two guesses for the occurence are:
 
- My server is weak for the processing that samba needs
- I've any problem in the samba configuration (judging the logs)
 
Could someone point me to any direction? I think I've spent all my
guesses.
 
Thanks a lot.
 
-- 
Miguel Manso [EMAIL PROTECTED]
 
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba
 

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


[Samba] Printing from Windows to Samba takes a LOT of time.

2003-06-13 Thread Miguel Manso
Hi there,

I've a linux server (PII 233, 94mb ram) running Mandrake Linux 9.1 with an HP
printer attached to it.

I've configured the printer (I'm using CUPS) and it works fine. Next, I've
configured samba:

[global]
.
.
.
   workgroup = MYWORKGROUP
   security = share
   log level = 2
   printing = cups
.
.
.

[hp]
   printer = hp
   printable = yes
   path = /var/spool/samba
   create mask = 0700


Now, I've installed the printer on a windows machine, it worked ok. I've tryed
the test page and it works like a charm.

Now, when I thought everything was doing fine, I've noticed that for documents
with more pages (4, 5, 6 ...) the printing takes a LOT (1,5 minutes for those
examples) to complete.

My first guess was that CUPS was taking too much time processing the job. After
analising the system with the top utility and configured CUPS to dissalow
printing jobs, I've noticed that the time was spent before CUPS. The smbd
process takes a lot to end.

I've looking at the /var/log/samba/log.user file and I've found this:


[2003/06/13 21:19:41, 2] rpc_server/srv_spoolss_nt.c:find_printer_index_by_hnd(263)
  find_printer_index_by_hnd: Printer handle not found:
find_printer_index_by_hnd: Printer handle not found: close_printer_handle:
Invalid handle (OTHER:2442:2255)
[2003/06/13 21:19:41, 2] rpc_server/srv_spoolss_nt.c:find_printer_index_by_hnd(263)
  find_printer_index_by_hnd: Printer handle not found:
find_printer_index_by_hnd: Printer handle not found: close_printer_handle:
Invalid handle (OTHER:2442:2255)
[2003/06/13 21:19:41, 2] rpc_server/srv_spoolss_nt.c:find_printer_index_by_hnd(263)
  find_printer_index_by_hnd: Printer handle not found:
find_printer_index_by_hnd: Printer handle not found: close_printer_handle:
Invalid handle (OTHER:2442:2255)
[2003/06/13 21:19:43, 2] rpc_server/srv_spoolss_nt.c:find_printer_index_by_hnd(263)
  find_printer_index_by_hnd: Printer handle not found: _spoolss_writeprinter:
Invalid handle (OTHER:2809:2253)


I thought that this only happed when I was printing, but no, it's allways
appearing on the log file.

My two guesses for the occurence are:

- My server is weak for the processing that samba needs
- I've any problem in the samba configuration (judging the logs)

Could someone point me to any direction? I think I've spent all my guesses.

Thanks a lot.

-- 
Miguel Manso [EMAIL PROTECTED]

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