[sudo-users] LDAPS + sudo + AIX 7.1

ace man kevev at hotmail.com
Mon Aug 19 07:33:36 MDT 2013


I built 1.8.7 and it still uses PAM. The configure says it sets aixauth, but the compilation ignores this and uses PAM.

Here are the outputs from configure & mkpkg:

http://pastebin.com/qKMxrp7W

http://pastebin.com/mFJzW4ns


root@ sudo-1.8.7 #: ./configure --prefix=/opt/freeware --with-insults=disabled --mandir=/opt/freeware/man --with-aixauth --with-logging=syslog --with-logfac=auth --with-editor=/usr/bin/vi --with-env-editor --enable-zlib=builtin --disable-nls --with-sendmail=/usr/sbin/sendmail --with-ldap=/opt/IBM/ldap/V6.3 --with-incpath=/opt/IBM/ldap/V6.3/include --with-libpath=/opt/IBM/ldap/V6.3/lib --with-ldap-conf-file=/etc/ldap.conf > configure.out
 
 
root@ sudo-1.8.7 #: ./mkpkg --flavor=ldap > mkpkg.out
./iolog.c: In function 'io_mkdirs':
./iolog.c:154: warning: comparison between pointer and integer
pp: [warning] The following files/directories were found but not packaged:
    /etc/
    /usr/
    /usr/bin/
    /usr/sbin/
./pp[212]: sudo:  not found.
 
 
root@ sudo-1.8.7 #: installp -a -d sudo-ldap.1.8.7.0.bff all
+-----------------------------------------------------------------------------+
                    Pre-installation Verification...
+-----------------------------------------------------------------------------+
Verifying selections...done
Verifying requisites...done
Results...
 
SUCCESSES
---------
  Filesets listed in this section passed pre-installation verification
  and will be installed.
 
  Selected Filesets
  -----------------
  sudo-ldap.rte 1.8.7.0                       # Configurable super-user priv...
 
  << End of Success Section >>
 
+-----------------------------------------------------------------------------+
                   BUILDDATE Verification ...
+-----------------------------------------------------------------------------+
Verifying build dates...done
FILESET STATISTICS
------------------
    1  Selected to be installed, of which:
        1  Passed pre-installation verification
  ----
    1  Total to be installed
 
+-----------------------------------------------------------------------------+
                         Installing Software...
+-----------------------------------------------------------------------------+
 
installp:  APPLYING software for:
        sudo-ldap.rte 1.8.7.0
 
 
. . . . . << Copyright notice for sudo-ldap >> . . . . . . .
(c) 1993-1996,1998-2013 Todd C. Miller
. . . . . << End of copyright notice for sudo-ldap >>. . . .
 
Finished processing all filesets.  (Total time:  4 secs).
 
+-----------------------------------------------------------------------------+
                                Summaries:
+-----------------------------------------------------------------------------+
 
Installation Summary
--------------------
Name                        Level           Part        Event       Result
-------------------------------------------------------------------------------
sudo-ldap.rte               1.8.7.0         USR         APPLY       SUCCESS
sudo-ldap.rte               1.8.7.0         ROOT        APPLY       SUCCESS
 
 
root@ sudo-1.8.7 #: sudo -V
Sudo version 1.8.7
Configure options: --prefix=/opt/freeware --mandir=/opt/freeware/man --with-insults=disabled --with-logging=syslog --with-logfac=auth --with-editor=/usr/bin/vi --with-env-editor --enable-zlib=builtin --disable-nls --with-sendmail=/usr/sbin/sendmail
Sudoers policy plugin version 1.8.7
Sudoers file grammar version 43
 
Sudoers path: /etc/sudoers
Authentication methods: 'pam'
Syslog facility if syslog is being used for logging: auth
Syslog priority to use when user authenticates successfully: notice
Syslog priority to use when user authenticates unsuccessfully: alert
Send mail if the user is not in sudoers
Use a separate timestamp for each user/tty combo
Lecture user the first time they run sudo
Require users to authenticate by default
Root may run sudo
Allow some information gathering to give useful error messages
Visudo will honor the EDITOR environment variable
Set the LOGNAME and USER environment variables
Length at which to wrap log file lines (0 for no wrap): 80
Authentication timestamp timeout: 5.0 minutes
Password prompt timeout: 5.0 minutes
Number of tries to enter a password: 3
Umask to use or 0777 to use user's: 022
Path to mail program: /usr/sbin/sendmail
Flags for mail program: -t
Address to send mail to: root
Subject line for mail messages: *** SECURITY information for %h ***
Incorrect password message: Sorry, try again.
Path to authentication timestamp dir: /var/lib/sudo
Default password prompt: Password:
Default user to run commands as: root
Path to the editor for use by visudo: /usr/bin/vi
When to require a password for 'list' pseudocommand: any
When to require a password for 'verify' pseudocommand: all
File descriptors >= 3 will be closed before executing a command
Reset the environment to a default set of variables
Environment variables to check for sanity:
        TERM
        LINGUAS
        LC_*
        LANGUAGE
        LANG
        COLORTERM
Environment variables to remove:
        RUBYOPT
        RUBYLIB
        PYTHONUSERBASE
        PYTHONINSPECT
        PYTHONPATH
        PYTHONHOME
        TMPPREFIX
        ZDOTDIR
        READNULLCMD
        NULLCMD
        FPATH
        PERL5DB
        PERL5OPT
        PERL5LIB
        PERLLIB
        PERLIO_DEBUG
        JAVA_TOOL_OPTIONS
        SHELLOPTS
        GLOBIGNORE
        PS4
        BASH_ENV
        ENV
        TERMCAP
        TERMPATH
        TERMINFO_DIRS
        TERMINFO
        AUTHSTATE
        LIBPATH
        LDR_*
        _RLD*
        LD_*
        PATH_LOCALE
        NLSPATH
        HOSTALIASES
        RES_OPTIONS
        LOCALDOMAIN
        CDPATH
        IFS
Environment variables to preserve:
        XAUTHORIZATION
        XAUTHORITY
        TZ
        PS2
        PS1
        PATH
        LS_COLORS
        KRB5CCNAME
        HOSTNAME
        DISPLAY
        COLORS
Locale to use while parsing sudoers: C
Compress I/O logs using zlib
Directory in which to store input/output logs: /var/log/sudo-io
File in which to store the input/output log: %{seq}
Add an entry to the utmp/utmpx file when allocating a pty
Create a new PAM session for the command to run in
Maximum I/O log sequence number
 
Local IP address and netmask pairs:
        192.168.20.250/255.255.255.0
 
Sudoers I/O plugin version 1.8.7

> From: Todd.Miller at courtesan.com
> To: kevev at hotmail.com
> CC: sudo-users at sudo.ws
> Subject: Re: [sudo-users] LDAPS + sudo + AIX 7.1
> Date: Sat, 17 Aug 2013 05:27:27 -0600
> 
> On Fri, 16 Aug 2013 18:05:19 -0500, ace man wrote:
> 
> > I installed and built every version on the sudo site but when I did
> > a `sudo -V` is showed Authentication methods: 'pam'
> > My 1.6.9p23 build shows
> > Authentication methods: 'aixauth'
> 
> Sudo uses PAM by default on AIX 6 and above.  If you need to use
> AIX authentication instead, run configure with the --with-aixauth
> option.
> 
> > This is the only one I could build that would work with LDAP.
> > I am using these LDAP libraries:
> > /opt/IBM/ldap/V6.3 I am not sure if they are OpenLDAP or Tivoli.
> 
> That's Tivoli.
> 
> > Here is my configure line:
> > ./configure --prefix=/opt/freeware --mandir /opt/freeware/man
> > --with-logging=syslog --withlogfac=auth --with-editor=/usr/bin/vi
> > --with-env-editor --enable-zlib=builtin --disable-nls
> > --with-sendmail=/usr/sbin/sendmail --with-ldap=/opt/IBM/ldap/V6.3
> > --with-incpath=/opt/IBM/ldap/V6.3/include
> > --with-libpath=/opt/IBM/ldap/V6.3/lib --with-ldap-conf-file=/etc/ldap.conf
> > Build + Install:
> > make && make PPFLAGS="" PPVARS="flavor=ldap" && make install
> > I got these lines from one of the AIX posts on the mailing list.
> 
> You don't need to set PPFLAGS or PPVARS unless you are building a
> package, in which case you're probably better off using the mkpkg
> script.
> 
> Sudo 1.6.x is no longer supported so I'd like to help you resolve
> whatever problems you are having with the newer versions.
> 
>  - todd
 		 	   		  


More information about the sudo-users mailing list