mirror of
https://github.com/bklang/ldap2dns.git
synced 2025-10-28 14:44:15 -04:00
Don't print_usage all the time, too noisy. Include a referral for more info
git-svn-id: https://svn.alkaloid.net/gpl/ldap2dns/trunk@322 06cd67b6-e706-0410-b29e-9de616bca6e9
This commit is contained in:
@@ -1000,7 +1000,7 @@ static int do_connect()
|
|||||||
struct berval* msgid = malloc(sizeof(struct berval));
|
struct berval* msgid = malloc(sizeof(struct berval));
|
||||||
if (options.useduris < 1) {
|
if (options.useduris < 1) {
|
||||||
fprintf(stderr, "\n[!!] Must define at least one LDAP host with which to connect.\n\n");
|
fprintf(stderr, "\n[!!] Must define at least one LDAP host with which to connect.\n\n");
|
||||||
print_usage();
|
fprintf(stderr, "Use --help to see usage information\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1079,13 +1079,13 @@ int main(int argc, char** argv)
|
|||||||
|
|
||||||
if (!options.output) {
|
if (!options.output) {
|
||||||
fprintf(stderr, "[!!]\tMust select an output type (\"db\" or \"data\")\n");
|
fprintf(stderr, "[!!]\tMust select an output type (\"db\" or \"data\")\n");
|
||||||
print_usage();
|
fprintf(stderr, "Use --help to see usage information\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!strlen(options.searchbase)) {
|
if (!strlen(options.searchbase)) {
|
||||||
fprintf(stderr, "[!!]\tMust provide the base DN for the search.\n");
|
fprintf(stderr, "[!!]\tMust provide the base DN for the search.\n");
|
||||||
print_usage();
|
fprintf(stderr, "Use --help to see usage information\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user