Hello, It seems that samba does not like to load a printer from /etc/printcap when its name is greater than 15 characters. printcap name = /etc/printcap The code seems to do just that: 109 if (strlen(p) <= MAXPRINTERLEN && *name == '\0' && !has_punctuation) { 110 strlcpy(name, p, sizeof(name)); 111 continue; 112 } 113 114 if (!strchr_m(comment, ' ') && 115 strlen(p) > strlen(comment)) { 116 strlcpy(comment, p, sizeof(comment)); 117 continue; 118 } https://git.samba.org/?p=samba.git;a=blob;f=source3/printing/print_standard.c;h=b5f1056b2e6f1a6e8bbe55d43676e01b1d0811ea;hb=b27c976e2e958998bb17f9b443de3962276bbd4e#l109 However, MAXPRINTERLEN at 15 is not the current reality. It should, at most, warn with something like "WARNING: You have some printer names that are longer than 15 characters. These may not be accessible to some older clients." Could this check be simply removed? Using "printcap name = cups" does not have this limitation.
Yep, MAXPRINTERLEN is only used there so it will cause no harm to just delete it. Thanks for bringing it up !
Created attachment 12650 [details] patch for 4.5
Created attachment 12651 [details] patch for 4.4
Re-assigning to Karolin for inclusion in 4.5.next, 4.4.next.
(In reply to Jeremy Allison from comment #4) Pushed to autobuild-v4-{4,5}-test.
(In reply to Karolin Seeger from comment #5) Pushed to both branches. Closing out bug report. Thanks!