Please login or register. June 27, 2017, 08:49:23 PM

Author Topic: sudo without ldap  (Read 1051 times)

0 Members and 1 Guest are viewing this topic.

owlmind

  • Jr. Member
  • **
  • Posts: 6
  • Karma: +0/-0
sudo without ldap
« on: September 16, 2016, 10:57:29 AM »
Hello,

I would like to have sudo package without ldap dependencies.
Wiki says it's on equest-only basis. How can i get it?

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1039
  • Karma: +0/-0
Re: sudo without ldap
« Reply #1 on: September 24, 2016, 02:27:46 PM »
I packaged it again - and updated the wiki with the link to the package.

Internally installp will see them as the same fileset, so be sure and have only one of the two in the directory you use for installp.
Further, there should be no other dependancies - from AIX 5.3 TL7 and later it should just "install"

I would be grateful for a short reaction that it is working (and maybe a tweet, etc. aka marketing!). And of course, if something is not working, let me know and I shall do my best to repair it.
« Last Edit: September 24, 2016, 03:13:26 PM by Michael »

owlmind

  • Jr. Member
  • **
  • Posts: 6
  • Karma: +0/-0
Re: sudo without ldap
« Reply #2 on: December 06, 2016, 06:35:55 AM »
Hello,

I'm sorry i wasn't able to answer fast. It works great. Thank you very much.

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1039
  • Karma: +0/-0
Re: sudo without ldap
« Reply #3 on: December 06, 2016, 05:18:38 PM »
Thanks for the update!

jcny

  • New Member
  • *
  • Posts: 2
  • Karma: +0/-0
Re: sudo without ldap
« Reply #4 on: January 19, 2017, 05:29:59 PM »
Sorry for the noob question, but where is the area with the downloads?
Also, did you download the source from the www.sudo.ws and during the config phase of the build, just choose "no-ldap" or something.

I am asking because I am wondering how people update sudo or other open source packages when IBM doesn't release updates as often as the software's developers.

I tried to install  sudo-1.8.15-2.aix6.1.ppc.rpm from the Toolbox for Linux site but as with the OP, I get the same issue.
error: failed dependencies:
        openldap >= 2.4.40 is needed by sudo-1.8.15-2
        liblber.a(liblber-2.4.so.2) is needed by sudo-1.8.15-2
        libldap.a(libldap-2.4.so.2) is needed by sudo-1.8.15-2

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1039
  • Karma: +0/-0
Re: sudo without ldap
« Reply #5 on: January 19, 2017, 08:17:51 PM »
Quote
Sorry for the noob question, but where is the area with the downloads?

http://www.aixtools.net/index.php/sudo - specifically for sudo

You can also just "browse" via http://www.aixtools.net or http://download.aixtools.net

In general, I package using my tool buildaix (see: http://www.aixtools.net/index.php/buildaix)
Quote
Also, did you download the source from the www.sudo.ws and during the config phase of the build, just choose "no-ldap" or something.
Short answer: - yes, that is exactly what I do.

FYI: the 'ldap' version depends on the AIX ldap client, not an opensource 'openldap' client.

jcny

  • New Member
  • *
  • Posts: 2
  • Karma: +0/-0
Re: sudo without ldap
« Reply #6 on: January 23, 2017, 08:38:41 PM »
Thank you for your help. In fact I was able to build the no-ldap "rpm" file, thereby mimicking what is in the linux toolbox for AIX.

After downloading and extracting the tar.gz source, in the source tree is the mkpkg file.

#  ./mkpkg --platform=rpm 

---lotos of output
pp: [warning] The following files/directories were found but not packaged:
    /etc/
    /etc/rc.d/
    /etc/rc.d/init.d/
    /etc/rc.d/rc2.d/
    /etc/rc.d/rc2.d/S90sudo
    /usr/
    /usr/bin/
    /usr/sbin/
Building target platforms: ppc
Building for target ppc
sudo-1.8.19-3.ppc.rpm

I then removed the old rpm and installed the new one.

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1039
  • Karma: +0/-0
Re: sudo without ldap
« Reply #7 on: January 24, 2017, 06:16:06 AM »
Thanks for pointing out I need to repackage to a later version (1.8.19, rather than 1.8.16).

Glad I could have been of some assistance.

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1039
  • Karma: +0/-0
Re: sudo without ldap
« Reply #8 on: January 24, 2017, 08:40:08 AM »
I was surprised to see that mkpkg is also creating an installp package (I thought you were making an RPM package).

The key differences between mine and the old AIX toolbox is that 'mine' does not install to /opt/freeware, and I have been building as 64-bit.

So, I have also looked at the pp tool. FYI: I use (made) something similiar - that I call buildaix. Unlike pp, buildaix is not cross-platform - but it does not need a spec file as input. It generates it from the "make DESTDIR=/somewhere/else install" results.

Sudo still needs some assistance (chmod/chown of some key files).

Again, thanks for the feedback. Learned something - sudo supports AIX packaging - directly from the sources!