mirror of
git://git.gnu.org.ua/pam-modules.git
synced 2025-04-26 00:19:52 +03:00
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.
This commit is contained in:
parent
a792777294
commit
44ee01dd4d
1 changed files with 3 additions and 1 deletions
|
@ -1483,12 +1483,14 @@ store_pubkeys(char **keys, struct passwd *pw, struct gray_env *env)
|
|||
file_name, strerror(errno));
|
||||
|
||||
if (!update) {
|
||||
char *boundary = gray_env_get(env, "user-keys-boundary");
|
||||
|
||||
j = 0;
|
||||
for (i = 0; i < pkf.lnc; i++) {
|
||||
char *kp;
|
||||
char *p = pkf.lnv[i];
|
||||
if (*p == '#') {
|
||||
if (strcmp(p + 1, ":end") == 0)
|
||||
if (boundary && strcmp(p + 1, boundary) == 0)
|
||||
break;
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue