]> TLD Linux GIT Repositories - packages/openssh.git/commitdiff
- merged updated kuserok patch from PLD
authorMarcin Krol <hawk@tld-linux.org>
Thu, 6 Feb 2014 07:35:50 +0000 (07:35 +0000)
committerMarcin Krol <hawk@tld-linux.org>
Thu, 6 Feb 2014 07:35:50 +0000 (07:35 +0000)
openssh-kuserok.patch
openssh.spec

index 665b3743e1161ddc3c174a24764fa99de7617296..c221dceda5548bfcef27a4d3f805aa11abc6c9b6 100644 (file)
@@ -22,7 +22,7 @@ diff -up openssh-5.8p1/auth-krb5.c.kuserok openssh-5.8p1/auth-krb5.c
  static int
  krb5_init(void *context)
  {
-@@ -157,7 +171,7 @@ auth_krb5_password(Authctxt *authctxt, c
+@@ -146,7 +160,7 @@ auth_krb5_password(Authctxt *authctxt, c
        if (problem)
                goto out;
  
@@ -43,7 +43,7 @@ diff -up openssh-5.8p1/gss-serv-krb5.c.kuserok openssh-5.8p1/gss-serv-krb5.c
  /* Initialise the krb5 library, for the stuff that GSSAPI won't do */
  
 @@ -97,7 +98,7 @@ ssh_gssapi_krb5_userok(ssh_gssapi_client
-                   krb5_get_err_text(krb_context, retval));
+               krb5_free_error_message(krb_context, errmsg);
                return 0;
        }
 -      if (krb5_kuserok(krb_context, princ, name)) {
@@ -61,10 +61,10 @@ diff -up openssh-5.8p1/servconf.c.kuserok openssh-5.8p1/servconf.c
 +      options->use_kuserok = -1;
        options->adm_forced_command = NULL;
        options->chroot_directory = NULL;
-       options->zero_knowledge_password_authentication = -1;
+       options->authorized_keys_command = NULL;
 @@ -291,6 +292,8 @@ fill_default_server_options(ServerOption
        if (use_privsep == -1)
-               use_privsep = 1;
+               use_privsep = PRIVSEP_NOSANDBOX;
  
 +      if (options->use_kuserok == -1)
 +              options->use_kuserok = 1;
@@ -111,8 +111,8 @@ diff -up openssh-5.8p1/servconf.c.kuserok openssh-5.8p1/servconf.c
        M_CP_INTOPT(rekey_interval);
 +      M_CP_INTOPT(use_kuserok);
  
-       M_CP_STROPT(banner);
-       if (preauth)
+       /* M_CP_STROPT and M_CP_STRARRAYOPT should not appear before here */
+ #define M_CP_STROPT(n) do {\
 @@ -1764,6 +1774,7 @@ dump_config(ServerOptions *o)
        dump_cfg_fmtint(sUseDNS, o->use_dns);
        dump_cfg_fmtint(sAllowTcpForwarding, o->allow_tcp_forwarding);
@@ -153,7 +153,7 @@ diff -up openssh-5.8p1/sshd_config.5.kuserok openssh-5.8p1/sshd_config.5
 +.Cm KerberosUseKuserok ,
  .Cm MaxAuthTries ,
  .Cm MaxSessions ,
- .Cm PubkeyAuthentication ,
+ .Cm PasswordAuthentication ,
 diff -up openssh-5.8p1/sshd_config.kuserok openssh-5.8p1/sshd_config
 --- openssh-5.8p1/sshd_config.kuserok  2011-02-14 09:15:12.000000000 +0100
 +++ openssh-5.8p1/sshd_config  2011-02-14 09:15:12.000000000 +0100
index 3184d7857e3ab6015e5577b1b5a3a16cb3e6c8ed..1399892144f620ec4d11d25847ca23a65243d815 100644 (file)
@@ -30,7 +30,7 @@ Summary(ru.UTF-8):    OpenSSH - свободная реализация прото
 Summary(uk.UTF-8):     OpenSSH - вільна реалізація протоколу Secure Shell (SSH)
 Name:          openssh
 Version:       6.5p1
-Release:       1
+Release:       2
 Epoch:         2
 License:       BSD
 Group:         Applications/Networking