Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37749579
en ru br
ALT Linux repositórios
S:0.6.12.1-alt1

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


 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";
+  }
+}
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009