search for: aix_remove_embedded_newlines

Displaying 10 results from an estimated 10 matches for "aix_remove_embedded_newlines".

2002 Oct 13
1
[PATCH] AIX password expiration
...========================================= RCS file: /cvs/openssh/auth.c,v retrieving revision 1.58 diff -u -r1.58 auth.c --- auth.c 21 Sep 2002 15:26:53 -0000 1.58 +++ auth.c 13 Oct 2002 11:06:27 -0000 @@ -59,6 +59,12 @@ Buffer auth_debug; int auth_debug_init; +#ifdef WITH_AIXAUTHENTICATE +void aix_remove_embedded_newlines(char *); +extern char *aixexpiremsg; +extern int aix_password_change_required; +#endif + /* * Check if the user is allowed to log in via ssh. If user is listed * in DenyUsers or one of user's groups is listed in DenyGroups, false @@ -202,19 +208,39 @@ } #ifdef WITH_AIXAUTHENTICATE - i...
2002 Nov 20
0
[PATCH #9] Password expiration via /bin/passwd.
...) /* Don't need any of these headers for the PAM or SIA cases */ @@ -81,8 +83,10 @@ #endif /* !USE_PAM && !HAVE_OSF_SIA */ extern ServerOptions options; +extern Buffer login_message; +extern int password_change_required; #ifdef WITH_AIXAUTHENTICATE -extern char *aixloginmsg; +void aix_remove_embedded_newlines(char *); #endif /* @@ -149,13 +153,23 @@ #endif #ifdef WITH_AIXAUTHENTICATE authsuccess = (authenticate(pw->pw_name,password,&reenter,&authmsg) == 0); + aix_remove_embedded_newlines(authmsg); - if (authsuccess) + if (authsuccess) { + char *msg; + + debug("authenticate()...
2003 Jul 05
0
[PATCH] Replace AIX loginmsg with generic Buffer loginmsg
...IXAUTHENTICATE -extern char *aixloginmsg; -#endif +extern Buffer loginmsg; /* * Tries to authenticate the user using password. Returns true if @@ -151,15 +152,28 @@ # endif # ifdef WITH_AIXAUTHENTICATE authsuccess = (authenticate(pw->pw_name,password,&reenter,&authmsg) == 0); + aix_remove_embedded_newlines(authmsg); if (authsuccess) { + char *msg; + + debug3("AIX/authenticate succeeded for user %s: %.100s", + pw->pw_name, authmsg); + /* We don't have a pty yet, so just label the line as "ssh" */ if (loginsuccess(authctxt->user, - get_can...
2003 May 12
1
Building Openssh-3.6.1p2 with Darren Tucker's AIX Password Expiry patch
...assword expiry patch. Operating system is AIX 4.3 using gcc 2.9-aix43-010414 I am using prngd as my entropy. My configuration flags are as follows: --with-prngd-socket=/dev/egd-pool --prefix=/usr/local/openssh I run into the following errors when I run make: ld: 0711-317 ERROR: Undefined symbol: .aix_remove_embedded_newlines ld: 0711-317 ERROR: Undefined symbol: expire_message ld: 0711-317 ERROR: Undefined symbol: login_message ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. collect2: ld returned 8 exit status make: 1254-004 The error code from the last command is 1. I am able to compile...
2003 Jun 25
2
openssh-3.6.1p2-passexpire20.patch prevents /etc/nologin disp lay on AIX
...char *msg; /* check for AIX account restrictions */ if (loginrestrictions(pw->pw_name, S_RLOGIN, NULL, &msg) != 0) { + int loginrestrict_errno = errno; + if (msg && *msg) { aix_remove_embedded_newlines(msg); log("Login restricted for %s: %.100s",
2004 Jun 16
0
Make AIX login message handling consistent.
...stead of tabs. I've already commited that change since I didn't want to mix code and whitespace changes. To fix a)-c), I used the following construct: result = function(...); if (msg != NULL) buffer_append(&loginmsg, msg, strlen(msg)); else msg = xstrdup("(none)"); aix_remove_embedded_newlines(msg); debug("AIX/function returned %d msg %s", result, msg); xfree(msg); The message needs to be appended to loginmsg before we trash the newlines, otherwise they'll look funny. It seemed simpler to xstrdup the "none" message for the NULL case and then print and free i...
2003 Jun 25
2
openssh-3.6.1p2-passexpire20.patch prevents /etc/nologin display on AIX
Hi there, I have just compiled up 3.6.1p2 both with and without Darren Tuckers passexpire patch. However, with the patch applied /etc/nologin isn't displayed to users (on AIX 5.1 / PSSP) The patched vesion seems to fail with "illegal user" - some parts of a debug 3 log... debug1: userauth-request for user ade45 service ssh-connection method none debug1: attempt 0 failures 0
2003 Jul 09
0
[PATCH] Add expired password handling for AIX.
...p; + lastup + ((maxage + maxexpired) * WEEK) <= now ){ + logit("User %.100s password expired too long", + user); + return 0; + } + } + + result = passwdexpired(user, &msg); + if (msg && *msg) { + buffer_append(&expiremsg, msg, strlen(msg)); + aix_remove_embedded_newlines(msg); + } + debug3("AIX/passwdexpired returned %d msg %.100s", result, msg); + + switch (result) { + case 0: /* success, password not expired */ + break; + case 1: /* expired, password change required */ + flag_password_change_required(); + break; + default: /* user can&...
2003 Jul 30
1
[PATCH] Password expiry merge (AIX parts)
...p; + lastup + ((maxage + maxexpired) * WEEK) <= now ){ + logit("User %.100s password expired too long", + user); + return 0; + } + } + + result = passwdexpired(user, &msg); + if (msg && *msg) { + buffer_append(&expiremsg, msg, strlen(msg)); + aix_remove_embedded_newlines(msg); + } + debug3("AIX/passwdexpired returned %d msg %.100s", result, msg); + + switch (result) { + case 0: /* success, password not expired */ + break; + case 1: /* expired, password change required */ + flag_password_change_required(); + break; + default: /* user can&...
2018 Aug 10
10
Call for testing: OpenSSH 7.8
Hi, OpenSSH 7.8p1 is almost ready for release, so we would appreciate testing on as many platforms and systems as possible. This is a bugfix release. Snapshot releases for portable OpenSSH are available from http://www.mindrot.org/openssh_snap/ The OpenBSD version is available in CVS HEAD: http://www.openbsd.org/anoncvs.html Portable OpenSSH is also available via git using the instructions at