aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2014-09-16 11:40:26 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2014-09-16 11:40:26 +0300
commit44ee01dd4d2f2101f4c2315e00881a8ef35eda42 (patch)
tree85714003008fff6c08e53491f375f2d8909a3038
parenta7927772940897e89f806f8bd4bce7967c03076a (diff)
downloadpam-modules-44ee01dd4d2f2101f4c2315e00881a8ef35eda42.tar.gz
pam-modules-44ee01dd4d2f2101f4c2315e00881a8ef35eda42.tar.bz2
pam_ldaphome: Make user-specific key boundary configurable.
* pam_ldaphome/pam_ldaphome.c (store_pubkeys): Use the value of the user-keys-boundary option as the boundary of user-specific key section.
-rw-r--r--pam_ldaphome/pam_ldaphome.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/pam_ldaphome/pam_ldaphome.c b/pam_ldaphome/pam_ldaphome.c
index 8429b97..6149a7c 100644
--- a/pam_ldaphome/pam_ldaphome.c
+++ b/pam_ldaphome/pam_ldaphome.c
@@ -1485,2 +1485,4 @@ store_pubkeys(char **keys, struct passwd *pw, struct gray_env *env)
if (!update) {
+ char *boundary = gray_env_get(env, "user-keys-boundary");
+
j = 0;
@@ -1490,3 +1492,3 @@ store_pubkeys(char **keys, struct passwd *pw, struct gray_env *env)
if (*p == '#') {
- if (strcmp(p + 1, ":end") == 0)
+ if (boundary && strcmp(p + 1, boundary) == 0)
break;

Return to:

Send suggestions and report system problems to the System administrator.