--- ./doc/man/pam.8 Sun Jan 21 00:47:07 2001 +++ ../Linux-PAM-0.77/./doc/man/pam.8 Wed Mar 19 10:07:32 2003 @@ -38,7 +38,7 @@ .BR /etc/pam.conf "." Alternatively, the configuration can be set by individual configuration files located in the -.B /etc/pam.d/ +.B /usr/freeware/etc/pam.d/ directory. .IB "The presence of this directory will cause " Linux-PAM " to ignore" .BI /etc/pam.conf "." @@ -117,9 +117,9 @@ aware privilege granting application is started, it activates its attachment to the PAM-API. This activation performs a number of tasks, the most important being the reading of the configuration file(s): -.BR /etc/pam.conf "." +.BR /usr/freeware/etc/pam.conf "." Alternatively, this may be the contents of the -.BR /etc/pam.d/ +.BR /usr/freeware/etc/pam.d/ directory. These files list the @@ -131,7 +131,7 @@ .sp The syntax of the -.B /etc/pam.conf +.B /usr/freeware/etc/pam.conf configuration file is as follows. The file is made up of a list of rules, each rule is typically placed on a single line, but may be extended with an escaped end of line: `\\'. Comments @@ -147,13 +147,13 @@ .sp The syntax of files contained in the -.B /etc/pam.d/ +.B /usr/freeware/etc/pam.d/ directory, are identical except for the absence of any .I service field. In this case, the .I service is the name of the file in the -.B /etc/pam.d/ +.B /usr/freeware/etc/pam.d/ directory. This filename must be in lower case. .sp @@ -330,9 +330,9 @@ documented for each individual module. .SH "FILES" -.BR /etc/pam.conf " - the configuration file" +.BR /usr/freeware/etc/pam.conf " - the configuration file" .br -.BR /etc/pam.d/ " - the" +.BR /usr/freeware/etc/pam.d/ " - the" .BR Linux-PAM configuration directory. Generally, if this directory is present, the .B /etc/pam.conf --- ./libpam_misc/Makefile Thu Jun 27 06:04:54 2002 +++ ../Linux-PAM-0.77/./libpam_misc/Makefile Wed Mar 19 10:07:32 2003 @@ -101,7 +101,7 @@ rm -f $(FAKEROOT)$(libdir)/$(LIBNAMEDSTATIC) clean: - rm -f a.out core *~ static/*.o dynamic/*.o + rm -f a.out core *~ static/*.o dynamic/*.o so_locations rm -f *.a *.out *.o *.so ./include/security/*~ if [ -d dynamic ]; then rmdir dynamic ; fi if [ -d static ]; then rmdir static ; fi --- ./libpamc/Makefile Sat Feb 10 08:17:53 2001 +++ ../Linux-PAM-0.77/./libpamc/Makefile Wed Mar 19 10:07:32 2003 @@ -100,7 +100,7 @@ rm -f $(FAKEROOT)$(libdir)/$(LIBNAMEDSTATIC) clean: - rm -f a.out core *~ static/*.o dynamic/*.o + rm -f a.out core *~ static/*.o dynamic/*.o so_locations rm -f *.a *.out *.o *.so ./include/security/*~ if [ -d dynamic ]; then rmdir dynamic ; fi if [ -d static ]; then rmdir static ; fi --- ./modules/pam_mkhomedir/pam_mkhomedir.c Fri Feb 8 06:20:17 2002 +++ ../Linux-PAM-0.77/./modules/pam_mkhomedir/pam_mkhomedir.c Wed Mar 19 10:07:32 2003 @@ -39,6 +39,7 @@ #include #include #include +#include /* * here, we make a definition for the externally accessible function --- ./modules/pam_tally/Makefile Wed Jun 27 08:20:43 2001 +++ ../Linux-PAM-0.77/./modules/pam_tally/Makefile Wed Mar 19 10:07:32 2003 @@ -95,7 +95,7 @@ rm -f $(FAKEROOT)$(SUPLEMENTED)/$(TITLE) clean: - rm -f $(LIBOBJD) $(LIBOBJS) $(APPOBJD) $(APPOBJS) core *~ + rm -f $(LIBOBJD) $(LIBOBJS) $(APPOBJD) $(APPOBJS) core *~ so_locations rm -f *.a *.o *.so *.bak dynamic/* static/* $(APPLICATION) rm -rf dynamic static --- ./modules/Makefile Sun Dec 9 23:15:11 2001 +++ ../Linux-PAM-0.77/./modules/Makefile Wed Mar 19 10:07:32 2003 @@ -12,7 +12,7 @@ all: @echo building the static modutil library - make -C pammodutil all + gmake -C pammodutil all @echo modules sources available are: @ls -d $(MODDIRS) 2>/dev/null ; echo :-------- @echo @@ -55,4 +55,4 @@ $(MAKE) -C $$i clean ; \ } fi ; \ done - make -C pammodutil clean + gmake -C pammodutil clean --- ./modules/pam_lastlog/pam_lastlog.c Fri Oct 12 07:56:26 2001 +++ ../Linux-PAM-0.77/./modules/pam_lastlog/pam_lastlog.c Wed Mar 19 10:07:32 2003 @@ -32,7 +32,7 @@ #include /* use POSIX front end */ #endif -#if defined(hpux) || defined(sunos) || defined(solaris) +#if defined(hpux) || defined(sunos) || defined(solaris) || defined(irix) # ifndef _PATH_LASTLOG # define _PATH_LASTLOG "/usr/adm/lastlog" # endif /* _PATH_LASTLOG */ --- ./modules/pam_securetty/pam_securetty.c Sat Jul 13 07:10:54 2002 +++ ../Linux-PAM-0.77/./modules/pam_securetty/pam_securetty.c Wed Mar 19 10:07:32 2003 @@ -189,7 +189,7 @@ /* parse the arguments */ ctrl = _pam_parse(argc, argv); - return securetty_perform_check(pamh, flags, ctrl, __FUNCTION__); + return securetty_perform_check(pamh, flags, ctrl, "pam_sm_authenticate"); } PAM_EXTERN @@ -210,7 +210,7 @@ ctrl = _pam_parse(argc, argv); /* take the easy route */ - return securetty_perform_check(pamh, flags, ctrl, __FUNCTION__); + return securetty_perform_check(pamh, flags, ctrl, "pam_sm_acct_mgmt"); } --- ./modules/Simple.Rules Sun Dec 9 23:15:11 2001 +++ ../Linux-PAM-0.77/./modules/Simple.Rules Wed Mar 19 10:07:32 2003 @@ -84,7 +84,7 @@ $(MODULE_SIMPLE_REMOVE) clean: - rm -f $(LIBOBJD) $(LIBOBJS) core *~ + rm -f $(LIBOBJD) $(LIBOBJS) core *~ so_locations $(MODULE_SIMPLE_CLEAN) rm -f *.a *.o *.so *.bak rm -rf dynamic static --- ./modules/pam_rhosts/pam_rhosts_auth.c Sun Dec 9 23:15:12 2001 +++ ../Linux-PAM-0.77/./modules/pam_rhosts/pam_rhosts_auth.c Wed Mar 19 10:07:32 2003 @@ -59,7 +59,6 @@ #include #include #include /* This is supposed(?) to contain the following */ -int innetgr(const char *, const char *, const char *,const char *); #include #include --- ./modules/pam_filter/Makefile Sun Nov 11 08:43:54 2001 +++ ../Linux-PAM-0.77/./modules/pam_filter/Makefile Wed Mar 19 10:07:33 2003 @@ -118,7 +118,7 @@ $(MAKE) -C $$i clean ; \ fi ; \ done - rm -f $(LIBSHARED) $(LIBOBJD) $(LIBOBJS) core *~ + rm -f $(LIBSHARED) $(LIBOBJD) $(LIBOBJS) core *~ so_locations rm -f include/security rm -fr dynamic static rm -f *.a *.o *.so *.bak --- ./modules/pam_warn/pam_warn.c Wed May 29 06:44:43 2002 +++ ../Linux-PAM-0.77/./modules/pam_warn/pam_warn.c Wed Mar 19 10:07:33 2003 @@ -65,7 +65,7 @@ int pam_sm_authenticate(pam_handle_t *pamh, int flags, int argc, const char **argv) { - log_items(pamh, __FUNCTION__); + log_items(pamh, "pam_sm_authenticate"); return PAM_IGNORE; } @@ -72,7 +72,7 @@ PAM_EXTERN int pam_sm_setcred(pam_handle_t *pamh, int flags, int argc, const char **argv) { - log_items(pamh, __FUNCTION__); + log_items(pamh, "pam_sm_setcred"); return PAM_IGNORE; } @@ -81,7 +81,7 @@ PAM_EXTERN int pam_sm_chauthtok(pam_handle_t *pamh,int flags,int argc,const char **argv) { - log_items(pamh, __FUNCTION__); + log_items(pamh, "pam_sm_chauthtok"); return PAM_IGNORE; } @@ -88,7 +88,7 @@ PAM_EXTERN int pam_sm_acct_mgmt (pam_handle_t *pamh, int flags, int argc, const char **argv) { - log_items(pamh, __FUNCTION__); + log_items(pamh, "pam_sm_acct_mgmt"); return PAM_IGNORE; } @@ -96,7 +96,7 @@ pam_sm_open_session (pam_handle_t *pamh, int flags, int argc, const char **argv) { - log_items(pamh, __FUNCTION__); + log_items(pamh, "pam_sm_open_session"); return PAM_IGNORE; } @@ -104,7 +104,7 @@ pam_sm_close_session (pam_handle_t *pamh, int flags, int argc, const char **argv) { - log_items(pamh, __FUNCTION__); + log_items(pamh, "pam_sm_close_session"); return PAM_IGNORE; } --- ./modules/pam_unix/unix_chkpwd.c Mon Sep 23 19:33:22 2002 +++ ../Linux-PAM-0.77/./modules/pam_unix/unix_chkpwd.c Wed Mar 19 10:07:33 2003 @@ -29,6 +29,10 @@ #include #include #include +/* Added for IRIX Freeware */ +#ifdef irix +extern int _getpwent_no_shadow; +#endif #include #include @@ -98,6 +102,10 @@ /* UNIX passwords area */ setpwent(); +/* Added for IRIX freeware */ +#ifdef irix + _getpwent_no_shadow= 1; +#endif pwd = getpwnam(name); /* Get password file entry... */ endpwent(); if (pwd != NULL) { @@ -188,6 +196,10 @@ struct passwd *pw; static char username[32]; +/* Added for IRIX freeware */ +#ifdef irix + _getpwent_no_shadow= 1; +#endif pw = getpwuid(uid); if (pw == NULL) return NULL; --- ./modules/pam_unix/pam_unix_acct.c Wed Dec 20 06:15:05 2000 +++ ../Linux-PAM-0.77/./modules/pam_unix/pam_unix_acct.c Wed Mar 19 10:07:33 2003 @@ -42,6 +42,10 @@ #include #include #include +/* Added for IRIX freeware */ +#ifdef irix +extern int _getpwent_no_shadow; +#endif #include #include #include /* for time() */ @@ -89,6 +93,10 @@ return PAM_USER_UNKNOWN; } +/* Added for IRIX freeware */ +#ifdef irix + _getpwent_no_shadow= 1; +#endif pwent = getpwnam(uname); if (!pwent) { _log_err(LOG_ALERT, pamh --- ./modules/pam_unix/Makefile Sun Feb 11 07:33:53 2001 +++ ../Linux-PAM-0.77/./modules/pam_unix/Makefile Wed Mar 19 10:07:33 2003 @@ -126,19 +126,19 @@ $(CC) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c $< -o $@ md5_good.o: md5.c - $(CC) $(CFLAGS) $(CPPFLAGS) -DHIGHFIRST -D'MD5Name(x)=Good##x' \ + $(CC) $(CFLAGS) $(CPPFLAGS) -DHIGHFIRST -DMD5_GOOD \ $(TARGET_ARCH) -c $< -o $@ md5_broken.o: md5.c - $(CC) $(CFLAGS) $(CPPFLAGS) -D'MD5Name(x)=Broken##x' \ + $(CC) $(CFLAGS) $(CPPFLAGS) \ $(TARGET_ARCH) -c $< -o $@ md5_crypt_good.o: md5_crypt.c - $(CC) $(CFLAGS) $(CPPFLAGS) -D'MD5Name(x)=Good##x' \ + $(CC) $(CFLAGS) $(CPPFLAGS) -DMD5_GOOD \ $(TARGET_ARCH) -c $< -o $@ md5_crypt_broken.o: md5_crypt.c - $(CC) $(CFLAGS) $(CPPFLAGS) -D'MD5Name(x)=Broken##x' \ + $(CC) $(CFLAGS) $(CPPFLAGS) \ $(TARGET_ARCH) -c $< -o $@ install: all @@ -159,7 +159,7 @@ clean: rm -f $(LIBOBJD) $(LIBOBJS) $(CHKPWD) *.o *.so core - rm -f *~ *.a *.out *.bak + rm -f *~ *.a *.out *.bak so_locations rm -rf dynamic static .c.o: --- ./modules/pam_unix/support.c Mon Sep 23 19:33:22 2002 +++ ../Linux-PAM-0.77/./modules/pam_unix/support.c Wed Mar 19 10:07:33 2003 @@ -11,6 +11,10 @@ #include #include #include +/* Added for IRIX freeware */ +#ifdef irix +extern int _getpwent_no_shadow; +#endif #include #include #include @@ -337,6 +341,10 @@ return 0; /* will fail but don't let on yet */ /* UNIX passwords area */ +/* Added for IRIX freeware */ +#ifdef irix + _getpwent_no_shadow= 1; +#endif /* Get password file entry... */ #if HAVE_GETPWNAM_R @@ -532,6 +540,9 @@ D(("locating user's record")); /* UNIX passwords area */ +#ifdef irix + _getpwent_no_shadow= 1; +#endif pwd = getpwnam(name); /* Get password file entry... */ if (pwd != NULL) { --- ./modules/pam_unix/pam_unix_passwd.c Tue Jul 9 06:44:18 2002 +++ ../Linux-PAM-0.77/./modules/pam_unix/pam_unix_passwd.c Wed Mar 19 10:07:33 2003 @@ -45,6 +45,10 @@ #include #include #include +#ifdef irix +extern int _getpwent_no_shadow; +#endif + #include #include #include @@ -314,6 +318,10 @@ fclose(opwfile); if (!found) { +#ifdef irix + _getpwent_no_shadow= 1; +#endif + pwd = getpwnam(forwho); if (pwd == NULL) { err = 1; @@ -366,6 +374,10 @@ chown(PW_TMPFILE, 0, 0); chmod(PW_TMPFILE, 0644); +#ifdef irix + _getpwent_no_shadow= 1; +#endif + tmpent = fgetpwent(opwfile); while (tmpent) { if (!strcmp(tmpent->pw_name, forwho)) { @@ -471,6 +483,10 @@ D(("called")); +#ifdef irix + _getpwent_no_shadow= 1; +#endif + setpwent(); pwd = getpwnam(forwho); endpwent(); @@ -563,6 +579,10 @@ int retval = PAM_SUCCESS; /* UNIX passwords area */ +#ifdef irix + _getpwent_no_shadow= 1; +#endif + setpwent(); pwd = getpwnam(user); /* Get password file entry... */ endpwent(); --- ./modules/pam_unix/md5.h Sun Jan 21 00:06:05 2001 +++ ../Linux-PAM-0.77/./modules/pam_unix/md5.h Wed Mar 19 10:07:33 2003 @@ -1,6 +1,11 @@ #ifndef MD5_H #define MD5_H +#ifdef MD5_GOOD +#define MD5Name(x) Good##x +#else +#define MD5Name(x) Broken##x +#endif typedef unsigned int uint32; --- ./libpam/Makefile Sun Dec 9 22:44:58 2001 +++ ../Linux-PAM-0.77/./libpam/Makefile Wed Mar 19 10:07:33 2003 @@ -126,7 +126,7 @@ $(LDCONFIG) ifneq ($(DYNTYPE),"sl") ( cd $(FAKEROOT)$(libdir) ; rm -f $(LIBPAM) ; \ - ln -sf $(LIBPAMNAME) $(LIBPAM) ) + ln -sf $(LIBPAMFULL) $(LIBPAM) ) endif endif ifeq ($(STATIC_LIBPAM),yes) @@ -145,7 +145,7 @@ rm -f $(FAKEROOT)$(libdir)/$(LIBPAMSTATIC) clean: - rm -f a.out core *~ static/*.o dynamic/*.o + rm -f a.out core *~ static/*.o dynamic/*.o so_locations rm -f *.a *.o *.so ./include/security/*~ if [ -d dynamic ]; then rmdir dynamic ; fi if [ -d static ]; then rmdir static ; fi --- ./libpam/pam_private.h Thu Oct 11 06:52:26 2001 +++ ../Linux-PAM-0.77/./libpam/pam_private.h Wed Mar 19 10:07:33 2003 @@ -26,9 +26,9 @@ /* the Linux-PAM configuration file */ -#define PAM_CONFIG "/etc/pam.conf" -#define PAM_CONFIG_D "/etc/pam.d" -#define PAM_CONFIG_DF "/etc/pam.d/%s" +#define PAM_CONFIG "/usr/freeware/etc/pam.conf" +#define PAM_CONFIG_D "/usr/freeware/etc/pam.d" +#define PAM_CONFIG_DF "/usr/freeware/etc/pam.d/%s" #define PAM_DEFAULT_SERVICE "other" /* lower case */ #define PAM_DEFAULT_SERVICE_FILE PAM_CONFIG_D "/" PAM_DEFAULT_SERVICE --- ./Make.Rules.in Thu Jun 27 06:04:54 2002 +++ ../Linux-PAM-0.77/./Make.Rules.in Wed Mar 19 10:39:01 2003 @@ -107,4 +107,4 @@ STRIP=@STRIP@ CC_STATIC=@CC_STATIC@ -LINKLIBS = $(NEED_LINK_LIB_C) $(LIBDL) +LINKLIBS = $(NEED_LINK_LIB_C) $(LIBDL) -lrpcsvc --- ./configure Tue Jul 9 08:17:13 2002 +++ ../Linux-PAM-0.77/./configure Wed Mar 19 10:07:33 2003 @@ -2538,10 +2538,12 @@ OS_CFLAGS="" WARNINGS="-fullwarn" PIC= #PIC code is default for IRIX - LD="cc -shared" # modules friendly approach - LD_D="cc -shared" - LD_L="ld -G -z redlocsym" - RANLIB=echo + # Change for FREEWARE + LD=${LD:-ld} + LD_D="$LD -shared " + LD_L="$LD_D" + DYNTYPE=so + RANLIB=touch STRIP=strip CC_STATIC= else