Ubuntu 12.04 ships with OpenSSH-5.9p1.
We would like to have the LDAP Public Keys patch incorporated, as well as the SFTP File Control patch
To do this:
- cd /usr/src
- apt-get source openssh && cd openssh-5.9p1
- patch < ~/sftp.patch
- dpkg-source --commit
- patch < ~/lpk.patch
- dpkg-source --commit
- dpkg-buildpackage
Both had to be slightly changed so they could be applied (order: sftp,lpk).
After successful compilation I have added them to our new Ubuntu repository at http://ubuntu.terena.net
8 Comments
Anonymous
Jun 27, 2012Hello, i'm trying to pach openssh5.9p1 on ubuntu 12.04LTS, can you please explain what do i need to change in this patch, to get it to work?
thank you.
Dick Visser
Jun 27, 2012which patch are you trying to apply?
the two patches can be applied without modification, but to add them both you'll have to edit them
Anonymous
Jun 28, 2012Thank you for reply. Seems like i've applied the patch, but now i have troubles with package building with "confflags += --with-ldap"
Dick Visser
Jun 28, 2012Ah, some little details, you have to patch debian/rules as well. see attached patch.
Once that is done, you also have to install libldap2-dev of course.
Anonymous
Jun 28, 2012Thank you! You are the savior
Dick Visser
Jun 28, 2012So? it worked then?
Anonymous
Dec 20, 2012patches applied, but no ldap option in configuration, compilation works just fine, but no support for lpk :/
Dick Visser
Dec 20, 2012The configuration option do not magically appear in the configuration file, you have to add them.
If everthing compiled OK, you should be able to see this reflected in the man page: