AIX 5.2 w/ password expiration patch
Ryan.Kish_at_i-structure.com
Date: 07/17/03
- Previous message: Armin M. Safarians: "Re: SSH question"
- Next in thread: Darren Tucker: "Re: AIX 5.2 w/ password expiration patch"
- Maybe reply: Darren Tucker: "Re: AIX 5.2 w/ password expiration patch"
- Reply: Darren Tucker: "Re: AIX 5.2 w/ password expiration patch"
- Maybe reply: Ryan.Kish_at_i-structure.com: "RE: AIX 5.2 w/ password expiration patch"
- Maybe reply: Ryan.Kish_at_i-structure.com: "RE: AIX 5.2 w/ password expiration patch"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
To: secureshell@securityfocus.com Date: Thu, 17 Jul 2003 15:37:11 -0500
Hello,
Recently we have upgraded some of our systems to AIX 5.2. Now that this has
occurred, I have run into issues trying to compile OpenSSH 3.6.1p2 with the
Multi-platform Password Expiry patch (22). Below are the steps I have taken
so far:
configure is run with the following flags, --with-tcp-wrappers,
--with-ssl-dir, --with-zlib
Unfortunately, the compile fails with the following message:
----------------------------------------------------------------------------
-----------------------------------------------------------------
In file included from includes.h:34,
from auth.c:25:
/usr/include/time.h:236: warning: `struct sigevent' declared inside
parameter list
/usr/include/time.h:236: warning: its scope is only this definition or
declaration, which is probably not what you want.
In file included from auth.c:41:
/usr/include/usersec.h:656: warning: `struct aud_rec' declared inside
parameter list
/usr/include/usersec.h:657: warning: `struct aud_rec' declared inside
parameter list
auth.c: In function `allowed_user':
auth.c:283: warning: long unsigned int format, unsigned int arg (arg 3)
auth.c: In function `generate_login_message':
auth.c:341: warning: passing arg 1 of `loginsuccess' discards qualifiers
from pointer target type
auth.c:341: warning: passing arg 2 of `loginsuccess' discards qualifiers
from pointer target type
auth.c: In function `auth_log':
auth.c:403: warning: passing arg 2 of `loginfailed' discards qualifiers from
pointer target type
auth.c:403: too few arguments to function `loginfailed'
auth.c: In function `expand_filename':
auth.c:481: warning: implicit declaration of function `snprintf'
auth.c: In function `getpwnamallow':
auth.c:630: warning: passing arg 1 of `loginfailed' discards qualifiers from
pointer target type
auth.c:630: warning: passing arg 2 of `loginfailed' discards qualifiers from
pointer target type
auth.c:630: too few arguments to function `loginfailed'
auth.c: In function `auth_debug_add':
auth.c:666: warning: implicit declaration of function `vsnprintf'
make: The error code from the last command is 1.
----------------------------------------------------------------------------
-----------------------------------------------------------------
A google search on the phrase "too few arguments to function `loginfailed'"
turns up this page:
http://msgs.securepoint.com/cgi-bin/get/openssh-unix-dev-0306/38.html
Basically, it looks like loginfailed() takes a 4th argument. It goes on to
reference a discussion and a quick fix at:
http://marc.theaimsgroup.com/?l=openssh-unix-dev&m=105223097117841
This is where it gets a bit hazy for me. I do not know C.
The fix from the second website looks like this
> From the man page, I'm guessing that you need to add "#include
> <sys/audit.h>" to the top of auth.c and add
> a 4th paramter (AUDIT_FAIL_AUTH) to the loginfailed() call. The modified
> code will look like:
> #ifdef WITH_AIXAUTHENTICATE
> loginfailed(user,
> get_canonical_hostname(options.verify_reverse_mapping),
> "ssh", AUDIT_FAIL_AUTH);
> #endif
in auth.c I change the code to look like the following
on line 26 I add: #include <sys/audit.h>
on line 404 I modify it to look like: "ssh", AUDIT_FAIL_AUTH);
on line 631 I modify it to look like: "ssh", AUDIT_FAIL_AUTH);
on a subseqent make, I now get the following error:
----------------------------------------------------------------------------
-----------------------------------------------------------------
In file included from auth.c:26:
/usr/include/sys/audit.h:290: warning: `\' followed by white space at end of
line
/usr/include/sys/audit.h:293: warning: `\' followed by white space at end of
line
In file included from /usr/include/sys/user.h:59,
from /usr/include/sys/audit.h:38,
from auth.c:26:
/usr/include/sys/proc.h:729: warning: `\' followed by white space at end of
line
/usr/include/sys/proc.h:730: warning: `\' followed by white space at end of
line
In file included from /usr/include/sys/pri.h:43,
from /usr/include/sys/proc.h:52,
from /usr/include/sys/user.h:59,
from /usr/include/sys/audit.h:38,
from auth.c:26:
/usr/include/sys/proc.h:729: warning: `\' followed by white space at end of
line
/usr/include/sys/proc.h:730: warning: `\' followed by white space at end of
line
In file included from includes.h:34,
from auth.c:25:
/usr/include/time.h:236: warning: `struct sigevent' declared inside
parameter list
/usr/include/time.h:236: warning: its scope is only this definition or
declaration, which is probably not what you want.
In file included from /usr/include/sys/user.h:59,
from /usr/include/sys/audit.h:38,
from auth.c:26:
/usr/include/sys/proc.h:730: parse error before `1UL'
/usr/include/sys/proc.h:730: stray '\' in program
In file included from /usr/include/sys/sem.h:41,
from /usr/include/sys/user.h:65,
from /usr/include/sys/audit.h:38,
from auth.c:26:
/usr/include/sys/ipc.h:58: parse error before `}'
In file included from /usr/include/sys/user.h:65,
from /usr/include/sys/audit.h:38,
from auth.c:26:
/usr/include/sys/sem.h:113: field `sem_perm' has incomplete type
In file included from auth.c:26:
/usr/include/sys/audit.h:291: parse error before `0200'
/usr/include/sys/audit.h:306: parse error before `}'
auth.c: In function `allowed_user':
auth.c:284: warning: long unsigned int format, unsigned int arg (arg 3)
auth.c: In function `generate_login_message':
auth.c:342: warning: passing arg 1 of `loginsuccess' discards qualifiers
from pointer target type
auth.c:342: warning: passing arg 2 of `loginsuccess' discards qualifiers
from pointer target type
auth.c: In function `auth_log':
auth.c:404: warning: passing arg 2 of `loginfailed' discards qualifiers from
pointer target type
auth.c: In function `expand_filename':
auth.c:482: warning: implicit declaration of function `snprintf'
auth.c: In function `getpwnamallow':
auth.c:631: warning: passing arg 1 of `loginfailed' discards qualifiers from
pointer target type
auth.c:631: warning: passing arg 2 of `loginfailed' discards qualifiers from
pointer target type
auth.c: In function `auth_debug_add':
auth.c:667: warning: implicit declaration of function `vsnprintf'
make: The error code from the last command is 1.
----------------------------------------------------------------------------
----------------------------------------------------------------------------
-- any help or idea's on this issue would be greatly appreciated. Thanks, Ryan
- Previous message: Armin M. Safarians: "Re: SSH question"
- Next in thread: Darren Tucker: "Re: AIX 5.2 w/ password expiration patch"
- Maybe reply: Darren Tucker: "Re: AIX 5.2 w/ password expiration patch"
- Reply: Darren Tucker: "Re: AIX 5.2 w/ password expiration patch"
- Maybe reply: Ryan.Kish_at_i-structure.com: "RE: AIX 5.2 w/ password expiration patch"
- Maybe reply: Ryan.Kish_at_i-structure.com: "RE: AIX 5.2 w/ password expiration patch"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|