Skip to content

Instantly share code, notes, and snippets.

View vDorst's full-sized avatar

René van Dorst vDorst

View GitHub Profile
root@pc-rene /e/pam.d# cat /etc/pam.d/system-auth
# Generated by authselect on Tue Nov 17 13:44:43 2020
# Do not modify this file manually.
auth required pam_env.so
auth required pam_faildelay.so delay=2000000
auth sufficient pam_fprintd.so
#auth [default=1 ignore=ignore success=ok] pam_usertype.so isregular
#auth [default=1 ignore=ignore success=ok] pam_localuser.so
auth sufficient pam_unix.so nullok try_first_pass
@vDorst
vDorst / etc pam.d system-auth
Created March 15, 2021 09:17
Fedora 33 /etc/pam.d/system-auth
auth required pam_env.so
auth required pam_faildelay.so delay=2000000
auth sufficient pam_fprintd.so
auth [default=1 ignore=ignore success=ok] pam_usertype.so isregular
auth [default=1 ignore=ignore success=ok] pam_localuser.so
auth sufficient pam_unix.so nullok try_first_pass
auth [default=1 ignore=ignore success=ok] pam_usertype.so isregular
auth sufficient pam_kanidm.so debug ignore_unknown_user
auth required pam_deny.so
include "mt7621_ubnt_edgerouter-x.dtsi"
/ {
model = "Ubiquiti EdgeRouter X10";
compatible = "ubnt,edgerouter-x10", "mediatek,mt7621-soc";
};
&mdio {
ephy29: ethernet-phy@29 {
reg = <29>;
#
# Automatically generated file; DO NOT EDIT.
# OpenWrt Configuration
#
CONFIG_MODULES=y
CONFIG_HAVE_DOT_CONFIG=y
# CONFIG_TARGET_sunxi is not set
# CONFIG_TARGET_apm821xx is not set
# CONFIG_TARGET_ath25 is not set
# CONFIG_TARGET_ar71xx is not set
#
# Automatically generated file; DO NOT EDIT.
# Linux/mips 5.2.0-rc5 Kernel Configuration
#
#
# Compiler: mipsel-openwrt-linux-gcc (OpenWrt GCC 7.3.0 r8568+2-33878b0a40) 7.3.0
#
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=70300
commit 514045f8993cdf4f46147d040cf56a1de5706ce8
TP841 MIPS_LE WR1043 MIPS_BE
Bytes CYCLES MIPS GENERIC CYCLES MIPS GENERIC
0 6 6
0 6 6
16 55 55,00 59 59,00
16 106 106 192,73% 117 117 198,31%
pkcs15-tool -D
Using reader with a card: Feitian ePass2003 00 00
PKCS#15 Card [<<MycardName>>]:
Version : 0
Serial number : 20A90D8B8002801B
Manufacturer ID: EnterSafe
Last update : 20160517082359Z
Flags : EID compliant
PIN [User PIN]
0x7efe32eef700 11:08:31.880 [pkcs15-init] sc.c:251:sc_detect_card_presence: called
0x7efe32eef700 11:08:31.880 [pkcs15-init] reader-pcsc.c:378:pcsc_detect_card_presence: called
0x7efe32eef700 11:08:31.880 [pkcs15-init] reader-pcsc.c:288:refresh_attributes: Feitian ePass2003 00 00 check
0x7efe32eef700 11:08:31.880 [pkcs15-init] reader-pcsc.c:307:refresh_attributes: returning with: 0 (Success)
0x7efe32eef700 11:08:31.880 [pkcs15-init] reader-pcsc.c:383:pcsc_detect_card_presence: returning with: 1
0x7efe32eef700 11:08:31.880 [pkcs15-init] sc.c:256:sc_detect_card_presence: returning with: 1
Using reader with a card: Feitian ePass2003 00 00
0x7efe32eef700 11:08:31.880 [pkcs15-init] sc.c:251:sc_detect_card_presence: called
0x7efe32eef700 11:08:31.880 [pkcs15-init] reader-pcsc.c:378:pcsc_detect_card_presence: called
0x7efe32eef700 11:08:31.880 [pkcs15-init] reader-pcsc.c:288:refresh_attributes: Feitian ePass2003 00 00 check
2016-05-17 11:36:29.391 AuthType: PIN
2016-05-17 11:36:29.391 [pkcs15-init] pkcs15.c:2096:sc_pkcs15_parse_df: returnin
g with: 0 (Success)
2016-05-17 11:36:29.391 [pkcs15-init] profile.c:628:sc_profile_get_file_by_path:
called
2016-05-17 11:36:29.391 [pkcs15-init] profile.c:632:sc_profile_get_file_by_path:
returning with: 0 (Success)
2016-05-17 11:36:29.391 sc_pkcs15init_set_p15card() returns
About to store PIN.
2016-05-17 11:36:29.391 [pkcs15-init] pkcs15-lib.c:983:sc_pkcs15init_store_pin:
#!/bin/sh
DEV="wlan0"
[ "$ACTION" = ifup -o "$ACTION" = ifupdate ] || exit 0
[ "$DEVICE" = "${DEV}" ] || exit 0
[ "$(iw dev ${DEV} link | grep SSID: | egrep -o "KPN")" = "KPN" ] || exit 0
USERNAME="xxxxx@kpn-fon.nl"
PASSWORD="xxxxxx"
PORTAL_FILE=/tmp/portal.html