Hello, I have installed cups on a linux server (running with RH 9.0). When executing "cupsaddsmb -a -v", I get an error: NT_STATUS_UNSUCCESSFULL, when attemping to execute adddriver". Can someone help on the meaning of this error, and on its reason (cause) ? Please find hereafter a file with result (and the error) of this commmand "cupsaddsmb", for a printer: (See attached file: extrait) Thanks, Best regards, Nadine
>When executing "cupsaddsmb -a -v", I get an error: >NT_STATUS_UNSUCCESSFULL, when attemping to execute >adddriverI assume you are talking about samba 2.2.8a. There is a bug #82, a NULL pointer being dereferenced in a function called strlen_w, called by rpcstr_pull, both in lib/util_unistr.c. Read all about it in https://bugzilla.samba.org/show_bug.cgi?id=82 You may have to apply the fix manually and rebuild samba in order to use the printing services. Cheers Dragan ____________________________________________________________ Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail! http://login.mail.lycos.com/r/referral?aid=27005
nadine.vandois at bull.net wrote on Samba-Digest: > Tue May 20 15:50:50 GMT 2003 > > > Hello, > > > I have installed cups on a linux server (running with RH 9.0). > > > When executing "cupsaddsmb -a -v", I get an error: NT_STATUS_UNSUCCESSFULL, > when attemping to execute adddriver". > > > Can someone help on the meaning of this error, and on its reason (cause) ? Hi, Nadine, have you ever checked out the drafted printing docu for Samba-3.0 at http://www.linuxprinting.org/kpfeifle/SambaPrintHOWTO/ Most of it is true for Samba-2.2.x too. The cupsaddsmb command and the way to do manually everything cupsaddsmb does is well documented there. Have a look. It will help you troubleshoot the problem. > Please find hereafter a file with result (and the error) of this commmand > "cupsaddsmb", for a printer: Nothing there. But better put it up on some webspace (if you have available) > (See attached file: extrait) > > > Thanks, > Best regards, > > Nadine Cheers, Kurt
nadine.vandois@bull.net
2003-May-21 11:19 UTC
[Samba] Re: re: error with cupsaddsmb - adddriver
Hello Dragan, Thanks for your answer. I work with RH 9.0, and with the samba version delivered with this distribution. I checked, and it is samba 2.2.7a - 7.9.0 Is the fix, you have written available for this version too ? Best regards, Nadine ---------------------- R?achemin? par Nadine Vandois/FR/BULL sur 21/05/2003 13:14 --------------------------- "Dragan Krnic" <dkrnic@lycos.com> sur 21/05/2003 00:19:26 Veuillez r?pondre ? dkrnic@lycos.com Pour : nadine.vandois@bull.net cc : samba@lists.samba.org Objet : Re: error with cupsaddsmb - adddriver>When executing "cupsaddsmb -a -v", I get an error: >NT_STATUS_UNSUCCESSFULL, when attemping to execute >adddriverI assume you are talking about samba 2.2.8a. There is a bug #82, a NULL pointer being dereferenced in a function called strlen_w, called by rpcstr_pull, both in lib/util_unistr.c. Read all about it in https://bugzilla.samba.org/show_bug.cgi?id=82 You may have to apply the fix manually and rebuild samba in order to use the printing services. Cheers Dragan ____________________________________________________________ Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail! http://login.mail.lycos.com/r/referral?aid=27005
Hi Nadine,>>> When executing "cupsaddsmb -a -v", I get an error: >>> NT_STATUS_UNSUCCESSFULL, when attemping to execute >>> adddriver >> >>I assume you are talking about samba 2.2.8a. There >>is a bug #82, a NULL pointer being dereferenced in >>a function called strlen_w, called by rpcstr_pull, >>both in lib/util_unistr.c. Read all about it in >> >> https://bugzilla.samba.org/show_bug.cgi?id=82Had you read through this bug correspondence you would have noticed that there are actually 2 bugs, the one I described above is the one that affects "enumdriver 3" subcommand of rpcclient command. The other bug, actually responsible for failing "adddriver" subcommand is also caused by a NULL pointer dereferencing in another function called vasprintf, invoked by sys_adminlog from within the source file rpc_server/srv_spoolss_nt.c, lines 6659 through 6672. Since this function is inessential for the printing service - it logs in a file who, when, and why installed which printer driver - the quoted lines beginning with "/* BEGIN_ADMIN_LOG */" and ending with "/* END_ADMIN_LOG */" may simply be commented out until a new samba version without this bug comes out.>>You may have to apply the fix manually and rebuild >>samba in order to use the printing services.>>I work with RH 9.0, and with the samba version >delivered with this distribution. > >I checked, and it is samba 2.2.7a - 7.9.0To my knowledge the bug was there already in 2.2.6, though one could somehow hack a new driver in. But the best way to check if we're talking about the same pet is to include the following directive in the general section of your smb.conf: panic action = /usr/bin/X11/xterm \ -display <your-display-host-here>:0 \ -e gdb /proc/%d/exe %d restart samba server and execute cupsaddsm again. A debugging window will pop up when the fault occurs and then you can type "backtrace" in that window to unwind call stack from the point of failure back to samba main(). At level #6 it should list vasprintf.>Is the fix, you have written available for this >version too ?Unless RedHat already fixed these bugs in 9.0 and your problem is quite another defect, yes. As a matter of fact, rebuilding samba turned out to be very easy once one applies a little sweat to it. You basically collect all the prerequisite files described in the respective distro samba.spec under /usr/src/packages/SOURCES, fire up "rpm -bb samba.spec" from there and after it is done install the new rpms from /usr/src/packages/RPMS/i386 with "rpm -Uhv *". Cheers Dragan ____________________________________________________________ Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail! http://login.mail.lycos.com/r/referral?aid=27005
Reasonably Related Threads
- Ref: Samba + Cups: don't succeed to print from Windows 2000 station
- cli_pipe: return critical error. Error was Call returnedzerobyte(EOF), hilfe!
- Samba 2.2.8 SEGV in rpcclient getdriver on Solaris 7
- Adding printer driver with cupsaddsmb
- Samba+CUPS+Drivers autodownload