[Samba] printing = cups issue ....

2011-07-19 Thread Tim Kelley
Using samba 3.4.9 and cups 1.4.3 

I have "printing = cups", but for some reason samba is not picking up the cups 
printers or creating the printers share. 

The problem is obviously this, from the samba logs: 
[2011/03/28 14:09:43, 0] printing/print_cups.c:103(cups_connect) 
Unable to connect to CUPS server localhost:631 - Connection refused 

However, cupsd is most certainly listening on localhost:631, and an lpstat -a 
-h localhost gives a list of printers. Why is samba not able to communicate 
with it? I've turned off all security measures (apparmor, etc.) but still no. 

Tim Kelley 
t...@c4tech.com 
504-896-8234 

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


Re: [Samba] Why would nsswitch.conf be needed at all ?

2005-01-20 Thread Tim Kelley
On Thu, Jan 20, 2005 at 04:47:48PM +0100, Frederic Olivie wrote:

> So, why would samba ever need to control that the system is able to
> do this mapping when everything happens internally (sending a job to
> cups is certainly not a case in which a usernam/uid mapping is
> usefull. It would only be if one chooses to use lprm from a shell
> under one of the domain users) ?

It does if you want users to be able to manipulate their print jobs, no?


-- 
  _   _   _   _   _   _   _   _   _   _   _   _   _  
 / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ 
( t | i | m | @ | i | t | . | k | p | t | . | c | c )
 \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ 
GPG key fingerprint = 1DEE CD9B 4808 F608 FBBF  DC21 2807 D7D3 09CA 85BF
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] cups / samba job control issue

2004-11-23 Thread Tim Kelley
Hi all,

I am using cups 1.1.22 with samba 2.2.12 along with winbind, and samba
configured as a domain member. For now I'm not able to switch to samba3.


My problem is that users printing from windows are unable to control
their jobs. Pause, resume or cancel do not work. In windows, the
"error processing command" is returned. In cups, when viewing
/var/log/cups/access.log, I'll see a line like:

localhost - - [23/Nov/2004:15:02:59 -0600] "POST /jobs HTTP/1.1" 401 0

"401" error code indicating "unauthorized". Also note there is no
username in the second field, indicating the username was not passed
from samba to cups(?), which I think is the heart of the problem.

I notice that even though I have:

winbind enum users = Yes
winbind enum groups = Yes
winbind use default domain = Yes

 ... that "smbstatus" still appends my DOMAIN+ in front of the username -
although "getent passwd" or "wbinfo -u" do not. 

When jobs are submitted, this works - I'll see the the username
properly in cups:

laserjet-queue username 567 [23/Nov/2004:15:19:50 -0600] 1 1 - winpc

In samba I get the following in the logs when attempting to manipulate
a  (my own) job:

[2004/11/23 15:56:25, 0] printing/print_cups.c:cups_job_delete(482)
  Unable to cancel job 566 - client-error-not-authorized
[2004/11/23 15:56:40, 0] printing/print_cups.c:cups_job_pause(572)
  Unable to hold job 569 - client-error-not-authorized

I have in [global]

printing = cups
printcap name = cups

I have tried expressly defining the lp commands in my [printers] but
that does not help either (it's my impression printing = cups does not
use that). This seems clearly an auth problem ...

In cups, I have for:

AuthType Basic
AuthClass User


What do I need to do to give users control over their print jobs? If I
login to the print server (say, via ssh) with a windows domain
account, I can control my print jobs just fine.

I don't think this has anything to do with pam, pam is working fine
and I can log in to this machine with a windows account and get a
shell.

If you wish to see the (sanitized) smb.conf for this system, please see

http://www.it.kpt.cc/~tpk/smb.conf.txt


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


Re: [Samba] Samba 3 and CUPs printer causes explorer to abend

2003-11-15 Thread Tim Kelley
On Friday 14 November 2003 7:01 pm, John H Terpstra wrote:

> If you have followed the information presented in the HOWTO, then
> please document precisely how I may reproduce your problem. This will
> need to document every step while making no assumptions that whoever
> is following them has any intelligence. We can fix only a problem we
> can reproduce.


I had the same problem with samba 3 and cups.

Versions: samba 3.0 & 3.0.1rc1, cups 1.1.19, red hat 9, red hat ES 2.1, 
Windows 2K client.  Samba and cups both compiled and installed from 
vanilla sources.  Intel PC samba server.

Environment: Windows 2K PDC with ADS (mixed mode), samba configured as 
domain member (no ADS), using winbind to integrate the domain accounts.
Roughly 100 printers shared through samba/cups, all jet direct.  Samba 
set up to export printers to windows via cups.

Everything worked fine, winbind was working great, samba was exporting 
the printers, uploading the drivers to the $print share works great.  
Installing the printer in Windows worked fine.  File shares worked 
fine, no problems there.

However, accessing the printer properties from within windows after 
installing the driver would cause the application to crash, 100% of the 
time (the error IIRC was something to do with C++).  I cranked up my 
(samba) log level to 10 and couldn't find anything useful to debug 
this, everything looked normal.  Nada in the windowz logs either, but I 
kinda expect that.

I regret I don't have the conf files and exact errors to give you, since 
I reverted back to samba 2.2.8a and it is working great (this was a 
while ago).  However, I doubt seriously it had anything to do with 
configuration of samba (which in this case is really pretty 
straightforward and simple), more likely it was some mystifying bug 
between samba and windows 2k or my particular environment.

Still, I'd like to resolve this issue; I'll be setting up another one as 
a test and give it another go ... I'm kinda surprised more people 
aren't having this problem since I was unable to make it work at all.

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


Re: [Samba] Samba 3 and CUPs printer causes explorer to abend

2003-11-15 Thread Tim Kelley
On Friday 14 November 2003 6:52 pm, Orwig, Paul wrote:
> I am attempting to setup a Samba printserver to replace our Windows
> Print servers.
> I have defined a few printers in CUPS, some raw, and some not.
> When I use the GUi to upload the drivers, The dialog works, however
> after that is accomplished, any attempt to get the printer properties
> or to use the printer from my W2K system (cpq0277) causes explorer to
> ABEND.

I had this exact problem, in fact, if you attempted to get the printer 
properties from any application it woud crash the app.  I had to back 
down to 2.2.8a.  

I was using Cups 1.1.19, samba 3.0 and also 3.0.1rc1

Setting up the "point and print" stuff went fine.  After the driver was 
installed to samba, installing and accessing the printer would crash 
any windows app.

There wasn't anything useful in my logs, either.

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


Re: [Samba] Samba with Domain User accounts

2003-11-08 Thread Tim Kelley
On Friday 07 November 2003 5:08 pm, anth jaz wrote:
> I am trying to find an option to M$ file server under Linux.
> Everything to this point is M$. Whether anybody goes for it or not, I
> would like to put the option out there for choice. One of the
> important necessities is that this doesn't become any more
> complicated for the EU. As soon as you say Linux to the bosses they
> think more complex for the user and the users have trouble enough
> logging in to there computers. I am a Linux newbie trying to become
> more efficient. At present, I am using RH9, Samba 3, and have
> security = Domain and have joined the domain successfully. I have a
> user joe created on the Linux/Samba server and when user joe logs
> onto his Win2k computer on the NT domain he can access the Samba
> share I have configured like this:

 Yes, you need to use winbind, which came with your samba distribution.  
Winbind add the domain users to the unix environment, so you don't need 
unix accounts for them to log in.  Otherwise, you would need a file to 
map windows users to unix users.

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


Re: [Samba] cupsd and winbind ...

2003-11-05 Thread Tim Kelley
On Wednesday 05 November 2003 8:12 pm, Tim Kelley wrote:

> yet "getent group" shows all the unix groups ...

err .. excuse me, I mean the domain groups ...

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


[Samba] cupsd and winbind ...

2003-11-05 Thread Tim Kelley
I know this is only tangential to samba, but ...

If in my cupsd.conf, should I be able to do something like:


AuthType Basic
AuthClass Group
AuthGroupName DOMAIN+Domain\ Admins


I would think giving cupsd domain credentials which have membership in 
the proper group would authenticate you ... it isn't working .. yet 
"getent group" shows all the unix groups ...

... or am I having a clear text passwd problem?


Same for "AuthClass User"

Is this supposed to work?

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


Re: [Samba] samba3, network printing, additional problems

2003-11-01 Thread Tim Kelley
On Wednesday 29 October 2003 11:05 am, [EMAIL PROTECTED] wrote:
> Hello,
>   First of all my thanks to everyone for their suggestions. I'm still
> having an issue getting this network printer going. I'm now getting a
> windows error from explorer.exe, i've checked all the windows system,
> application, and security logs and of course the error is not in
> them. I then turned samba's debug level to 10, reloaded it and tried
> again to access the printer. This error with explorer only occurs
> when i right click on the printer and select properties to add the
> driver. I'd like to use apw but i do need to get this working. Does
> anyone have this particular printer, an hp5550, working in a setting
> like this? I am trying to figure out what specific driver files are
> needed so i can pass them to rpcclient. It looks like the drivers on
> disk are in some kind of compressed form.

I have a similar problem with 3.0 which is unfortunately unresolved ... 
my problem was that after installing the driver through APW, any 
windows application accessing the printer would crash.

Were you able to resolve this?

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


Re: [Samba] cups printing questions

2003-10-25 Thread Tim Kelley
On Tuesday 21 October 2003 11:59 am, Mester wrote:

> and the other question: for every print jobs the following lines
> appears in the error_log file;



In your cupsd.conf, do you have 

Default Language en

?

(or whichever language it is you want?)

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


Re: [Samba] Should I use winbind in this case

2003-10-24 Thread Tim Kelley
On Friday 24 October 2003 3:28 pm, Douglas Phillipson wrote:
> I can't seem to get an answer to this question...
>
> Should I use winbind if my Domain Controller is a samba machine?  Or
> is it only useful if my DC is a real MS DC and I have other
> unix/linux client machines?

It's still useful.  

If you have other unix machines, they can authenticate via samba/windows 
domain mechanism, without having a local machine (unix) account.

Other samba file or print servers can use it to authenticate domain 
users.

In either case, it can't hurt.

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


Re: [Samba] Help with CUPS, Windows, d/l print drivers

2003-10-19 Thread Tim Kelley
On Sunday 19 October 2003 7:26 am, Scott Ehrlich wrote:
> I'm not seeing where in your reply it says anything about configuring
> CUPS to permit the print drivers to automatically get installed on
> the client machine.
>
> Maybe I'm on the wrong list for this question?

This is done through samba, not cups.


There is a utility called "cupsaddsmb" but this offers the postscript 
ppd to your windows clients, probably not what you want.  With samba 
you just get the permissions right, then add the print driver the same 
way you do as if you were running all windows.

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


Re: [Samba] Help with CUPS, Windows, d/l print drivers

2003-10-18 Thread Tim Kelley
On Saturday 18 October 2003 6:37 pm, Scott Ehrlich wrote:
> I've seen various posts to this and other lists about CUPS, Windows
> printing, and downloading of drivers for an IPP printer installed on
> a Windows machine, the printer being serviced by CUPS.
>
> I have downloaded the respective Windows 9x, 2K, and XP drivers from
> manufacturers' sites, and want to find a way to implement them to
> CUPS, so if anyone opts to mount a printer via http, the drivers will
> automatically download for them, just as they would for mounting the
> printer off our old NT 4 Server (which currently relays to CUPS).
>
> We've had CUPS running successfully for over a year, and the final
> piece now is to transfer existing Windows users off our NT server and
> directly to CUPS, with drivers automatically installing for them.

Once you set "printing = cups" in your smb.conf, the printers defined 
within cups will automagically show up as printers hosted by this 
machine to windows.

If you are running an NT domain, you should also get winbindd working 
properly, and define a "print admin" user in your smb.conf.

All you need to to add a printer is go the the printers$ share on the 
samba machine from windows and take a look at the "Advanced" tab.  If 
it is greyed out, you have a permissions problem most likely (look at 
the print admin" setting).  You will also need to set the permissions 
properly on the spool directory so that users can write to it (or they 
will not be able to print).

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


Re: [Samba] winbindd on PDC problems ...

2003-10-18 Thread Tim Kelley
On Saturday 18 October 2003 9:04 am, Tim Kelley wrote:
> I am running a samba 2.2.7a machine as a PDC, and everything is
> working fine, except on the PDC itself.  If I do a wbinfo -t on the
> PDC, I get "Secret is bad".  Similarly, if I do wbinfo -u, it returns
> "Error looking up domain users".
>
> Everything works fine on a domain member workstation.  On the PDC
> winbind is set up correctly to do this ... am I missing something?


errr ... excuse me, this is samba 2.2.3a on the PDC, not 2.2.7.

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


Re: [Samba] Nmbd in a infinite loop, doing nothing and sucking 99%CPU (really)

2003-10-18 Thread Tim Kelley
On Saturday 18 October 2003 9:03 am, Reinaldo Brandão Gomes wrote:
> Hello,

> Have some clue on what can be happening?
>

Hmm ... in your smb.conf files, how many boxes have "wins support = 
yes"?

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


[Samba] winbindd on PDC problems ...

2003-10-18 Thread Tim Kelley
I am running a samba 2.2.7a machine as a PDC, and everything is working 
fine, except on the PDC itself.  If I do a wbinfo -t on the PDC, I get 
"Secret is bad".  Similarly, if I do wbinfo -u, it returns "Error 
looking up domain users".

Everything works fine on a domain member workstation.  On the PDC 
winbind is set up correctly to do this ... am I missing something?

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