[PATCH] gnu: curl: Use mit-krb5 as GSSAPI implementation.

  • Done
  • quality assurance status badge
Details
3 participants
  • Efraim Flashner
  • Ludovic Courtès
  • Tomáš ?ech
Owner
unassigned
Submitted by
Tomáš ?ech
Severity
normal
T
T
Tomáš ?ech wrote on 13 Apr 2018 00:40
(address . guix-patches@gnu.org)(name . Tomáš ?ech)(address . sleep_walker@gnu.org)
20180412224006.25134-1-sleep_walker@gnu.org
* gnu/packages/curl.scm (curl)[inputs]: Replace gss with mit-krb5.
[arguments]: Help configure with locating mit-krb5.
---
gnu/packages/curl.scm | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

Toggle diff (37 lines)
diff --git a/gnu/packages/curl.scm b/gnu/packages/curl.scm
index fbf177d9d..38f7195ca 100644
--- a/gnu/packages/curl.scm
+++ b/gnu/packages/curl.scm
@@ -36,6 +36,7 @@
#:use-module (gnu packages golang)
#:use-module (gnu packages groff)
#:use-module (gnu packages gsasl)
+ #:use-module (gnu packages kerberos)
#:use-module (gnu packages libidn)
#:use-module (gnu packages openldap)
#:use-module (gnu packages perl)
@@ -60,9 +61,9 @@
(outputs '("out"
"doc")) ;1.2 MiB of man3 pages
(inputs `(("gnutls" ,gnutls)
- ("gss" ,gss)
("libidn" ,libidn)
("libssh2" ,libssh2)
+ ("mit-krb5" ,mit-krb5)
("openldap" ,openldap)
("zlib" ,zlib)))
(native-inputs
@@ -81,7 +82,10 @@
(separator #f) ;single entry
(files '("etc/ssl/certs/ca-certificates.crt")))))
(arguments
- `(#:configure-flags '("--with-gnutls" "--with-gssapi")
+ `(#:configure-flags (list
+ "--with-gnutls"
+ (string-append "--with-gssapi="
+ (assoc-ref %build-inputs "mit-krb5")))
;; Add a phase to patch '/bin/sh' occurances in tests/runtests.pl
#:phases
(modify-phases %standard-phases
--
2.16.3
T
T
Tomáš ?ech wrote on 21 Apr 2018 17:52
Re: bug#31141: Acknowledgement ([PATCH] gnu: curl: Use mit-krb5 as GSSAPI implementation.)
(address . 31141@debbugs.gnu.org)
20180421155228.GB12004@doom
Hi,

did anyone have time to have a look on this change?

Is that problematic for you?


Best regards,

S_W
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEDOrssfr9jDQthC2PSiPjT6AzQ20FAlrbXjwACgkQSiPjT6Az
Q22i6w//dWIavhkaEKlvAE4lRkQjK1NenGrrSgAXb7TZ0s89grNM4r0/10457wcn
mY0WUOtZanWPoozrganiLevTp3+Is3IBbHFRUmO4Qxs8n4pq7zhzWlRn/1agkm0u
EVysu1kPFaPrCKQV8u3exFzFN1YfmQmmXkdeQKX74xiO8WuPLNknLOK7gXzsQ9DQ
h3bsSU6JiGr8OspfCD8H5K3IQBUelLmL7Vzq9Ii9jxLQfDRYMUA83sZZ+5YRAvYX
q/CJIOkD24IGUNlPFoQKOonFwyvBII6kCDGZ12mYA9KGS+GHpUtsdyKajl35OTqo
2pYL/N1273qbM6rHGUSUeEIbuMfsWIrWWSNqzmzRSOMkx4R0FNEvL3lHLajE5hlm
0w5BBJtADTGGoRISmifetUO+r6VfvFPdQYoJGMYMAsXVadFlTR3LZryh4ApZNSEH
lBHcIJHyOkGtLRRfg14LGC0mhyxqx7UryCogyH60Kl1+nKuXE48rg7oLpotr6ghG
CcCLiVkqh6ykbxSnDmZ1zz0aLilmwXHRJWRkm6baHcj5AkDauVAYgNVUoqzGEHO3
s/RKNZbbyl1tYeGLZItlMJzzfUHSI+5qsbNPTl8ynTNDYR14DH1PyAb1p9GsW4OZ
yvnMh2oge1tbLXpTSYgyaAA8au9+lxcd0IU8QNlcyyGGDQuaQQI=
=7XZS
-----END PGP SIGNATURE-----


T
T
Tomáš ?ech wrote on 21 Apr 2018 18:10
[PATCH] gnu: curl: Use mit-krb5 as GSSAPI implementation.
(address . 31141@debbugs.gnu.org)(name . Tomáš ?ech)(address . sleep_walker@gnu.org)
20180421161017.25789-1-sleep_walker@gnu.org
* gnu/packages/curl.scm (curl)[inputs]: Replace gss with mit-krb5.
[arguments]: Help configure with locating mit-krb5.
---
gnu/packages/curl.scm | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

Toggle diff (37 lines)
diff --git a/gnu/packages/curl.scm b/gnu/packages/curl.scm
index ae8b9600d..b5e1f52da 100644
--- a/gnu/packages/curl.scm
+++ b/gnu/packages/curl.scm
@@ -38,6 +38,7 @@
#:use-module (gnu packages groff)
#:use-module (gnu packages gsasl)
#:use-module (gnu packages guile)
+ #:use-module (gnu packages kerberos)
#:use-module (gnu packages libidn)
#:use-module (gnu packages openldap)
#:use-module (gnu packages perl)
@@ -62,9 +63,9 @@
(outputs '("out"
"doc")) ;1.2 MiB of man3 pages
(inputs `(("gnutls" ,gnutls)
- ("gss" ,gss)
("libidn" ,libidn)
("libssh2" ,libssh2)
+ ("mit-krb5" ,mit-krb5)
("openldap" ,openldap)
("zlib" ,zlib)))
(native-inputs
@@ -83,7 +84,10 @@
(separator #f) ;single entry
(files '("etc/ssl/certs/ca-certificates.crt")))))
(arguments
- `(#:configure-flags '("--with-gnutls" "--with-gssapi")
+ `(#:configure-flags (list
+ "--with-gnutls"
+ (string-append "--with-gssapi="
+ (assoc-ref %build-inputs "mit-krb5")))
;; Add a phase to patch '/bin/sh' occurances in tests/runtests.pl
#:phases
(modify-phases %standard-phases
--
2.17.0
L
L
Ludovic Courtès wrote on 23 Apr 2018 14:57
(name . Tomáš ?ech)(address . sleep_walker@gnu.org)(address . 31141@debbugs.gnu.org)
87o9ia2i81.fsf@gnu.org
Hello,

Tomáš ?ech <sleep_walker@gnu.org> skribis:

Toggle quote (27 lines)
> * gnu/packages/curl.scm (curl)[inputs]: Replace gss with mit-krb5.
> [arguments]: Help configure with locating mit-krb5.
> ---
> gnu/packages/curl.scm | 8 ++++++--
> 1 file changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/gnu/packages/curl.scm b/gnu/packages/curl.scm
> index ae8b9600d..b5e1f52da 100644
> --- a/gnu/packages/curl.scm
> +++ b/gnu/packages/curl.scm
> @@ -38,6 +38,7 @@
> #:use-module (gnu packages groff)
> #:use-module (gnu packages gsasl)
> #:use-module (gnu packages guile)
> + #:use-module (gnu packages kerberos)
> #:use-module (gnu packages libidn)
> #:use-module (gnu packages openldap)
> #:use-module (gnu packages perl)
> @@ -62,9 +63,9 @@
> (outputs '("out"
> "doc")) ;1.2 MiB of man3 pages
> (inputs `(("gnutls" ,gnutls)
> - ("gss" ,gss)
> ("libidn" ,libidn)
> ("libssh2" ,libssh2)
> + ("mit-krb5" ,mit-krb5)

Could you explain the rationale? In general, if there’s a choice and no
compelling reason to do otherwise, we try to favor the GNU
implementation (in this case, GNU GSS) by default.

Thanks,
Ludo’.
T
T
Tomáš ?ech wrote on 23 Apr 2018 16:53
(name . Ludovic Courtès)(address . ludo@gnu.org)(address . 31141@debbugs.gnu.org)
20180423145345.xk4qeubkovrat37m@doom
Hello,

On Mon, Apr 23, 2018 at 02:57:34PM +0200, Ludovic Courtès wrote:
Toggle quote (35 lines)
>Hello,
>
>Tomáš ?ech <sleep_walker@gnu.org> skribis:
>
>> * gnu/packages/curl.scm (curl)[inputs]: Replace gss with mit-krb5.
>> [arguments]: Help configure with locating mit-krb5.
>> ---
>> gnu/packages/curl.scm | 8 ++++++--
>> 1 file changed, 6 insertions(+), 2 deletions(-)
>>
>> diff --git a/gnu/packages/curl.scm b/gnu/packages/curl.scm
>> index ae8b9600d..b5e1f52da 100644
>> --- a/gnu/packages/curl.scm
>> +++ b/gnu/packages/curl.scm
>> @@ -38,6 +38,7 @@
>> #:use-module (gnu packages groff)
>> #:use-module (gnu packages gsasl)
>> #:use-module (gnu packages guile)
>> + #:use-module (gnu packages kerberos)
>> #:use-module (gnu packages libidn)
>> #:use-module (gnu packages openldap)
>> #:use-module (gnu packages perl)
>> @@ -62,9 +63,9 @@
>> (outputs '("out"
>> "doc")) ;1.2 MiB of man3 pages
>> (inputs `(("gnutls" ,gnutls)
>> - ("gss" ,gss)
>> ("libidn" ,libidn)
>> ("libssh2" ,libssh2)
>> + ("mit-krb5" ,mit-krb5)
>
>Could you explain the rationale? In general, if there’s a choice and no
>compelling reason to do otherwise, we try to favor the GNU
>implementation (in this case, GNU GSS) by default.

I am using curl against services with Kerberos authentication. Login
against authority server and obtain ticket proving that I am who I
am. I can use that ticket against services.

I'm not able to do the same with GNU GSS implementation. I might be
wrong but it didn't seem to allow me to do the same at least in the
shape we have it.

After this change it works for me as expected.

Best regards,

S_W
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEDOrssfr9jDQthC2PSiPjT6AzQ20FAlrd83kACgkQSiPjT6Az
Q20cew/9FakNAzrkhjEJMj6pYmqvINrmVPDcmU8m8z+sBLe4pRfHYi6O07bSDfZM
t4lqN5K6F56jFMywG5X4Z9Yl2rqPnPf1VnSSjTrUTPr32ZZ04+00eidQYXLDNlBX
PbFgYU4UkNpyIHXJC/P1/sysnSvSl1IuoQrPu+uezhQhJ4w8xIwZ5pB08CI8fz+Z
C9h/6qxOAS6hIgkQ1prtFLxxh81wtCr3F5lmHZeKA9/YV+Rq7zHBUM+M0bZ/EKYv
be1wd4EAFrh34VW7GrEvaSR5zgXHRTW3Q0NA0Gn7j+Dm0OHi9FEWzydjU/UbKhrn
r+DfYFhmhI7tdlWb2MY8tkdxJ8oggHthNTeZ9/4YdBXC9+c1xTYmwTm6S5RPzrRV
q+NUL10RQ9JmEp2LBG0+6ZHfVcIdXVV/8jBPTcfIvvgWSEXbsjPdwZf5vU+P2t52
zf3LTeyyIVpbzT8RaDgw8pPqVRUvLgQOGHDiY6Jlrqs36RaYteXtJre9yg+OXJ70
VwNp6md1k0+C+AbzaNAF/fV4ZGNcBO9NQXy+3lJyRb68dBp9514WB5ClU8j+tTC3
YWc9gOJ1mnKigaxbApEL3++IZiFUaQ/14X1HYUiIUeKneQz1MMcgjI4Kon7nEPkn
ZF3qnMc/uR9WkURgrFkW/Ap59QDmiROx9nCN5DKei9LN5/cm9iU=
=d72Z
-----END PGP SIGNATURE-----


L
L
Ludovic Courtès wrote on 23 Apr 2018 17:24
(name . Tomáš ?ech)(address . sleep_walker@gnu.org)(address . 31141@debbugs.gnu.org)
87fu3mymhf.fsf@gnu.org
Hello,

Tomáš ?ech <sleep_walker@gnu.org> skribis:

Toggle quote (8 lines)
> I am using curl against services with Kerberos authentication. Login
> against authority server and obtain ticket proving that I am who I
> am. I can use that ticket against services.
>
> I'm not able to do the same with GNU GSS implementation. I might be
> wrong but it didn't seem to allow me to do the same at least in the
> shape we have it.

I just realized that the equivalent of mit-krb5 would be GNU Shishi, not
GNU GSS. Does that one work for you? (Perhaps GSS is still needed in
addition to Shishi though, dunno.)

If not, I have nothing against switching to mit-krb5 if that doesn’t
work either, with a comment explaining it.

Thanks,
Ludo’.
E
E
Efraim Flashner wrote on 10 Apr 2020 00:50
Re: [bug#31141] [PATCH] gnu: curl: Use mit-krb5 as GSSAPI
(address . 31141-done@debbugs.gnu.org)
20200409225049.GZ1518@E5400
This seems to have been applied with commit
828d3765a71ce1b74d1ab122c84d5c16eabf98b9 in May 2019.

--
Efraim Flashner <efraim@flashner.co.il> ????? ?????
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAl6PpsUACgkQQarn3Mo9
g1Hnrw//Zubk+RIwhNRK1JYtSzb6wf1s60Lp8yWRPfO+KIXl4aR1qLQU1QzN8Hca
MkdOoDXW8zglTSV//uO9m1pEzIybdJs3RvVyP1vlEFzfsD3mM5M3JX4BXYZvQChd
Exgbvx39vPwZolNVUEBdXc8/bDeKkqzAe1yDUnm3mZ4z34Q5m1/iXFoqmsu3LACC
jCNvtlL9dgLqHkZMuKU1ukRUd+bTAmIR32fpQKeafXTXUEASvddRy0PBqiAAxYm0
Xe2tPkQUXPIwsR8Ga9TcTm7FKls97iLl4aY0ETrijJSPmgYhtx9TluC3czTuFOXc
N5GOUeMQH1F39RAjo0IsvMpPnzwuNu18UMUZAqxwM/Zq7MQvwwL0U9t8R/rm5WgA
ddlMgcf2zHhLEhA/ruzUH1LmziVGX0IkDufejMwl0A2YkUbs4LLDcRu2oE7hXiVM
Uzxt6VuvLpWSb/TTpbL+yfqshafdLCkeprMb18aga49WTcXYb3JS18BdXGJNo3Vk
LCJleAPhpSR9F8cmm+DzIKs1VEREuT/XLEz280VAKnrETy4IS3NM2WdkcGCp/As4
e1lqucV2nn5Rgu8TCl+zX0/gD/OIh/VJ/iVhxBuTArZPLkUU9wQrkwhPXZA682NT
kGHr26M08QC98Xaq2l6zBoElH19d5KRt5eXqbmwdpGnN7XBrOZI=
=YSZ4
-----END PGP SIGNATURE-----


Closed
?
Your comment

This issue is archived.

To comment on this conversation send an email to 31141@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 31141
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch