Skip to contentSkip to conversation

pamtester: new package

PATCH Superseded Carlos Santos 2 participants 2 messages Jun 25, 2018

v3 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 pamtester: new package

Utility for testing pluggable authentication modules (PAM) facility.

While specifically designed to help PAM module authors to test their modules, that might also be handy for system administrators interested in building a centralised authentication system using common standards such as NIS, SASL and LDAP.

Pull a patch from Debian, rename it and add an SOB to match Buildroot conventions.

Put it along with the PAM modules libpam-{radius-auth,tacplus} in the configuration menu, since alphabetical order is already slightly broken and grouping the packages makes sense.

Change-Id I2bcf2f1d6a0e5cf3afd8af59579d8340a88413b1
---
 DEVELOPERS                                       |  1 +
 package/Config.in                                |  1 +
 package/pamtester/0001-fix-spelling-errors.patch | 19 +++++++++++++++++++
 package/pamtester/Config.in                      | 15 +++++++++++++++
 package/pamtester/pamtester.hash                 |  2 ++
 package/pamtester/pamtester.mk                   | 13 +++++++++++++
 6 files changed, 51 insertions(+)
 create mode 100644 package/pamtester/0001-fix-spelling-errors.patch
 create mode 100644 package/pamtester/Config.in
 create mode 100644 package/pamtester/pamtester.hash
 create mode 100644 package/pamtester/pamtester.mk
DEVELOPERS +1 -0
index 626fba3159..c0472d2547 100644
@@ -416,6 +416,7 @@ F:	package/initscripts/
 F:	package/libpam-radius-auth/
 F:	package/libpam-tacplus/
 F:	package/modem-manager/
+F:	package/pamtester/
 F:	package/perl-file-util/
 F:	package/skeleton-custom/
 F:	package/skeleton-init-common/
package/Config.in +1 -0
index c8e35fd99e..77e869ac42 100644
@@ -2024,6 +2024,7 @@ menu "System tools"
 	source "package/numactl/Config.in"
 	source "package/nut/Config.in"
 	source "package/openvmtools/Config.in"
+	source "package/pamtester/Config.in"
 	source "package/polkit/Config.in"
 	source "package/powerpc-utils/Config.in"
 	source "package/procps-ng/Config.in"
