mirror of
https://github.com/Yubico/yubico-pam.git
synced 2024-11-29 09:24:22 +01:00
drop extra options for bind dn and password
This commit is contained in:
parent
f579f256c0
commit
878c62dd56
@ -723,13 +723,7 @@ parse_cfg (int flags, int argc, const char **argv, struct cfg *cfg)
|
||||
if (strncmp (argv[i], "ldap_filter=", sizeof("ldap_filter=")-1) == 0)
|
||||
cfg->ldap_filter = argv[i] + sizeof("ldap_filter=")-1;
|
||||
if (strncmp (argv[i], "ldap_cacertfile=", sizeof("ldap_cacertfile=")-1) == 0)
|
||||
cfg->ldap_cacertfile = (char *) argv[i] + sizeof("ldap_cacertfile=")-1;
|
||||
/* compatible with https://github.com/Yubico/yubico-pam/pull/39/files */
|
||||
if (strncmp (argv[i], "binddn=", sizeof("binddn=")-1) == 0)
|
||||
cfg->ldap_bind_user = (char *) argv[i] + sizeof("binddn=")-1;
|
||||
if (strncmp (argv[i], "bindpw=", sizeof("bindpw=")-1) == 0)
|
||||
cfg->ldap_bind_password = (char *) argv[i] + sizeof("bindpw=")-1;
|
||||
/* compatible with https://github.com/Yubico/yubico-pam/pull/39/files */
|
||||
cfg->ldap_cacertfile = (char *) argv[i] + sizeof("ldap_cacertfile=")-1;
|
||||
if (strncmp (argv[i], "ldapdn=", 7) == 0)
|
||||
cfg->ldapdn = argv[i] + 7;
|
||||
if (strncmp (argv[i], "user_attr=", 10) == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user