Compile error with cups
Michael Sweet
mike at easysw.com
Mon Jul 23 14:58:24 GMT 2001
Juergen Hasch wrote:
>
> Whe I try to compile the current 2_2 CVS version of samba with cups
> printing I get the following copile error:
> ...
OK, attached is the fix; basically, we default the username to "root",
which will be the authenticated username if the smbd process has
access to the root certificate (only if the logged-in user has admin
priviledges); otherwise the name doesn't matter (but we still set it
if some trusting admin turns authentication off...)
Tested under IRIX...
--
______________________________________________________________________
Michael Sweet, Easy Software Products mike at easysw.com
Printing Software for UNIX http://www.easysw.com
-------------- next part --------------
Index: print_cups.c
===================================================================
RCS file: /cvsroot/samba/source/printing/print_cups.c,v
retrieving revision 1.2.8.4
diff -u -r1.2.8.4 print_cups.c
--- print_cups.c 17 Jul 2001 00:39:12 -0000 1.2.8.4
+++ print_cups.c 23 Jul 2001 14:50:44 -0000
@@ -1064,7 +1064,7 @@
ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri);
ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name",
- NULL, pjob->user);
+ NULL, "root");
/*
* Do the request and get back a response...
@@ -1155,7 +1155,7 @@
ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri);
ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name",
- NULL, pjob->user);
+ NULL, "root");
/*
* Do the request and get back a response...
More information about the samba-technical
mailing list