package/pamtester/0001-fix-spelling-errors.patch new file +19 -0
new file mode 100644
index 0000000000..5f79754e34
@@ -0,0 +1,19 @@
+Description: Fix spelling error in pamtester
+Origin: vendor
+Bug: https://sourceforge.net/tracker/?func=detail&aid=3599109&group_id=135111&atid=731890
+Forwarded: yes
+Author: Salvatore Bonaccorso <[email protected]>
+Last-Update: 2013-01-01
+Signed-off-by: Salvatore Bonaccorso <[email protected]>
+
+--- a/src/app.c
++++ b/src/app.c
+@@ -373,7 +373,7 @@
+ 				err_msg = xstrdup(pam_strerror(pamh, err));
+ 				goto out;
+ 			} else {
+-				printf("%s: sucessfully opened a session\n", params->app_name);
++				printf("%s: successfully opened a session\n", params->app_name);
+ 			}
+ 		} else if (!strcasecmp(op->name, "close_session")) {
+ 			int flag = 0;
package/pamtester/Config.in new file +15 -0
new file mode 100644
index 0000000000..9415c0e31f
@@ -0,0 +1,15 @@
+config BR2_PACKAGE_PAMTESTER
+	bool "pamtester"
+	depends on BR2_PACKAGE_LINUX_PAM
+	help
+	  A tiny utility for testing pluggable authentication modules
+	  (PAM) facility. While specifically designed to help PAM module
+	  authors to test their modules, that might also be handy for
+	  system administrators interested in building a centralised
+	  authentication system using common standards such as NIS, SASL
+	  and LDAP.
+
+	  http://pamtester.sourceforge.net/
+
+comment "pamptester depends on linux-pam"
+	depends on !BR2_PACKAGE_LINUX_PAM
package/pamtester/pamtester.hash new file +2 -0
new file mode 100644
index 0000000000..6ce187f19f
@@ -0,0 +1,2 @@
+# from https://sourceforge.net/projects/pamtester/files/pamtester/0.1.2/
+sha1 33bcc610d7f208b50a0a23c144bdbd1e2cae4ac6  pamtester-0.1.2.tar.gz
package/pamtester/pamtester.mk new file +13 -0
new file mode 100644
index 0000000000..b09e4d1cc0
@@ -0,0 +1,13 @@
+################################################################################
+#
+# pamtester
+#
+################################################################################
+
+PAMTESTER_VERSION = 0.1.2
+PAMTESTER_SITE = https://download.sourceforge.net/project/pamtester/pamtester/$(PAMTESTER_VERSION)
+PAMTESTER_DEPENDENCIES = linux-pam
+PAMTESTER_LICENSE = BSD-3-Clause
+PAMTESTER_LICENSE_FILES = LICENSE
+
+$(eval $(autotools-package))
Signature · 1 line
2.14.4
#1 lore raw

PATCH v3 1/1 pamtester: new package

Hello,

Quoted 7 lines · Carlos Santos

Utility for testing pluggable authentication modules (PAM) facility.

While specifically designed to help PAM module authors to test their modules, that might also be handy for system administrators interested in building a centralised authentication system using common standards such as NIS, SASL and LDAP.

Quoted 6 lines

Pull a patch from Debian, rename it and add an SOB to match Buildroot conventions.

Put it along with the PAM modules libpam-{radius-auth,tacplus} in the configuration menu, since alphabetical order is already slightly broken and grouping the packages makes sense.

Not really true anymore ?

Quoted 1 line

Change-Id: I2bcf2f1d6a0e5cf3afd8af59579d8340a88413b1

Not needed.

Quoted 15 lines
package/pamtester/0001-fix-spelling-errors.patch new file +9 -0
new file mode 100644
index 0000000000..5f79754e34
@@ -0,0 +1,19 @@
+Description: Fix spelling error in pamtester
+Origin: vendor
+Bug: https://sourceforge.net/tracker/?func=detail&aid=3599109&group_id=135111&atid=731890
+Forwarded: yes
+Author: Salvatore Bonaccorso <[email protected]>
+Last-Update: 2013-01-01
+Signed-off-by: Salvatore Bonaccorso <[email protected]>
+
+--- a/src/app.c

package/pamtester/0001-fix-spelling-errors.patch line 19

Quoted 10 lines
package/pamtester/0001-fix-spelling-errors.patch new file +10 -0
++++ b/src/app.c
+@@ -373,7 +373,7 @@
+ 				err_msg = xstrdup(pam_strerror(pamh, err));
+ 				goto out;
+ 			} else {
+-				printf("%s: sucessfully opened a session\n", params->app_name);
++				printf("%s: successfully opened a session\n", params->app_name);
+ 			}
+ 		} else if (!strcasecmp(op->name, "close_session")) {
+ 			int flag = 0;

Once again, why do we need this apparently cosmetic patch ?

Quoted 10 lines
package/pamtester/Config.in new file +4 -0
new file mode 100644
index 0000000000..9415c0e31f
@@ -0,0 +1,15 @@
+config BR2_PACKAGE_PAMTESTER
+	bool "pamtester"
+	depends on BR2_PACKAGE_LINUX_PAM
+	help

package/pamtester/Config.in line 14

Quoted 10 lines
package/pamtester/Config.in new file +10 -0
+	  A tiny utility for testing pluggable authentication modules
+	  (PAM) facility. While specifically designed to help PAM module
+	  authors to test their modules, that might also be handy for
+	  system administrators interested in building a centralised
+	  authentication system using common standards such as NIS, SASL
+	  and LDAP.
+
+	  http://pamtester.sourceforge.net/
+
+comment "pamptester depends on linux-pam"

Typo: pamtester

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com