]> git.pld-linux.org Git - packages/openssh.git/commitdiff
- use /etc/ldap.conf, not another copy of ldap.conf
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 28 Sep 2011 22:04:27 +0000 (22:04 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    ldap.conf.patch -> 1.1
    openssh.spec -> 1.373

ldap.conf.patch [new file with mode: 0644]
openssh.spec

diff --git a/ldap.conf.patch b/ldap.conf.patch
new file mode 100644 (file)
index 0000000..6584785
--- /dev/null
@@ -0,0 +1,56 @@
+--- openssh-5.9p1/./ldap-helper.c~     2011-09-29 00:38:28.000000000 +0300
++++ openssh-5.9p1/./ldap-helper.c      2011-09-29 00:54:04.004223268 +0300
+@@ -34,7 +34,7 @@
+ static int config_debug = 0;
+ int config_exclusive_config_file = 0;
+-static char *config_file_name = "/etc/ssh/ldap.conf";
++static char *config_file_name = "/etc/ldap.conf";
+ static char *config_single_user = NULL;
+ static int config_verbose = SYSLOG_LEVEL_VERBOSE;
+ int config_warning_config_file = 0;
+@@ -48,7 +48,7 @@
+       fprintf(stderr, "Options:\n");
+       fprintf(stderr, "  -d          Output the log messages to stderr.\n");
+       fprintf(stderr, "  -e          Check the config file for unknown commands.\n");
+-      fprintf(stderr, "  -f file     Use alternate config file (default is /etc/ssh/ldap.conf).\n");
++      fprintf(stderr, "  -f file     Use alternate config file (default is /etc/ldap.conf).\n");
+       fprintf(stderr, "  -s user     Do not demonize, send the user's key to stdout.\n");
+       fprintf(stderr, "  -v          Increase verbosity of the debug output (implies -d).\n");
+       fprintf(stderr, "  -w          Warn on unknown commands in the config file.\n");
+--- openssh-5.9p1/./ssh-ldap-helper.8~ 2011-09-29 00:38:28.000000000 +0300
++++ openssh-5.9p1/./ssh-ldap-helper.8  2011-09-29 00:54:14.308032118 +0300
+@@ -56,7 +56,7 @@
+ halts if it encounters an unknown item in the ldap.conf file.
+ .It Fl f
+ .Nm
+-uses this file as the ldap configuration file instead of /etc/ssh/ldap.conf (default).
++uses this file as the ldap configuration file instead of /etc/ldap.conf (default).
+ .It Fl s
+ .Nm
+ prints out the user's keys to stdout and exits.
+--- openssh-5.9p1/./ssh-ldap.conf.5~   2011-09-29 00:38:28.000000000 +0300
++++ openssh-5.9p1/./ssh-ldap.conf.5    2011-09-29 00:54:40.285897653 +0300
+@@ -21,11 +21,11 @@
+ .Nm ssh-ldap.conf
+ .Nd configuration file for ssh-ldap-helper
+ .Sh SYNOPSIS
+-.Nm /etc/ssh/ldap.conf
++.Nm /etc/ldap.conf
+ .Sh DESCRIPTION
+ .Xr ssh-ldap-helper 8
+ reads configuration data from
+-.Pa /etc/ssh/ldap.conf
++.Pa /etc/ldap.conf
+ (or the file specified with
+ .Fl f
+ on the command line).
+@@ -361,7 +361,7 @@
+ .El
+ .Sh FILES
+ .Bl -tag -width Ds
+-.It Pa  /etc/ssh/ldap.conf
++.It Pa  /etc/ldap.conf
+ Ldap configuration file for
+ .Xr ssh-ldap-helper 8 .
+ .El
index 39751de484f3529ace6034eba1132e4e7ca16ddf..6fdec204c051181726e42876e83a90c271157eb0 100644 (file)
@@ -52,6 +52,7 @@ Patch3:               %{name}-sigpipe.patch
 # http://pkgs.fedoraproject.org/gitweb/?p=openssh.git;a=tree
 Patch4:                %{name}-5.9p1-ldap.patch
 Patch5:                %{name}-5.9p1-ldap-fixes.patch
+Patch8:                ldap.conf.patch
 Patch6:                %{name}-config.patch
 # https://bugzilla.mindrot.org/show_bug.cgi?id=1663
 Patch7:                authorized-keys-command.patch
@@ -499,6 +500,7 @@ openldap-a.
 %patch3 -p1
 %{?with_ldap:%patch4 -p1}
 %{?with_ldap:%patch5 -p1}
+%{?with_ldap:%patch8 -p1}
 %patch6 -p1
 %patch7 -p1
 %{?with_hpn:%patch9 -p1}
@@ -617,6 +619,7 @@ cat << 'EOF' > $RPM_BUILD_ROOT/etc/env.d/SSH_ASKPASS
 EOF
 
 %{__rm} $RPM_BUILD_ROOT%{_mandir}/README.openssh-non-english-man-pages
+%{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/ldap.conf
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -735,7 +738,7 @@ fi
 
 %files server
 %defattr(644,root,root,755)
-%doc HOWTO.ldap-keys
+%doc HOWTO.ldap-keys ldap.conf
 %attr(755,root,root) %{_sbindir}/sshd
 %attr(755,root,root) %{_libexecdir}/sftp-server
 %attr(755,root,root) %{_libexecdir}/ssh-keysign
@@ -751,7 +754,6 @@ fi
 %{_mandir}/man5/ssh-ldap.conf.5*
 %{_mandir}/man5/moduli.5*
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sshd_config
-%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ldap.conf
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/sshd
 %attr(640,root,root) %{_sysconfdir}/moduli
 %attr(754,root,root) /etc/rc.d/init.d/sshd
This page took 0.343342 seconds and 4 git commands to generate.