search for: _aix

Displaying 20 results from an estimated 41 matches for "_aix".

2002 Jun 28
3
AIX usrinfo() cleanup.
...: /var/cvs/openssh/session.c,v retrieving revision 1.208 diff -u -r1.208 session.c --- session.c 26 Jun 2002 13:51:06 -0000 1.208 +++ session.c 28 Jun 2002 17:07:11 -0000 @@ -1210,7 +1210,7 @@ # endif /* defined(WITH_IRIX_PROJECT) || defined(WITH_IRIX_JOBS) || defined(WITH_IRIX_ARRAY) */ # ifdef _AIX /* XXX: Disable tty setting. Enabled if required later */ - aix_usrinfo(pw, &tty, -1); + aix_usrinfo(pw, NULL); # endif /* _AIX */ /* Permanently switch to the desired uid. */ permanently_set_uid(pw); #else /* HAVE_OSF_SIA */ Index: openbsd-compat/port-aix.c ======================...
2002 Jun 25
1
PrivSep and AIX 4.3.2
With 3.3p1 built on AIX 4.3.2: $ ssh [blah] Couldn't set usrinfo: Not owner debug1: Calling cleanup 0x20019080(0x200219a0) debug3: mm_request_send entering: type 27 debug1: Calling cleanup 0x20018dd4(0x0) Connection to songohan closed by remote host. Connection to songohan closed. Output from sshd -d -d -d: ... debug3: tty_parse_modes: 92 0 debug3: tty_parse_modes: 93 0
2000 Jan 19
3
AIX openssh patches
...g here. *** acconfig.h.DIST Tue Jan 11 09:38:15 2000 --- acconfig.h Tue Jan 11 12:11:02 2000 *************** *** 12,17 **** --- 12,23 ---- /* Define if you want to disable PAM support */ #undef DISABLE_PAM + /* Define if you want to disable AIX4's authenticate function */ + #undef WITH_AIXAUTHENTICATE + + /* Define if you want to use system random */ + #undef USE_SYSRANDOM + /* Define if you want to disable lastlog support */ #undef DISABLE_LASTLOG *************** *** 29,34 **** --- 35,69 ---- /* Define if using the Dante SOCKS library. */ #undef HAVE_DANTE + + /* De...
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 +2...
2001 Mar 15
1
News from AIX
...=============================================== RCS file: /cvs/openssh_cvs/session.c,v retrieving revision 1.79 diff -u -r1.79 session.c --- session.c 2001/02/18 19:13:34 1.79 +++ session.c 2001/03/15 15:13:44 @@ -89,6 +89,10 @@ # define S_UNOFILE_HARD S_UNOFILE "_hard" #endif +#ifdef _AIX +# include <uinfo.h> +#endif + /* types */ #define TTYSZ 64 @@ -1119,6 +1123,25 @@ debug("error setting satid: %.100s", strerror(errno)); } #endif /* WITH_IRIX_AUDIT */ + +#ifdef _AIX + /* AIX has a "usrinfo" area where logname and + * other stuff is st...
2003 Feb 01
1
Build errors on AIX 4.2.1: nanosleep
...============== RCS file: /usr/local/src/security/openssh/cvs/openssh_cvs/openbsd-compat/port-aix.h,v retrieving revision 1.6 diff -u -r1.6 port-aix.h --- openbsd-compat/port-aix.h 7 Jul 2002 02:17:36 -0000 1.6 +++ openbsd-compat/port-aix.h 1 Feb 2003 01:49:56 -0000 @@ -25,5 +25,16 @@ */ #ifdef _AIX + +/* AIX 4.2.x doesn't have nanosleep but does have nsleep which is equivalent */ +#if !defined(HAVE_NANOSLEEP) && defined(HAVE_NSLEEP) +# define nanosleep nsleep +#endif + +/* For struct timespec on AIX 4.2.x */ +#ifdef HAVE_SYS_TIMERS_H +# include <sys/timers.h> +#endif + void...
2003 Feb 12
4
Pb w/ >2GB files on AIX (4.3.3/5.1)
...pb. is to not use this routine that create files w/ mkstemp() by modifying the "syscall.c" source file at line 154 as following : #if defined(HAVE_SECURE_MKSTEMP) && defined(HAVE_FCHMOD) become #if defined(HAVE_SECURE_MKSTEMP) && defined(HAVE_FCHMOD) && ! defined(_AIX) Hope this will help poor AIX users ;-) Dean, a nostalgic Digital Unix veteran. Digital/Tru64 Unix don't care big files !
2003 May 14
1
Bug with Large Files on AIX
...d(HAVE_FCHMOD) { int fd = mkstemp(template); if (fd == -1) return -1; --- 151,157 ---- if (dry_run) return -1; if (read_only) {errno = EROFS; return -1;} ! #if defined(HAVE_SECURE_MKSTEMP) && defined(HAVE_FCHMOD) && !defined(_AIX) { int fd = mkstemp(template); if (fd == -1) return -1; *************** *** 164,170 **** --- 164,174 ---- } #else if (!mktemp(template)) return -1; + #if defined(O_LARGEFILE) + return do_open(template, O_RDWR|O_EXCL|O_CREAT|O_LARGEFILE...
2002 Oct 02
1
Player under FreeBSD
...nother one: player_example.c: In function `open_audio': player_example.c:138: `AFMT_S16_NE' undeclared (first use in this function) It worked fine once I switched it from _NE to _LE, this code will help portability: #if defined(__FreeBSD__) # define AFMT_S16_NE AFMT_S16_LE #elif defined(_AIX) || defined(AIX) # define AFMT_S16_NE AFMT_S16_BE #endif I'm not sure what other OS's may also require this be defined.. --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'theor...
2003 Apr 27
3
[PATCH re-send]: Clean up logging of failed logins
sorry, Darren. Long over due comments. [..] >+/* Record a failed login attempt. */ >+void >+record_failed_login(const char *user, const char *host, const char *ttyname) >+{ >+#ifdef WITH_AIXAUTHENTICATE >+ loginfailed(user, host, ttyname); >+#endif >+#ifdef _UNICOS >+ cray_login_failure((char *)user, IA_UDBERR); >+#endif /* _UNICOS */ >+} I like the patch idea, but I'd like to skip the whole 'chained function calls'. Plus it avoids closely pa...
2002 Mar 21
0
[Bug 178] New: Content of /etc/nologin isn't shown to users, fix triggers probably AIX bug
...auth.c =================================================================== RCS file: /usr/local/.cvs/auth/openssh/auth.c,v retrieving revision 1.1.1.5 diff -c -r1.1.1.5 auth.c *** auth.c 2002/03/08 07:55:38 1.1.1.5 --- auth.c 2002/03/15 12:54:01 *************** *** 177,183 **** } #ifdef WITH_AIXAUTHENTICATE ! if (loginrestrictions(pw->pw_name, S_RLOGIN, NULL, &loginmsg) != 0) { if (loginmsg && *loginmsg) { /* Remove embedded newlines (if any) */ char *p; --- 177,190 ---- } #ifdef WITH_AIXAUTHENTICATE ! /* ! * To let the user read a possible message...
2003 Jan 25
1
Build failures: nanosleep on Solaris and AIX 4.2.x
...================== RCS file: /usr/local/src/security/openssh/cvs/openssh_cvs/openbsd-compat/port-aix.h,v retrieving revision 1.6 diff -u -r1.6 port-aix.h --- openbsd-compat/port-aix.h 7 Jul 2002 02:17:36 -0000 1.6 +++ openbsd-compat/port-aix.h 25 Jan 2003 06:45:24 -0000 @@ -26,4 +26,12 @@ #ifdef _AIX void aix_usrinfo(struct passwd *pw); + +/* + * AIX 4.2.x doesn't have nanosleep but does have nsleep which is equivalent + */ +#if !defined(HAVE_NANOSLEEP) && defined(HAVE_NSLEEP) +#define nanosleep nsleep +#endif + #endif /* _AIX */
2003 Jul 03
0
AIX cleanups: includes and arguments
.../local/src/security/openssh/cvs/openssh_cvs/acconfig.h,v retrieving revision 1.157 diff -u -r1.157 acconfig.h --- acconfig.h 11 Jun 2003 12:51:32 -0000 1.157 +++ acconfig.h 1 Jul 2003 12:22:40 -0000 @@ -110,6 +110,9 @@ /* Define if you want to enable AIX4's authenticate function */ #undef WITH_AIXAUTHENTICATE +/* Define if your AIX loginfailed() function takes 4 arguments */ +#undef AIX_LOGINFAILED_4ARG + /* Define if you have/want arrays (cluster-wide session managment, not C arrays) */ #undef WITH_IRIX_ARRAY Index: auth-passwd.c =======================================================...
2002 Jan 07
2
rsync-2.5.1 / popt patches
...HA using Compaq C. Except for the alloca issue, these should work on any ANSI compliant compiler. Operating System: OpenVMS ALPHA V7.3 Compiler: Compaq C T6.5 Compiler switches: /WARN=ENABLE=(LEVEL4, QUESTCODE) SYSTEM.H is doing tests on undefined macros, and if the target is not _GNUC__ or _AIX is assuming that a specific prototype exists. This patch prototypes the alloca() function to be more consistent, but since any platform that supports the alloca() function should be able to provide a prototype, a specific prototype probably should not ever be needed. More work is probably need...
2005 Aug 26
0
Patch for UnixWare 7
...spw->sp_pwdp; +#endif /* HAVE_LIBIAF */ # endif # if defined(HAVE_GETPWANAM) && !defined(DISABLE_SHADOW) struct passwd_adjunct *spw; --- openssh/session.c.old 2005-07-28 17:41:12.124914028 -0700 +++ openssh/session.c 2005-08-24 16:51:30.507680006 -0700 @@ -1334,6 +1334,11 @@ # ifdef _AIX aix_usrinfo(pw); # endif /* _AIX */ +# ifdef HAVE_LIBIAF + if (set_id(pw->pw_name) != 0) { + exit(1); + } +# endif /* Permanently switch to the desired uid. */ permanently_set_uid(pw); #endif
2002 Nov 20
0
[PATCH #9] Password expiration via /bin/passwd.
...!defined(USE_PAM) && !defined(HAVE_OSF_SIA) /* 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 (authsu...
2008 Jul 24
2
[Bug 1491] New: no field sin6_scope_id on AIX 4.3.3
....3, there is no sin6_scope_id field in struct sockaddr_in6. Here is my hideous workaround. --- openssh/addrmatch.c +++ openssh/addrmatch.c @@ -97,7 +97,11 @@ return -1; xa->af = AF_INET6; memcpy(&xa->v6, &in6->sin6_addr, sizeof(xa->v6)); +#ifdef _AIX + xa->scope_id = 0; +#else xa->scope_id = in6->sin6_scope_id; +#endif break; default: return -1; And, yes, I am painfully aware that AIX 4.3.3 is hideously out of date :( (see also bug 401) -- Configure bugmail: https://bugzilla.mindrot.org/userpr...
2000 May 24
0
'command' option in authorized_keys
...child_set_env(&env, &envsize, "TERM", term); if (display) child_set_env(&env, &envsize, "DISPLAY", display); + if (original_command) /* LEE */ + child_set_env(&env, &envsize, "SSH_ORIGINAL_COMMAND", original_command); /* LEE */ #ifdef _AIX { -- Lee Eakin - leakin at ti.com - Naming Services, Texas Instruments -o) [ permanent e-mail: Lee at Eakin.Org ] /\\ _\_v echo "forgot::0:0::/:/bin/sh" >> /etc/passwd; ech...
2002 Apr 22
0
[Bug 101] session.c modifications for correct UNICOS behavior
...} +#ifdef _CRAY + signal(WJSIGNAL, cray_job_termination_handler); +#endif /* _CRAY */ #ifdef HAVE_CYGWIN if (is_winnt) cygwin_set_impersonation_token(INVALID_HANDLE_VALUE); @@ -668,6 +686,7 @@ printf("%s\n", aixloginmsg); #endif /* WITH_AIXAUTHENTICATE */ +#ifndef _CRAY if (options.print_lastlog && s->last_login_time != 0) { time_string = ctime(&s->last_login_time); if (strchr(time_string, '\n')) @@ -678,6 +697,7 @@ printf("Last login: %s...
2002 Nov 26
0
[Bug 446] New: $LOGIN not set by openssh under AIX
...12:28:41 2002 *************** *** 969,974 **** --- 969,977 ---- /* Set basic environment. */ child_set_env(&env, &envsize, "USER", pw->pw_name); child_set_env(&env, &envsize, "LOGNAME", pw->pw_name); + #ifdef _AIX + child_set_env(&env, &envsize, "LOGIN", pw->pw_name); + #endif child_set_env(&env, &envsize, "HOME", pw->pw_dir); #ifdef HAVE_LOGIN_CAP if (setusercontext(lc, pw, pw->pw_uid, LOGIN_SETPATH) < 0) ----...