Group :: Sistema/Base
RPM: pam_pkcs11
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Patch: pam_pkcs11-0.6.9-oid-mapper-profiles.patch
Download
Download
configure.ac | 2 ++
etc/Makefile.am | 3 ++-
etc/mapping.profiles/snils.in | 17 +++++++++++++++++
etc/mapping.profiles/snils_scrambled.in | 17 +++++++++++++++++
4 files changed, 38 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 69ae387..3d33db1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -267,6 +267,8 @@ etc/mapping.profiles/cn
etc/mapping.profiles/mail
etc/mapping.profiles/subject
etc/mapping.profiles/cert
+etc/mapping.profiles/snils
+etc/mapping.profiles/snils_scrambled
etc/modules.avail/aladdin
src/Makefile
src/scconf/Makefile
diff --git a/etc/Makefile.am b/etc/Makefile.am
index fd3f7bc..0a3b13f 100644
--- a/etc/Makefile.am
+++ b/etc/Makefile.am
@@ -29,4 +29,5 @@ profiles_DATA = profiles/opensc
mprofilesdir = $(confdir)/mapping.profiles
mprofiles_DATA = mapping.profiles/cn mapping.profiles/mail \
- mapping.profiles/subject mapping.profiles/cert
+ mapping.profiles/subject mapping.profiles/cert \
+ mapping.profiles/snils mapping.profiles/snils_scrambled
diff --git a/etc/mapping.profiles/snils.in b/etc/mapping.profiles/snils.in
new file mode 100644
index 0000000..3003d28
--- /dev/null
+++ b/etc/mapping.profiles/snils.in
@@ -0,0 +1,17 @@
+# Map the SNILS (OID 1.2.643.100.3) to auto-<SNILS> user name
+#
+pam_pkcs11 {
+ use_mappers = generic;
+ mapper generic {
+ module = internal;
+ ignorecase = false;
+ cert_item = 1.2.643.100.3;
+ use_getpwent = false;
+ prefix = auto-;
+ postfix = "";
+ scramble = false;
+ maxlen = 16;
+ # mapfile = file://@confdir@/generic_mapping;
+ mapfile = "none";
+ }
+}
diff --git a/etc/mapping.profiles/snils_scrambled.in b/etc/mapping.profiles/snils_scrambled.in
new file mode 100644
index 0000000..aab1ae1
--- /dev/null
+++ b/etc/mapping.profiles/snils_scrambled.in
@@ -0,0 +1,17 @@
+# Map the SNILS (OID 1.2.643.100.3) to auto-<SNILS hash> user name
+#
+pam_pkcs11 {
+ use_mappers = generic;
+ mapper generic {
+ module = internal;
+ ignorecase = false;
+ cert_item = 1.2.643.100.3;
+ use_getpwent = false;
+ prefix = auto-;
+ postfix = "";
+ scramble = true;
+ maxlen = 12;
+ # mapfile = file://@confdir@/generic_mapping;
+ mapfile = "none";
+ }
+}