You are not logged in.

#26 2019-05-10 11:54:01

ledidi
Member
Registered: 2019-05-03
Posts: 4

Re: CUPS: Authentication required for printing document "...".

Salkay wrote:

I'm also hitting this issue.

ledidi wrote:

I downgraded smbclient, libwbclient and samba to Version 4.9.5 and it's working again cool

@ledidi, was this all you did? I tried to downgrade these packages, which also included reinstalling the gamin dependency, but it's still not printing for me. FWIW I also tried reverting /etc/cups/printers.conf.


Exactly... That's all I did (I installed gamin too)

Offline

#27 2019-05-13 22:12:41

Salkay
Member
Registered: 2014-05-22
Posts: 636

Re: CUPS: Authentication required for printing document "...".

ledidi wrote:

Exactly... That's all I did (I installed gamin too)

Brilliant! Thank you for the response. I re-checked and it seemed that I didn't revert /etc/cups/printers.conf fully.

In my case, cups was automatically adding AuthInfoRequired username,password, whereas my backup did not have that line. I also used to have the username and password in plaintext in the file (I only just realised that!). The update also wiped those credentials. Once I reverted that too, it worked again.

Offline

#28 2019-05-14 19:32:01

loqs
Member
Registered: 2014-03-06
Posts: 18,041

Re: CUPS: Authentication required for printing document "...".

Please test https://bugs.archlinux.org/task/62521#comment179258
The bisection between 4.9.5 and 4.10.2 involves switching dependencies which makes the process more difficult.
The commit to be tested is the last commit than can be built before ldb has to be switched is it good or bad?

Offline

#29 2019-05-16 00:02:15

Salkay
Member
Registered: 2014-05-22
Posts: 636

Re: CUPS: Authentication required for printing document "...".

@loqs I'm happy to test, but I'm not exactly sure what you are asking here. Are you saying extract the attachments, then makepkg and pacman -U each packages before the next? What are the -I flags for? I'm not exactly sure what you mean by "build" here.

Offline

#30 2019-05-16 00:11:57

loqs
Member
Registered: 2014-03-06
Posts: 18,041

Re: CUPS: Authentication required for printing document "...".

each tar.gz will extract to a folder of that name then

pacman -S devtools #this provides extra-extra-x86_64-build
cd talloc
extra-x86_64-build
cd ../tdb
extra-x86_64-build
cd ../tevent
extra-x86_64-build -- -I ../talloc/talloc-2.1.16-1-x86_64.pkg.tar.xz
cd ../ldb
extra-x86_64-build -- -I ../tdb/tdb-1.3.18-2-x86_64.pkg.tar.xz -I ../talloc/talloc-2.1.16-1-x86_64.pkg.tar.xz -I ../tevent/tevent-1\:0.9.39-2-x86_64.pkg.tar.xz
cd ../samba-git
extra-x86_64-build -- -I ../tdb/tdb-1.3.18-2-x86_64.pkg.tar.xz -I ../talloc/talloc-2.1.16-1-x86_64.pkg.tar.xz -I ../tevent/tevent-1\:0.9.39-2-x86_64.pkg.tar.xz -I ../ldb/ldb-1\:1.4.6-1-x86_64.pkg.tar.xz
cd ..
pacman -U talloc/talloc-2.1.16-1-x86_64.pkg.tar.xz tdb/tdb-1.3.18-2-x86_64.pkg.tar.xz tevent/tevent-1\:0.9.39-2-x86_64.pkg.tar.xz ldb/ldb-1\:1.4.6-1-x86_64.pkg.tar.xz samba-git/samba-git-4.9.5.r0.g214ec9cf8f4-1-x86_64.pkg.tar.xz 

Offline

#31 2019-05-16 01:12:48

Salkay
Member
Registered: 2014-05-22
Posts: 636

Re: CUPS: Authentication required for printing document "...".

Thank you. However, I'm getting the following error:

$ extra-x86_64-build
...
==> Verifying source file signatures with gpg...
    talloc-2.1.16.tar ... FAILED (unknown public key 4793916113084025)
==> ERROR: One or more PGP signatures could not be verified!
==> ERROR: Could not download sources.

Normally with makepkg I'd just --skippgpcheck, but this doesn't work for extra-x86_64-build.

Offline

#32 2019-05-16 01:29:27

loqs
Member
Registered: 2014-03-06
Posts: 18,041

Re: CUPS: Authentication required for printing document "...".

gpg --receive-keys 4793916113084025

To later remove the key

gpg --delete-keys 4793916113084025

Offline

#33 2019-05-16 02:10:34

Salkay
Member
Registered: 2014-05-22
Posts: 636

Re: CUPS: Authentication required for printing document "...".

Thanks loqs. I got up to building samba-git, but it failed with:

[2657/3886] Compiling source3/smbd/uid.c
../source3/smbd/uid.c:226:21: error: variable ‘smbd_impersonate_debug_ops’ has initializer but incomplete type
 static const struct tevent_wrapper_ops smbd_impersonate_debug_ops = {
                     ^~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:227:3: error: ‘const struct tevent_wrapper_ops’ has no member named ‘name’
  .name    = "smbd_impersonate_debug",
   ^~~~
../source3/smbd/uid.c:227:13: warning: excess elements in struct initializer
  .name    = "smbd_impersonate_debug",
             ^~~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:227:13: note: (near initialization for ‘smbd_impersonate_debug_ops’)
../source3/smbd/uid.c:228:3: error: ‘const struct tevent_wrapper_ops’ has no member named ‘before_use’
  .before_use   = smbd_impersonate_debug_before_use,
   ^~~~~~~~~~
../source3/smbd/uid.c:228:18: warning: excess elements in struct initializer
  .before_use   = smbd_impersonate_debug_before_use,
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:228:18: note: (near initialization for ‘smbd_impersonate_debug_ops’)
../source3/smbd/uid.c:229:3: error: ‘const struct tevent_wrapper_ops’ has no member named ‘after_use’
  .after_use   = smbd_impersonate_debug_after_use,
   ^~~~~~~~~
../source3/smbd/uid.c:229:17: warning: excess elements in struct initializer
  .after_use   = smbd_impersonate_debug_after_use,
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:229:17: note: (near initialization for ‘smbd_impersonate_debug_ops’)
../source3/smbd/uid.c:230:3: error: ‘const struct tevent_wrapper_ops’ has no member named ‘before_fd_handler’
  .before_fd_handler  = smbd_impersonate_debug_before_fd_handler,
   ^~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:230:24: warning: excess elements in struct initializer
  .before_fd_handler  = smbd_impersonate_debug_before_fd_handler,
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:230:24: note: (near initialization for ‘smbd_impersonate_debug_ops’)
../source3/smbd/uid.c:231:3: error: ‘const struct tevent_wrapper_ops’ has no member named ‘after_fd_handler’
  .after_fd_handler  = smbd_impersonate_debug_after_fd_handler,
   ^~~~~~~~~~~~~~~~
../source3/smbd/uid.c:231:23: warning: excess elements in struct initializer
  .after_fd_handler  = smbd_impersonate_debug_after_fd_handler,
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:231:23: note: (near initialization for ‘smbd_impersonate_debug_ops’)
../source3/smbd/uid.c:232:3: error: ‘const struct tevent_wrapper_ops’ has no member named ‘before_timer_handler’
  .before_timer_handler  = smbd_impersonate_debug_before_timer_handler,
   ^~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:232:27: warning: excess elements in struct initializer
  .before_timer_handler  = smbd_impersonate_debug_before_timer_handler,
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:232:27: note: (near initialization for ‘smbd_impersonate_debug_ops’)
../source3/smbd/uid.c:233:3: error: ‘const struct tevent_wrapper_ops’ has no member named ‘after_timer_handler’
  .after_timer_handler  = smbd_impersonate_debug_after_timer_handler,
   ^~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:233:26: warning: excess elements in struct initializer
  .after_timer_handler  = smbd_impersonate_debug_after_timer_handler,
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:233:26: note: (near initialization for ‘smbd_impersonate_debug_ops’)
../source3/smbd/uid.c:234:3: error: ‘const struct tevent_wrapper_ops’ has no member named ‘before_immediate_handler’
  .before_immediate_handler = smbd_impersonate_debug_before_immediate_handler,
   ^~~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:234:30: warning: excess elements in struct initializer
  .before_immediate_handler = smbd_impersonate_debug_before_immediate_handler,
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:234:30: note: (near initialization for ‘smbd_impersonate_debug_ops’)
../source3/smbd/uid.c:235:3: error: ‘const struct tevent_wrapper_ops’ has no member named ‘after_immediate_handler’
  .after_immediate_handler = smbd_impersonate_debug_after_immediate_handler,
   ^~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:235:29: warning: excess elements in struct initializer
  .after_immediate_handler = smbd_impersonate_debug_after_immediate_handler,
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:235:29: note: (near initialization for ‘smbd_impersonate_debug_ops’)
../source3/smbd/uid.c:236:3: error: ‘const struct tevent_wrapper_ops’ has no member named ‘before_signal_handler’
  .before_signal_handler  = smbd_impersonate_debug_before_signal_handler,
   ^~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:236:28: warning: excess elements in struct initializer
  .before_signal_handler  = smbd_impersonate_debug_before_signal_handler,
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:236:28: note: (near initialization for ‘smbd_impersonate_debug_ops’)
../source3/smbd/uid.c:237:3: error: ‘const struct tevent_wrapper_ops’ has no member named ‘after_signal_handler’
  .after_signal_handler  = smbd_impersonate_debug_after_signal_handler,
   ^~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:237:27: warning: excess elements in struct initializer
  .after_signal_handler  = smbd_impersonate_debug_after_signal_handler,
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:237:27: note: (near initialization for ‘smbd_impersonate_debug_ops’)
../source3/smbd/uid.c: In function ‘_smbd_impersonate_debug_create’:
../source3/smbd/uid.c:248:12: warning: implicit declaration of function ‘tevent_context_wrapper_create’; did you mean ‘tevent_context_init_byname’? [-Wimplicit-function-declaration]
  wrap_ev = tevent_context_wrapper_create(main_ev,
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            tevent_context_init_byname
../source3/smbd/uid.c:252:6: error: expected expression before ‘struct’
      struct smbd_impersonate_debug_state);
      ^~~~~~
../source3/smbd/uid.c: At top level:
../source3/smbd/uid.c:1229:21: error: variable ‘smbd_impersonate_conn_vuid_ops’ has initializer but incomplete type
 static const struct tevent_wrapper_ops smbd_impersonate_conn_vuid_ops = {
                     ^~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1230:3: error: ‘const struct tevent_wrapper_ops’ has no member named ‘name’
  .name    = "smbd_impersonate_conn_vuid",
   ^~~~
../source3/smbd/uid.c:1230:13: warning: excess elements in struct initializer
  .name    = "smbd_impersonate_conn_vuid",
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1230:13: note: (near initialization for ‘smbd_impersonate_conn_vuid_ops’)
../source3/smbd/uid.c:1231:3: error: ‘const struct tevent_wrapper_ops’ has no member named ‘before_use’
  .before_use   = smbd_impersonate_conn_vuid_before_use,
   ^~~~~~~~~~
../source3/smbd/uid.c:1231:18: warning: excess elements in struct initializer
  .before_use   = smbd_impersonate_conn_vuid_before_use,
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1231:18: note: (near initialization for ‘smbd_impersonate_conn_vuid_ops’)
../source3/smbd/uid.c:1232:3: error: ‘const struct tevent_wrapper_ops’ has no member named ‘after_use’
  .after_use   = smbd_impersonate_conn_vuid_after_use,
   ^~~~~~~~~
../source3/smbd/uid.c:1232:17: warning: excess elements in struct initializer
  .after_use   = smbd_impersonate_conn_vuid_after_use,
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1232:17: note: (near initialization for ‘smbd_impersonate_conn_vuid_ops’)
../source3/smbd/uid.c:1233:3: error: ‘const struct tevent_wrapper_ops’ has no member named ‘before_fd_handler’
  .before_fd_handler  = smbd_impersonate_conn_vuid_before_fd_handler,
   ^~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1233:24: warning: excess elements in struct initializer
  .before_fd_handler  = smbd_impersonate_conn_vuid_before_fd_handler,
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1233:24: note: (near initialization for ‘smbd_impersonate_conn_vuid_ops’)
../source3/smbd/uid.c:1234:3: error: ‘const struct tevent_wrapper_ops’ has no member named ‘after_fd_handler’
  .after_fd_handler  = smbd_impersonate_conn_vuid_after_fd_handler,
   ^~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1234:23: warning: excess elements in struct initializer
  .after_fd_handler  = smbd_impersonate_conn_vuid_after_fd_handler,
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1234:23: note: (near initialization for ‘smbd_impersonate_conn_vuid_ops’)
../source3/smbd/uid.c:1235:3: error: ‘const struct tevent_wrapper_ops’ has no member named ‘before_timer_handler’
  .before_timer_handler  = smbd_impersonate_conn_vuid_before_timer_handler,
   ^~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1235:27: warning: excess elements in struct initializer
  .before_timer_handler  = smbd_impersonate_conn_vuid_before_timer_handler,
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1235:27: note: (near initialization for ‘smbd_impersonate_conn_vuid_ops’)
../source3/smbd/uid.c:1236:3: error: ‘const struct tevent_wrapper_ops’ has no member named ‘after_timer_handler’
  .after_timer_handler  = smbd_impersonate_conn_vuid_after_timer_handler,
   ^~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1236:26: warning: excess elements in struct initializer
  .after_timer_handler  = smbd_impersonate_conn_vuid_after_timer_handler,
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1236:26: note: (near initialization for ‘smbd_impersonate_conn_vuid_ops’)
../source3/smbd/uid.c:1237:3: error: ‘const struct tevent_wrapper_ops’ has no member named ‘before_immediate_handler’
  .before_immediate_handler = smbd_impersonate_conn_vuid_before_immediate_handler,
   ^~~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1237:30: warning: excess elements in struct initializer
  .before_immediate_handler = smbd_impersonate_conn_vuid_before_immediate_handler,
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1237:30: note: (near initialization for ‘smbd_impersonate_conn_vuid_ops’)
../source3/smbd/uid.c:1238:3: error: ‘const struct tevent_wrapper_ops’ has no member named ‘after_immediate_handler’
  .after_immediate_handler = smbd_impersonate_conn_vuid_after_immediate_handler,
   ^~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1238:29: warning: excess elements in struct initializer
  .after_immediate_handler = smbd_impersonate_conn_vuid_after_immediate_handler,
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1238:29: note: (near initialization for ‘smbd_impersonate_conn_vuid_ops’)
../source3/smbd/uid.c:1239:3: error: ‘const struct tevent_wrapper_ops’ has no member named ‘before_signal_handler’
  .before_signal_handler  = smbd_impersonate_conn_vuid_before_signal_handler,
   ^~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1239:28: warning: excess elements in struct initializer
  .before_signal_handler  = smbd_impersonate_conn_vuid_before_signal_handler,
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1239:28: note: (near initialization for ‘smbd_impersonate_conn_vuid_ops’)
../source3/smbd/uid.c:1240:3: error: ‘const struct tevent_wrapper_ops’ has no member named ‘after_signal_handler’
  .after_signal_handler  = smbd_impersonate_conn_vuid_after_signal_handler,
   ^~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1240:27: warning: excess elements in struct initializer
  .after_signal_handler  = smbd_impersonate_conn_vuid_after_signal_handler,
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1240:27: note: (near initialization for ‘smbd_impersonate_conn_vuid_ops’)
../source3/smbd/uid.c: In function ‘smbd_impersonate_conn_vuid_create’:
../source3/smbd/uid.c:1255:9: error: expected expression before ‘struct’
         struct smbd_impersonate_conn_vuid_state);
         ^~~~~~
../source3/smbd/uid.c: At top level:
../source3/smbd/uid.c:1508:21: error: variable ‘smbd_impersonate_conn_sess_ops’ has initializer but incomplete type
 static const struct tevent_wrapper_ops smbd_impersonate_conn_sess_ops = {
                     ^~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1509:3: error: ‘const struct tevent_wrapper_ops’ has no member named ‘name’
  .name    = "smbd_impersonate_conn_sess",
   ^~~~
../source3/smbd/uid.c:1509:13: warning: excess elements in struct initializer
  .name    = "smbd_impersonate_conn_sess",
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1509:13: note: (near initialization for ‘smbd_impersonate_conn_sess_ops’)
../source3/smbd/uid.c:1510:3: error: ‘const struct tevent_wrapper_ops’ has no member named ‘before_use’
  .before_use   = smbd_impersonate_conn_sess_before_use,
   ^~~~~~~~~~
../source3/smbd/uid.c:1510:18: warning: excess elements in struct initializer
  .before_use   = smbd_impersonate_conn_sess_before_use,
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1510:18: note: (near initialization for ‘smbd_impersonate_conn_sess_ops’)
../source3/smbd/uid.c:1511:3: error: ‘const struct tevent_wrapper_ops’ has no member named ‘after_use’
  .after_use   = smbd_impersonate_conn_sess_after_use,
   ^~~~~~~~~
../source3/smbd/uid.c:1511:17: warning: excess elements in struct initializer
  .after_use   = smbd_impersonate_conn_sess_after_use,
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1511:17: note: (near initialization for ‘smbd_impersonate_conn_sess_ops’)
../source3/smbd/uid.c:1512:3: error: ‘const struct tevent_wrapper_ops’ has no member named ‘before_fd_handler’
  .before_fd_handler  = smbd_impersonate_conn_sess_before_fd_handler,
   ^~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1512:24: warning: excess elements in struct initializer
  .before_fd_handler  = smbd_impersonate_conn_sess_before_fd_handler,
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1512:24: note: (near initialization for ‘smbd_impersonate_conn_sess_ops’)
../source3/smbd/uid.c:1513:3: error: ‘const struct tevent_wrapper_ops’ has no member named ‘after_fd_handler’
  .after_fd_handler  = smbd_impersonate_conn_sess_after_fd_handler,
   ^~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1513:23: warning: excess elements in struct initializer
  .after_fd_handler  = smbd_impersonate_conn_sess_after_fd_handler,
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1513:23: note: (near initialization for ‘smbd_impersonate_conn_sess_ops’)
../source3/smbd/uid.c:1514:3: error: ‘const struct tevent_wrapper_ops’ has no member named ‘before_timer_handler’
  .before_timer_handler  = smbd_impersonate_conn_sess_before_timer_handler,
   ^~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1514:27: warning: excess elements in struct initializer
  .before_timer_handler  = smbd_impersonate_conn_sess_before_timer_handler,
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1514:27: note: (near initialization for ‘smbd_impersonate_conn_sess_ops’)
../source3/smbd/uid.c:1515:3: error: ‘const struct tevent_wrapper_ops’ has no member named ‘after_timer_handler’
  .after_timer_handler  = smbd_impersonate_conn_sess_after_timer_handler,
   ^~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1515:26: warning: excess elements in struct initializer
  .after_timer_handler  = smbd_impersonate_conn_sess_after_timer_handler,
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1515:26: note: (near initialization for ‘smbd_impersonate_conn_sess_ops’)
../source3/smbd/uid.c:1516:3: error: ‘const struct tevent_wrapper_ops’ has no member named ‘before_immediate_handler’
  .before_immediate_handler = smbd_impersonate_conn_sess_before_immediate_handler,
   ^~~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1516:30: warning: excess elements in struct initializer
  .before_immediate_handler = smbd_impersonate_conn_sess_before_immediate_handler,
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1516:30: note: (near initialization for ‘smbd_impersonate_conn_sess_ops’)
../source3/smbd/uid.c:1517:3: error: ‘const struct tevent_wrapper_ops’ has no member named ‘after_immediate_handler’
  .after_immediate_handler = smbd_impersonate_conn_sess_after_immediate_handler,
   ^~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1517:29: warning: excess elements in struct initializer
  .after_immediate_handler = smbd_impersonate_conn_sess_after_immediate_handler,
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1517:29: note: (near initialization for ‘smbd_impersonate_conn_sess_ops’)
../source3/smbd/uid.c:1518:3: error: ‘const struct tevent_wrapper_ops’ has no member named ‘before_signal_handler’
  .before_signal_handler  = smbd_impersonate_conn_sess_before_signal_handler,
   ^~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1518:28: warning: excess elements in struct initializer
  .before_signal_handler  = smbd_impersonate_conn_sess_before_signal_handler,
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1518:28: note: (near initialization for ‘smbd_impersonate_conn_sess_ops’)
../source3/smbd/uid.c:1519:3: error: ‘const struct tevent_wrapper_ops’ has no member named ‘after_signal_handler’
  .after_signal_handler  = smbd_impersonate_conn_sess_after_signal_handler,
   ^~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1519:27: warning: excess elements in struct initializer
  .after_signal_handler  = smbd_impersonate_conn_sess_after_signal_handler,
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1519:27: note: (near initialization for ‘smbd_impersonate_conn_sess_ops’)
../source3/smbd/uid.c: In function ‘smbd_impersonate_conn_sess_create’:
../source3/smbd/uid.c:1534:9: error: expected expression before ‘struct’
         struct smbd_impersonate_conn_sess_state);
         ^~~~~~
../source3/smbd/uid.c: At top level:
../source3/smbd/uid.c:1698:21: error: variable ‘smbd_impersonate_root_ops’ has initializer but incomplete type
 static const struct tevent_wrapper_ops smbd_impersonate_root_ops = {
                     ^~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1699:3: error: ‘const struct tevent_wrapper_ops’ has no member named ‘name’
  .name    = "smbd_impersonate_root",
   ^~~~
../source3/smbd/uid.c:1699:13: warning: excess elements in struct initializer
  .name    = "smbd_impersonate_root",
             ^~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1699:13: note: (near initialization for ‘smbd_impersonate_root_ops’)
../source3/smbd/uid.c:1700:3: error: ‘const struct tevent_wrapper_ops’ has no member named ‘before_use’
  .before_use   = smbd_impersonate_root_before_use,
   ^~~~~~~~~~
../source3/smbd/uid.c:1700:18: warning: excess elements in struct initializer
  .before_use   = smbd_impersonate_root_before_use,
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1700:18: note: (near initialization for ‘smbd_impersonate_root_ops’)
../source3/smbd/uid.c:1701:3: error: ‘const struct tevent_wrapper_ops’ has no member named ‘after_use’
  .after_use   = smbd_impersonate_root_after_use,
   ^~~~~~~~~
../source3/smbd/uid.c:1701:17: warning: excess elements in struct initializer
  .after_use   = smbd_impersonate_root_after_use,
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1701:17: note: (near initialization for ‘smbd_impersonate_root_ops’)
../source3/smbd/uid.c:1702:3: error: ‘const struct tevent_wrapper_ops’ has no member named ‘before_fd_handler’
  .before_fd_handler  = smbd_impersonate_root_before_fd_handler,
   ^~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1702:24: warning: excess elements in struct initializer
  .before_fd_handler  = smbd_impersonate_root_before_fd_handler,
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1702:24: note: (near initialization for ‘smbd_impersonate_root_ops’)
../source3/smbd/uid.c:1703:3: error: ‘const struct tevent_wrapper_ops’ has no member named ‘after_fd_handler’
  .after_fd_handler  = smbd_impersonate_root_after_fd_handler,
   ^~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1703:23: warning: excess elements in struct initializer
  .after_fd_handler  = smbd_impersonate_root_after_fd_handler,
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1703:23: note: (near initialization for ‘smbd_impersonate_root_ops’)
../source3/smbd/uid.c:1704:3: error: ‘const struct tevent_wrapper_ops’ has no member named ‘before_timer_handler’
  .before_timer_handler  = smbd_impersonate_root_before_timer_handler,
   ^~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1704:27: warning: excess elements in struct initializer
  .before_timer_handler  = smbd_impersonate_root_before_timer_handler,
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1704:27: note: (near initialization for ‘smbd_impersonate_root_ops’)
../source3/smbd/uid.c:1705:3: error: ‘const struct tevent_wrapper_ops’ has no member named ‘after_timer_handler’
  .after_timer_handler  = smbd_impersonate_root_after_timer_handler,
   ^~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1705:26: warning: excess elements in struct initializer
  .after_timer_handler  = smbd_impersonate_root_after_timer_handler,
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1705:26: note: (near initialization for ‘smbd_impersonate_root_ops’)
../source3/smbd/uid.c:1706:3: error: ‘const struct tevent_wrapper_ops’ has no member named ‘before_immediate_handler’
  .before_immediate_handler = smbd_impersonate_root_before_immediate_handler,
   ^~~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1706:30: warning: excess elements in struct initializer
  .before_immediate_handler = smbd_impersonate_root_before_immediate_handler,
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1706:30: note: (near initialization for ‘smbd_impersonate_root_ops’)
../source3/smbd/uid.c:1707:3: error: ‘const struct tevent_wrapper_ops’ has no member named ‘after_immediate_handler’
  .after_immediate_handler = smbd_impersonate_root_after_immediate_handler,
   ^~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1707:29: warning: excess elements in struct initializer
  .after_immediate_handler = smbd_impersonate_root_after_immediate_handler,
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1707:29: note: (near initialization for ‘smbd_impersonate_root_ops’)
../source3/smbd/uid.c:1708:3: error: ‘const struct tevent_wrapper_ops’ has no member named ‘before_signal_handler’
  .before_signal_handler  = smbd_impersonate_root_before_signal_handler,
   ^~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1708:28: warning: excess elements in struct initializer
  .before_signal_handler  = smbd_impersonate_root_before_signal_handler,
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1708:28: note: (near initialization for ‘smbd_impersonate_root_ops’)
../source3/smbd/uid.c:1709:3: error: ‘const struct tevent_wrapper_ops’ has no member named ‘after_signal_handler’
  .after_signal_handler  = smbd_impersonate_root_after_signal_handler,
   ^~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1709:27: warning: excess elements in struct initializer
  .after_signal_handler  = smbd_impersonate_root_after_signal_handler,
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1709:27: note: (near initialization for ‘smbd_impersonate_root_ops’)
../source3/smbd/uid.c: In function ‘smbd_impersonate_root_create’:
../source3/smbd/uid.c:1721:9: error: expected expression before ‘struct’
         struct smbd_impersonate_root_state);
         ^~~~~~
../source3/smbd/uid.c: At top level:
../source3/smbd/uid.c:1909:21: error: variable ‘smbd_impersonate_guest_ops’ has initializer but incomplete type
 static const struct tevent_wrapper_ops smbd_impersonate_guest_ops = {
                     ^~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1910:3: error: ‘const struct tevent_wrapper_ops’ has no member named ‘name’
  .name    = "smbd_impersonate_guest",
   ^~~~
../source3/smbd/uid.c:1910:13: warning: excess elements in struct initializer
  .name    = "smbd_impersonate_guest",
             ^~~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1910:13: note: (near initialization for ‘smbd_impersonate_guest_ops’)
../source3/smbd/uid.c:1911:3: error: ‘const struct tevent_wrapper_ops’ has no member named ‘before_use’
  .before_use   = smbd_impersonate_guest_before_use,
   ^~~~~~~~~~
../source3/smbd/uid.c:1911:18: warning: excess elements in struct initializer
  .before_use   = smbd_impersonate_guest_before_use,
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1911:18: note: (near initialization for ‘smbd_impersonate_guest_ops’)
../source3/smbd/uid.c:1912:3: error: ‘const struct tevent_wrapper_ops’ has no member named ‘after_use’
  .after_use   = smbd_impersonate_guest_after_use,
   ^~~~~~~~~
../source3/smbd/uid.c:1912:17: warning: excess elements in struct initializer
  .after_use   = smbd_impersonate_guest_after_use,
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1912:17: note: (near initialization for ‘smbd_impersonate_guest_ops’)
../source3/smbd/uid.c:1913:3: error: ‘const struct tevent_wrapper_ops’ has no member named ‘before_fd_handler’
  .before_fd_handler  = smbd_impersonate_guest_before_fd_handler,
   ^~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1913:24: warning: excess elements in struct initializer
  .before_fd_handler  = smbd_impersonate_guest_before_fd_handler,
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1913:24: note: (near initialization for ‘smbd_impersonate_guest_ops’)
../source3/smbd/uid.c:1914:3: error: ‘const struct tevent_wrapper_ops’ has no member named ‘after_fd_handler’
  .after_fd_handler  = smbd_impersonate_guest_after_fd_handler,
   ^~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1914:23: warning: excess elements in struct initializer
  .after_fd_handler  = smbd_impersonate_guest_after_fd_handler,
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1914:23: note: (near initialization for ‘smbd_impersonate_guest_ops’)
../source3/smbd/uid.c:1915:3: error: ‘const struct tevent_wrapper_ops’ has no member named ‘before_timer_handler’
  .before_timer_handler  = smbd_impersonate_guest_before_timer_handler,
   ^~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1915:27: warning: excess elements in struct initializer
  .before_timer_handler  = smbd_impersonate_guest_before_timer_handler,
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1915:27: note: (near initialization for ‘smbd_impersonate_guest_ops’)
../source3/smbd/uid.c:1916:3: error: ‘const struct tevent_wrapper_ops’ has no member named ‘after_timer_handler’
  .after_timer_handler  = smbd_impersonate_guest_after_timer_handler,
   ^~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1916:26: warning: excess elements in struct initializer
  .after_timer_handler  = smbd_impersonate_guest_after_timer_handler,
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1916:26: note: (near initialization for ‘smbd_impersonate_guest_ops’)
../source3/smbd/uid.c:1917:3: error: ‘const struct tevent_wrapper_ops’ has no member named ‘before_immediate_handler’
  .before_immediate_handler = smbd_impersonate_guest_before_immediate_handler,
   ^~~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1917:30: warning: excess elements in struct initializer
  .before_immediate_handler = smbd_impersonate_guest_before_immediate_handler,
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1917:30: note: (near initialization for ‘smbd_impersonate_guest_ops’)
../source3/smbd/uid.c:1918:3: error: ‘const struct tevent_wrapper_ops’ has no member named ‘after_immediate_handler’
  .after_immediate_handler = smbd_impersonate_guest_after_immediate_handler,
   ^~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1918:29: warning: excess elements in struct initializer
  .after_immediate_handler = smbd_impersonate_guest_after_immediate_handler,
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1918:29: note: (near initialization for ‘smbd_impersonate_guest_ops’)
../source3/smbd/uid.c:1919:3: error: ‘const struct tevent_wrapper_ops’ has no member named ‘before_signal_handler’
  .before_signal_handler  = smbd_impersonate_guest_before_signal_handler,
   ^~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1919:28: warning: excess elements in struct initializer
  .before_signal_handler  = smbd_impersonate_guest_before_signal_handler,
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1919:28: note: (near initialization for ‘smbd_impersonate_guest_ops’)
../source3/smbd/uid.c:1920:3: error: ‘const struct tevent_wrapper_ops’ has no member named ‘after_signal_handler’
  .after_signal_handler  = smbd_impersonate_guest_after_signal_handler,
   ^~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1920:27: warning: excess elements in struct initializer
  .after_signal_handler  = smbd_impersonate_guest_after_signal_handler,
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1920:27: note: (near initialization for ‘smbd_impersonate_guest_ops’)
../source3/smbd/uid.c: In function ‘smbd_impersonate_guest_create’:
../source3/smbd/uid.c:1932:9: error: expected expression before ‘struct’
         struct smbd_impersonate_guest_state);
         ^~~~~~
../source3/smbd/uid.c: At top level:
../source3/smbd/uid.c:226:40: error: storage size of ‘smbd_impersonate_debug_ops’ isn’t known
 static const struct tevent_wrapper_ops smbd_impersonate_debug_ops = {
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1229:40: error: storage size of ‘smbd_impersonate_conn_vuid_ops’ isn’t known
 static const struct tevent_wrapper_ops smbd_impersonate_conn_vuid_ops = {
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1508:40: error: storage size of ‘smbd_impersonate_conn_sess_ops’ isn’t known
 static const struct tevent_wrapper_ops smbd_impersonate_conn_sess_ops = {
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1698:40: error: storage size of ‘smbd_impersonate_root_ops’ isn’t known
 static const struct tevent_wrapper_ops smbd_impersonate_root_ops = {
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~
../source3/smbd/uid.c:1909:40: error: storage size of ‘smbd_impersonate_guest_ops’ isn’t known
 static const struct tevent_wrapper_ops smbd_impersonate_guest_ops = {
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~
Waf: Leaving directory `/build/samba-git/src/samba/bin'
Build failed:  -> task failed (err #1): 
	{task: cc uid.c -> uid_85.o}
make: *** [Makefile:8: all] Error 1
==> ERROR: A failure occurred in build().

Offline

#34 2019-05-16 11:29:33

loqs
Member
Registered: 2014-03-06
Posts: 18,041

Re: CUPS: Authentication required for printing document "...".

Sorry about that please try editing samba-git/PKGBUILD chaning

source=(git+https://git.samba.org/samba.git#commit=b6b72d0063107bf9008203d8c2843033a5edb6da

to

#source=(git+https://git.samba.org/samba.git#commit=b6b72d0063107bf9008203d8c2843033a5edb6da
source=(git+https://git.samba.org/samba.git#commit=4fc4ae2924aaa2fc184b7385069274526fa8a4c2

then retest building samba-git

Offline

#35 2019-05-17 01:02:27

Salkay
Member
Registered: 2014-05-22
Posts: 636

Re: CUPS: Authentication required for printing document "...".

No worries. I managed to test it, but it still doesn't work. I'm not sure if you meant for me to test with everything else up to date (i.e. libwbclient smbclient) so I did. Please let me know if I should not have updated these.

I ran the commands that you quoted earlier. (For anyone else testing, I also modified the samba-git PKGBUILD to add conflicts=('samba') and I also had to change pacman -U to point at the new version).

I then ran sudo systemctl restart org.cups.cupsd.service and attempted to print. Nothing happened really; the print queue was empty.

I then reverted /etc/cups/printers.conf to its pre-bug status, removing AuthInfoRequired negotiate, then restarted cups again. This time I got the same error as before in the print queue, i.e. Session setup failed: NT_STATUS_ACCESS_DENIED. FWIW I checked /etc/cups/printers.conf again, and the AuthInfoRequired negotiate string had appeared again.

To confirm my installed versions:

$ pacman -Q talloc tdb tevent ldb samba-git libwbclient smbclient
talloc 2.1.16-1
tdb 1.3.18-2
tevent 1:0.9.39-2
ldb 1:1.4.6-1
samba-git 4.9.0.r0.g4fc4ae2924a-1
libwbclient 4.10.2-1
smbclient 4.10.2-1

Offline

#36 2019-05-17 20:54:19

loqs
Member
Registered: 2014-03-06
Posts: 18,041

Re: CUPS: Authentication required for printing document "...".

If you install libwbclient-git-4.9.0.r0.g4fc4ae2924a-1-x86_64.pkg.tar.xz and smbclient-git-4.9.0.r0.g4fc4ae2924a-1-x86_64.pkg.tar.xz is the issues still present?  (I forgot samba is a split package)

Offline

#37 2019-05-18 23:05:22

Salkay
Member
Registered: 2014-05-22
Posts: 636

Re: CUPS: Authentication required for printing document "...".

Yes, this works perfectly! I installed everything, restarted CUPS, and now printing is perfect (and /etc/cups/printers.conf is unmodified).

Offline

#38 2019-05-19 15:44:06

loqs
Member
Registered: 2014-03-06
Posts: 18,041

Re: CUPS: Authentication required for printing document "...".

upodated tevent 0.9.39 reverts patch deprecating ABI needed by bisection PKGBUILD

# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
# Contributor: Christian Hesse <mail@eworm.de>
# Contributor: Marco A Rojas <marquicus at gmail dot com>
# Contributor: Ng Oon-Ee <ngoonee.talk@gmail.com>
# Contributor: Thomas Burdick <thomas.burdick@gmail.com>

pkgname=tevent
pkgver=0.9.39
pkgrel=1
epoch=1
pkgdesc="An event system based on the talloc memory management library"
arch=('x86_64')
url="https://tevent.samba.org/"
source=("https://samba.org/ftp/tevent/${pkgname}-${pkgver}.tar.gz"
        "https://github.com/samba-team/samba/commit/168079b2c3693c08ac994e4ee61be101986a4bae.patch")
license=('GPL3')
depends=('talloc')
makedepends=('python2')
optdepends=('python2: for python bindings')

build() {
	cd ${srcdir}/${pkgname}-${pkgver}
	patch -R -p3  -i ../168079b2c3693c08ac994e4ee61be101986a4bae.patch
	# change to use python2
	sed -i -e "s|/usr/bin/env python$|/usr/bin/env python2|" buildtools/bin/waf
	export PYTHON=/usr/bin/python2

	./configure --prefix=/usr \
                    --bundled-libraries=NONE \
                    --builtin-libraries=replace
}

package() {
	cd ${srcdir}/${pkgname}-${pkgver}
	
	make
	make DESTDIR=${pkgdir}/ install
}
md5sums=('b937d5e980fa9704f20b57df688845c0'
         'e061a74f09dcf1a9565df4f1ede64260')

Updated samba-git PKGBUILD adds provides / conflicts for each part of the split package

# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
# Contributor: judd <jvinet@zeroflux.org>
# Contributor: Michael Hansen <zrax0111 gmail com>
# Contributor: Marco A Rojas <marquicus at gmail.com>
# Contributor: Netanel Shine <netanel at archlinux.org.il >
# Contributor: ngoonee <ngoonee.talk@gmail.com>
# Contributor: Adam Russell <adamlr6+arch@gmail.com>
# Contributor: Dhananjay Sathe <dhananjaysathe@gmail.com>

pkgbase=samba-git
pkgname=('libwbclient-git' 'smbclient-git' 'samba-git')
pkgver=4.9.0.r0.g4fc4ae2924a
pkgrel=1
arch=(x86_64)
url="https://www.samba.org"
license=('GPL3')
makedepends=('python2' 'docbook-xsl' 'pkg-config' 'libbsd' 'db' 'popt' 'libcups' 
             'readline' 'tevent' 'acl' 'libldap' 'libcap' 'ldb>=1.1.15' 'krb5' 'pam'
             'systemd' 'gnutls>=2.4.1' 'talloc' 'tdb' 'dbus' 'libaio'
             'perl-parse-yapp' 'libnsl' 'libtirpc' 'rpcsvc-proto' 'jansson' 'git')
source=(git+https://git.samba.org/samba.git#commit=4fc4ae2924aaa2fc184b7385069274526fa8a4c2
        samba.logrotate
        samba.pam
        samba.conf)
md5sums=('SKIP'
         '995621522c6ec9b68c1b858ceed627ed'
         '96f82c38f3f540b53f3e5144900acf17'
         '49abd7b719e3713a3f75a8a50958e381')
#validpgpkeys=('52FBC0B86D954B0843324CDC6F33915B6568B7EA') #Samba Distribution Verification Key <samba-bugs@samba.org>
### UNINSTALL dmapi package before building!!!

pkgver() {
  cd samba
  # cutting off 'samba-' prefix that presents in the git tag
  git describe --long | sed 's/^samba-//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  # Use samba-pkg as a staging directory for the split packages
  # (This is so RPATHS and symlinks are generated correctly via
  # make install, but the otherwise unsplit pieces can be split)
  _pkgsrc=${srcdir}/samba-pkg
  rm -rf ${_pkgsrc}
  cd samba
  # change to use python2
  SAVEIFS=${IFS}
  IFS=$(echo -en "\n\b")
  PYTHON_CALLERS="$(find ${srcdir}/samba -name '*.py')
$(find ${srcdir}/samba -name 'wscript*')
$(find ${srcdir}/samba -name 'configure.ac')
$(find ${srcdir}/samba -name 'upgrade_from_s3')
$(find ${srcdir}/samba/buildtools -type f)
$(find ${srcdir}/samba/source4/scripting -type f)"
  sed -i -e "s|/usr/bin/env python$|/usr/bin/env python2|" \
         -e "s|python-config|python2-config|" \
         -e "s|bin/python|bin/python2|" \
      ${PYTHON_CALLERS}
  IFS=${SAVEIFS}

  export PYTHON=/usr/bin/python2
_samba4_idmap_modules=idmap_ad,idmap_rid,idmap_adex,idmap_hash,idmap_tdb2
_samba4_pdb_modules=pdb_tdbsam,pdb_ldap,pdb_ads,pdb_smbpasswd,pdb_wbc_sam,pdb_samba4
_samba4_auth_modules=auth_unix,auth_wbc,auth_server,auth_netlogond,auth_script,auth_samba4
#  cd samba
  ./configure --enable-fhs \
              --prefix=/usr \
              --sysconfdir=/etc \
              --sbindir=/usr/bin \
              --libdir=/usr/lib \
	      --libexecdir=/usr/lib/samba \
              --localstatedir=/var \
              --with-configdir=/etc/samba \
              --with-lockdir=/var/cache/samba \
              --with-sockets-dir=/run/samba \
              --with-piddir=/run \
              --with-ads \
              --with-ldap \
              --with-winbind \
              --with-acl-support \
              --with-systemd \
              --systemd-install-services \
              --enable-gnutls \
              --with-pam \
              --with-pammodulesdir=/usr/lib/security \
              --bundled-libraries=!tdb,!talloc,!pytalloc-util,!tevent,!popt,!ldb,!pyldb-util \
              --with-shared-modules=${_samba4_idmap_modules},${_samba4_pdb_modules},${_samba4_auth_modules} \
              --disable-rpath-install 

              # Add this to the options once it's working...
               #--with-system-mitkrb5 /opt/heimdal
  CFLAGS="$CLFAGS -DTEVENT_DEPRECATED" make
  make DESTDIR="${_pkgsrc}/" install

  # This gets skipped somehow
  if [ ! -e ${_pkgsrc}/usr/bin/smbtar ]; then
      install -m755 ${srcdir}/samba-${pkgver}/source3/script/smbtar ${_pkgsrc}/usr/bin/
  fi
}

package_libwbclient-git() {
pkgdesc="Samba winbind client library"
depends=('glibc' 'libbsd')
provides=(libwbclient)
conflicts=(libwbclient)
  # Use samba-pkg as a staging directory for the split packages
  # (This is so RPATHS and symlinks are generated correctly via
  # make install, but the otherwise unsplit pieces can be split)
  _pkgsrc=${srcdir}/samba-pkg
  install -d -m755 ${pkgdir}/usr/lib
  mv ${_pkgsrc}/usr/lib/libwbclient*.so* ${pkgdir}/usr/lib/

  install -d -m755 ${pkgdir}/usr/lib/samba
  mv ${_pkgsrc}/usr/lib/samba/libwinbind-client*.so* ${pkgdir}/usr/lib/samba/
  mv ${_pkgsrc}/usr/lib/samba/libreplace-samba4.so* ${pkgdir}/usr/lib/samba/

  install -d -m755 ${pkgdir}/usr/lib/pkgconfig
  mv ${_pkgsrc}/usr/lib/pkgconfig/wbclient.pc ${pkgdir}/usr/lib/pkgconfig/

  install -d -m755 ${pkgdir}/usr/include/samba-4.0
  mv ${_pkgsrc}/usr/include/samba-4.0/wbclient.h ${pkgdir}/usr/include/samba-4.0/
}

package_smbclient-git() {
pkgdesc="Tools to access a server's filespace and printers via SMB"
depends=('popt' 'cifs-utils' 'tdb' "libwbclient>=$pkgver" 'ldb'
         'tevent' 'libgcrypt' 'python2' 'talloc' 'readline' 'gnutls' 
         'libbsd' 'libldap' 'libcups' 'libarchive' 'libnsl' 'jansson')
provides=(smbclient)
conlicts=(smbclient)

    _smbclient_bins=('smbclient' 'rpcclient' 'smbspool'
                     'smbtree' 'smbcacls' 'smbcquotas' 'smbget' 'net'
                     'nmblookup' 'smbtar')
    # Use samba-pkg as a staging directory for the split packages
    # (This is so RPATHS and symlinks are generated correctly via
    # make install, but the otherwise unsplit pieces can be split)
    _pkgsrc=${srcdir}/samba-pkg
    install -d -m755 ${pkgdir}/usr/bin
    for bin in ${_smbclient_bins[@]}; do
        mv ${_pkgsrc}/usr/bin/${bin} ${pkgdir}/usr/bin/
    done

    # smbclient binaries link to the majority of the samba
    # libs, so this is a shortcut instead of resolving the
    # whole dependency tree by hand
    install -d -m755 ${pkgdir}/usr/lib
    for lib in ${_pkgsrc}/usr/lib/lib*.so*; do
        mv ${lib} ${pkgdir}/usr/lib/
    done

    install -d -m755 ${pkgdir}/usr/lib/samba
    for lib in ${_pkgsrc}/usr/lib/samba/lib*.so*; do
        mv ${lib} ${pkgdir}/usr/lib/samba/
    done

    install -d -m755 ${pkgdir}/usr/lib/pkgconfig
    mv ${_pkgsrc}/usr/lib/pkgconfig/smbclient.pc ${pkgdir}/usr/lib/pkgconfig/
    mv ${_pkgsrc}/usr/lib/pkgconfig/netapi.pc ${pkgdir}/usr/lib/pkgconfig/

    install -d -m755 ${pkgdir}/usr/share/man/man1
    install -d -m755 ${pkgdir}/usr/share/man/man7
    install -d -m755 ${pkgdir}/usr/share/man/man8
    for bin in ${_smbclient_bins[@]}; do
        if [ -e ${_pkgsrc}/usr/share/man/man1/${bin}.1 ]; then
            mv ${_pkgsrc}/usr/share/man/man1/${bin}.1 ${pkgdir}/usr/share/man/man1/
        fi
        if [ -e ${_pkgsrc}/usr/share/man/man8/${bin}.8 ]; then
            mv ${_pkgsrc}/usr/share/man/man8/${bin}.8 ${pkgdir}/usr/share/man/man8/
        fi
    done
    mv ${_pkgsrc}/usr/share/man/man7/libsmbclient.7 ${pkgdir}/usr/share/man/man7/

    install -d -m755 ${pkgdir}/usr/include/samba-4.0
    mv ${_pkgsrc}/usr/include/samba-4.0/libsmbclient.h ${pkgdir}/usr/include/samba-4.0/
    mv ${_pkgsrc}/usr/include/samba-4.0/netapi.h ${pkgdir}/usr/include/samba-4.0/

    mkdir -p ${pkgdir}/usr/lib/cups/backend
    ln -sf /usr/bin/smbspool ${pkgdir}/usr/lib/cups/backend/smb
}

package_samba-git() {
pkgdesc="SMB Fileserver and AD Domain server"
depends=('db>=4.7' 'popt' 'libcups' 'libcap>=2.16' 'gnutls>=2.4.1'
         'talloc' 'ldb' 'libbsd' 'python2' 'iniparser' 'tdb' 'libaio' 'perl-parse-yapp' "smbclient>=$pkgver" 'gpgme')
provides=(samba)
conflicts=(samba)
backup=(etc/logrotate.d/samba
        etc/pam.d/samba
        etc/samba/smb.conf
        etc/xinetd.d/swat
        etc/conf.d/samba)
install=samba.install
    # Use samba-pkg as a staging directory for the split packages
    # (This is so RPATHS and symlinks are generated correctly via
    # make install, but the otherwise unsplit pieces can be split)
    _pkgsrc=${srcdir}/samba-pkg
    # Everything that libwbclient and smbclient didn't install goes
    # into the samba package...
    mv ${_pkgsrc}/* ${pkgdir}/
    rmdir ${_pkgsrc}

    _pyver=`python2 -c 'import sys; print(sys.version[:3])'`

    find ${pkgdir}/usr/lib/python${_pyver}/site-packages/ -name '*.py' | \
         xargs sed -i "s|#!/usr/bin/env python$|#!/usr/bin/env python2|"
    find ${pkgdir}/usr/bin ${pkgdir}/usr/bin -type f -executable | \
         xargs sed -i "s|#!/usr/bin/env python$|#!/usr/bin/env python2|"

    # Make admin scripts look in the right place for the samba python module
    for script in bin/samba_dnsupdate bin/samba_kcc bin/samba_spnupdate \
                  bin/samba_upgradedns bin/samba-tool
    do
        sed -i "/^sys\.path\.insert/ a\
sys.path.insert(0, '/usr/lib/python${_pyver}/site-packages')" \
               ${pkgdir}/usr/${script}
    done

  # packaging/wscript_build to use /etc/conf.d
  sed -i -e '/^EnvironmentFile/ s/sysconfig/conf.d/' "${pkgdir}"/usr/lib/systemd/system/*.service
  install -d -m755  "${pkgdir}"/etc/conf.d
  install -m644 "${srcdir}"/samba/packaging/systemd/samba.sysconfig "${pkgdir}"/etc/conf.d/samba

  # create ephemeral dirs via tmpfiles rather than shipping them in package
  install -D -m644 ${srcdir}/samba.conf ${pkgdir}/usr/lib/tmpfiles.d/samba.conf
  # create config dir
  install -d -m755 ${pkgdir}/etc/samba

  mkdir -p ${pkgdir}/etc/samba/private
  chmod 700 ${pkgdir}/etc/samba/private

  install -D -m644 ${srcdir}/samba.logrotate ${pkgdir}/etc/logrotate.d/samba
  install -D -m644 ${srcdir}/samba.pam ${pkgdir}/etc/pam.d/samba 
  
  # spool directory
  install -d -m1777 ${pkgdir}/var/spool/samba
  
  rm -rf ${pkgdir}/var/run
  rm -rf ${pkgdir}/etc/sysconfig
  
  # copy ldap example
  install -D -m644 ${srcdir}/samba/examples/LDAP/samba.schema ${pkgdir}/usr/share/doc/samba/examples/LDAP/samba.schema
}

To check smbclient-git-4.9.0.r0.g4fc4ae2924a-1-x86_64.pkg.tar.xz still works

extra-x86_64-build -- -I ../talloc/talloc-2.1.16-1-x86_64.pkg.tar.xz #to rebuild tevent 0.9.39
cd ../ldb
extra-x86_64-build -- -I ../tdb/tdb-1.3.18-2-x86_64.pkg.tar.xz -I ../talloc/talloc-2.1.16-1-x86_64.pkg.tar.xz -I ../tevent/tevent-1\:0.9.39-1-x86_64.pkg.tar.xz #rebuild ldb
cd ../samba-git
extra-x86_64-build -- -I ../tdb/tdb-1.3.18-2-x86_64.pkg.tar.xz -I ../talloc/talloc-2.1.16-1-x86_64.pkg.tar.xz -I ../tevent/tevent-1\:0.9.39-1-x86_64.pkg.tar.xz -I ../ldb/ldb-1\:1.4.6-1-x86_64.pkg.tar.xz

Then please try b6b72d0063107bf9008203d8c2843033a5edb6da again.

Offline

#39 2019-05-19 23:18:31

Salkay
Member
Registered: 2014-05-22
Posts: 636

Re: CUPS: Authentication required for printing document "...".

loqs wrote:

Then please try b6b72d0063107bf9008203d8c2843033a5edb6da again.

I'm assuming that you actually wanted me to test this commit instead of the one from the newest samba-git PKGBUILD you posted? Hence, I reverted the source line to

source=(git+https://git.samba.org/samba.git#commit=b6b72d0063107bf9008203d8c2843033a5edb6da

After installing this version, I can confirm that it still works perfectly. To confirm versions again:

$ pacman -Q talloc tdb tevent ldb samba-git libwbclient smbclient
talloc 2.1.16-1
tdb 1.3.18-2
tevent 1:0.9.39-2
ldb 1:1.4.6-1
samba-git 4.9.0rc1.r347.gb6b72d00631-1
libwbclient-git 4.9.0rc1.r347.gb6b72d00631-1
smbclient-git 4.9.0rc1.r347.gb6b72d00631-1

Offline

#40 2019-05-20 12:20:13

loqs
Member
Registered: 2014-03-06
Posts: 18,041

Re: CUPS: Authentication required for printing document "...".

ldb PKGBUILD now using pkgver 1.54 needed for the next commit of samba-git b7f0ee93f58e663bb8fc0b39985aa49b254582d9

# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
# Contributor: Christian Hesse <mail@eworm.de>
# Contributor: Marco A Rojas <marquicus at gmail dot com>

pkgname=ldb
pkgver=1.5.4
pkgrel=2
epoch=1
pkgdesc="A schema-less, ldap like, API and database"
arch=('x86_64')
url="https://ldb.samba.org/"
source=(https://samba.org/ftp/${pkgname}/${pkgname}-${pkgver}.tar.gz
        https://samba.org/ftp/${pkgname}/${pkgname}-${pkgver}.tar.asc)
license=('GPL3')
depends=('talloc' 'tevent' 'tdb' 'popt' 'lmdb')
makedepends=('python2' 'cmocka' 'docbook-xsl')
optdepends=('python2: for python bindings')
validpgpkeys=('9147A339719518EE9011BCB54793916113084025') # Samba Library Distribution Key <samba-bugs@samba.org> 

build() {
	cd ${srcdir}/${pkgname}-${pkgver}

	# change to use python2
	sed -i -e "s|/usr/bin/env python$|/usr/bin/env python2|" buildtools/bin/waf
	export PYTHON=/usr/bin/python2

	./configure --prefix=/usr \
		--disable-rpath \
		--disable-rpath-install \
		--bundled-libraries=NONE \
		--builtin-libraries=replace \
                --with-modulesdir=/usr/lib/ldb/modules \
                --with-privatelibdir=/usr/lib/ldb
	make
}

package() {
	cd ${srcdir}/${pkgname}-${pkgver}

	make DESTDIR=${pkgdir}/ install
}
md5sums=('24d9f18b085ba27f96d4dec643abea39'
         'SKIP')
cd ldb
extra-x86_64-build -- -I ../tdb/tdb-1.3.18-2-x86_64.pkg.tar.xz -I ../talloc/talloc-2.1.16-1-x86_64.pkg.tar.xz -I ../tevent/tevent-1\:0.9.37-1-x86_64.pkg.tar.xz
cd ../samba-git
extra-x86_64-build -- -I ../tdb/tdb-1.3.18-2-x86_64.pkg.tar.xz -I ../talloc/talloc-2.1.16-1-x86_64.pkg.tar.xz -I ../tevent/tevent-1\:0.9.37-1-x86_64.pkg.tar.xz -I ../ldb/ldb-1\:1.5.4-2-x86_64.pkg.tar.xz

If that works then please try 25f2fe02a615e2cf906b6fa495acd8ea0aa9998a which is 4.10.0

Offline

#41 2019-05-23 01:39:37

Salkay
Member
Registered: 2014-05-22
Posts: 636

Re: CUPS: Authentication required for printing document "...".

loqs wrote:
cd ldb
extra-x86_64-build -- -I ../tdb/tdb-1.3.18-2-x86_64.pkg.tar.xz -I ../talloc/talloc-2.1.16-1-x86_64.pkg.tar.xz -I ../tevent/tevent-1\:0.9.37-1-x86_64.pkg.tar.xz
cd ../samba-git
extra-x86_64-build -- -I ../tdb/tdb-1.3.18-2-x86_64.pkg.tar.xz -I ../talloc/talloc-2.1.16-1-x86_64.pkg.tar.xz -I ../tevent/tevent-1\:0.9.37-1-x86_64.pkg.tar.xz -I ../ldb/ldb-1\:1.5.4-2-x86_64.pkg.tar.xz

These commands refer to tevent-1:0.9.37-1-x86_64.pkg.tar.xz, which I haven't built yet. I originally built tevent-1:0.9.39-2-x86_64.pkg.tar.xz, then the patched tevent-1:0.9.39-1-x86_64.pkg.tar.xz.

Offline

#42 2019-05-23 10:12:56

loqs
Member
Registered: 2014-03-06
Posts: 18,041

Re: CUPS: Authentication required for printing document "...".

Well spotted it should be tevent-1:0.9.39-1-x86_64.pkg.tar.xz.

Offline

#43 2019-05-24 04:53:06

Salkay
Member
Registered: 2014-05-22
Posts: 636

Re: CUPS: Authentication required for printing document "...".

The ldb build worked fine, but the samba-git build failed with

Checking for system pyldb-util (>=1.4.2 <=1.4.999)                                              : not found 
ERROR: System library pyldb-util of version 1.4.2 not found, and bundling disabled
==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Build failed, check /var/lib/archbuild/extra-x86_64/salkay/build

Just to be explicit, this is using the latest samba-git PKGBUILD from this thread, at this comment.

Offline

#44 2019-05-24 10:41:58

loqs
Member
Registered: 2014-03-06
Posts: 18,041

Re: CUPS: Authentication required for printing document "...".

Please post the samba-git PKGBUILD the source should be

source=(git+https://git.samba.org/samba.git#commit=b7f0ee93f58e663bb8fc0b39985aa49b254582d9

Offline

#45 2019-05-25 07:04:25

Salkay
Member
Registered: 2014-05-22
Posts: 636

Re: CUPS: Authentication required for printing document "...".

Sorry, I was getting lost. I was at a different commit for some reason. Testing b7f0ee93f58e663bb8fc0b39985aa49b254582d9 builds fine. I restarted org.cups.cupsd.service, and it also printed fine. To confirm the versions tested:

$ pacman -Q talloc tdb tevent ldb samba-git libwbclient smbclient
talloc 2.1.16-1
tdb 1.3.18-2
tevent 1:0.9.39-1
ldb 1:1.5.4-2
samba-git ldb.1.5.0.r0.gb7f0ee93f58-1
libwbclient-git ldb.1.5.0.r0.gb7f0ee93f58-1
smbclient-git ldb.1.5.0.r0.gb7f0ee93f58-1
loqs wrote:

If that works then please try 25f2fe02a615e2cf906b6fa495acd8ea0aa9998a which is 4.10.0

I installed this, restarted org.cups.cupsd.service, and it also printed fine.

$ pacman -Q talloc tdb tevent ldb samba-git libwbclient smbclient
talloc 2.1.16-1
tdb 1.3.18-2
tevent 1:0.9.39-1
ldb 1:1.5.4-2
samba-git 4.10.0.r0.g25f2fe02a61-1
libwbclient-git 4.10.0.r0.g25f2fe02a61-1
smbclient-git 4.10.0.r0.g25f2fe02a61-1

Last edited by Salkay (2019-05-25 07:18:17)

Offline

#46 2019-05-25 11:19:44

loqs
Member
Registered: 2014-03-06
Posts: 18,041

Re: CUPS: Authentication required for printing document "...".

17cd92e1c3672c4ffde7ca94546f57907d22262b samba-4.10.2 please see if that also works.

Offline

#47 2019-05-25 12:12:14

Salkay
Member
Registered: 2014-05-22
Posts: 636

Re: CUPS: Authentication required for printing document "...".

Ah, no this one fails.

I installed the new version, restarted CUPS, and now when printing I get the same NT_STATUS_ACCESS_DENIED. Also AuthInfoRequired negotiate is back in /etc/cups/printers.conf.

$ pacman -Q talloc tdb tevent ldb samba-git libwbclient smbclient
talloc 2.1.16-1
tdb 1.3.18-2
tevent 1:0.9.39-1
ldb 1:1.5.4-2
samba-git 4.10.2.r0.g17cd92e1c36-1
libwbclient-git 4.10.2.r0.g17cd92e1c36-1
smbclient-git 4.10.2.r0.g17cd92e1c36-1

Offline

#48 2019-05-25 17:37:12

loqs
Member
Registered: 2014-03-06
Posts: 18,041

Re: CUPS: Authentication required for printing document "...".

e0cc225f8a4e15ea7cef4ed2597eeec3790f2f4d samba-4.10.1 please

Offline

#49 2019-05-26 00:47:44

Salkay
Member
Registered: 2014-05-22
Posts: 636

Re: CUPS: Authentication required for printing document "...".

This also fails as above.

$ pacman -Q talloc tdb tevent ldb samba-git libwbclient smbclient
talloc 2.1.16-1
tdb 1.3.18-2
tevent 1:0.9.39-1
ldb 1:1.5.4-2
samba-git 4.10.1.r0.ge0cc225f8a4-1
libwbclient-git 4.10.1.r0.ge0cc225f8a4-1
smbclient-git 4.10.1.r0.ge0cc225f8a4-1

(Just in case something had gone wrong with my config, this time I double-checked, reverting to samba-4.10.0, and that still worked.)

Offline

#50 2019-05-26 01:50:26

loqs
Member
Registered: 2014-03-06
Posts: 18,041

Re: CUPS: Authentication required for printing document "...".

0c2f7224e075538fc0fd70e4405cafc82f037909 please (hopefully just 5 steps left)
Edit:

cd samba-git
makepkg -Codd
git bisect start
git bisect bad samba-4.10.1
git bisect good samba-4.10.0
Bisecting: 28 revisions left to test after this (roughly 5 steps)
[0c2f7224e075538fc0fd70e4405cafc82f037909] dbcheck: don't move already deleted objects to LostAndFound

After checking 0c2f7224e075538fc0fd70e4405cafc82f037909 you can get the next commit using the following where $result is good or bad (or if it will not build skip)

cd samba-git/src/samba
git bisect $result

Last edited by loqs (2019-05-26 02:04:02)

Offline

Board footer

Powered by FluxBB