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
Hello, 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
which 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
Thank you for reply. Seems like i've applied the patch, but now i have troubles with package building with "confflags += --with-ldap"
Dick Visser
Ah, 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
Thank you! You are the savior
Dick Visser
So? it worked then?
Anonymous
patches applied, but no ldap option in configuration, compilation works just fine, but no support for lpk :/
Dick Visser
The 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: