mirror of
https://github.com/bklang/ldap2dns.git
synced 2025-10-26 22:04:15 -04:00
Fix password read from environment variable. Thanks Nick Gregory for the report.
git-svn-id: https://svn.alkaloid.net/gpl/ldap2dns/trunk@380 06cd67b6-e706-0410-b29e-9de616bca6e9
This commit is contained in:
@@ -265,6 +265,7 @@ static int parse_options()
|
|||||||
fclose(ldap_conf);
|
fclose(ldap_conf);
|
||||||
}
|
}
|
||||||
strcpy(options.binddn, "");
|
strcpy(options.binddn, "");
|
||||||
|
strcpy(options.password, "");
|
||||||
len = strlen(main_argv[0]);
|
len = strlen(main_argv[0]);
|
||||||
if (strcmp(main_argv[0]+len-9, "ldap2dnsd")==0) {
|
if (strcmp(main_argv[0]+len-9, "ldap2dnsd")==0) {
|
||||||
options.is_daemon = 1;
|
options.is_daemon = 1;
|
||||||
@@ -297,7 +298,6 @@ static int parse_options()
|
|||||||
}
|
}
|
||||||
options.verbose = 0;
|
options.verbose = 0;
|
||||||
options.ldifname[0] = '\0';
|
options.ldifname[0] = '\0';
|
||||||
strcpy(options.password, "");
|
|
||||||
strcpy(options.exec_command, "");
|
strcpy(options.exec_command, "");
|
||||||
while (1) {
|
while (1) {
|
||||||
int this_option_optind = optind ? optind : 1;
|
int this_option_optind = optind ? optind : 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user