summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/openssh/files/openssh-5.1_p1-ldap-hpn-glue.patch')
-rw-r--r--net-misc/openssh/files/openssh-5.1_p1-ldap-hpn-glue.patch55
1 files changed, 55 insertions, 0 deletions
diff --git a/net-misc/openssh/files/openssh-5.1_p1-ldap-hpn-glue.patch b/net-misc/openssh/files/openssh-5.1_p1-ldap-hpn-glue.patch
new file mode 100644
index 000000000000..e6e22e865da6
--- /dev/null
+++ b/net-misc/openssh/files/openssh-5.1_p1-ldap-hpn-glue.patch
@@ -0,0 +1,55 @@
+diff -Nuar --exclude '*.rej' --exclude '*.orig' openssh-5.1p1+lpk/servconf.c openssh-5.1p1+lpk+glue/servconf.c
+--- openssh-5.1p1+lpk/servconf.c 2008-08-23 14:37:18.000000000 -0700
++++ openssh-5.1p1+lpk+glue/servconf.c 2008-08-23 14:52:19.000000000 -0700
+@@ -111,6 +111,25 @@
+ options->num_allow_groups = 0;
+ options->num_deny_groups = 0;
+ options->ciphers = NULL;
++#ifdef WITH_LDAP_PUBKEY
++ /* XXX dirty */
++ options->lpk.ld = NULL;
++ options->lpk.on = -1;
++ options->lpk.servers = NULL;
++ options->lpk.u_basedn = NULL;
++ options->lpk.g_basedn = NULL;
++ options->lpk.binddn = NULL;
++ options->lpk.bindpw = NULL;
++ options->lpk.sgroup = NULL;
++ options->lpk.filter = NULL;
++ options->lpk.fgroup = NULL;
++ options->lpk.l_conf = NULL;
++ options->lpk.tls = -1;
++ options->lpk.b_timeout.tv_sec = -1;
++ options->lpk.s_timeout.tv_sec = -1;
++ options->lpk.flags = FLAG_EMPTY;
++#endif
++
+ options->macs = NULL;
+ options->protocol = SSH_PROTO_UNKNOWN;
+ options->gateway_ports = -1;
+@@ -131,25 +150,6 @@
+ options->num_permitted_opens = -1;
+ options->adm_forced_command = NULL;
+ options->chroot_directory = NULL;
+-#ifdef WITH_LDAP_PUBKEY
+- /* XXX dirty */
+- options->lpk.ld = NULL;
+- options->lpk.on = -1;
+- options->lpk.servers = NULL;
+- options->lpk.u_basedn = NULL;
+- options->lpk.g_basedn = NULL;
+- options->lpk.binddn = NULL;
+- options->lpk.bindpw = NULL;
+- options->lpk.sgroup = NULL;
+- options->lpk.filter = NULL;
+- options->lpk.fgroup = NULL;
+- options->lpk.l_conf = NULL;
+- options->lpk.tls = -1;
+- options->lpk.b_timeout.tv_sec = -1;
+- options->lpk.s_timeout.tv_sec = -1;
+- options->lpk.flags = FLAG_EMPTY;
+-#endif
+-
+ }
+
+ void