_("Usage:"),
_("Find the ADS DC using CLDAP lookup.\n"));
TALLOC_FREE(tmp_ctx);
- return 0;
+ return -1;
}
status = ads_startup_nobind(c, false, tmp_ctx, &ads);
_("Display information about an Active Directory "
"server.\n"));
TALLOC_FREE(tmp_ctx);
- return 0;
+ return -1;
}
status = ads_startup_nobind(c, false, tmp_ctx, &ads);
_("Usage:"),
_("Print the workgroup name"));
TALLOC_FREE(tmp_ctx);
- return 0;
+ return -1;
}
status = ads_startup_nobind(c, false, tmp_ctx, &ads);
_("List AD users"));
net_display_usage_from_functable(func);
TALLOC_FREE(tmp_ctx);
- return 0;
+ return -1;
}
status = ads_startup(c, false, &ads);
_("List AD groups"));
net_display_usage_from_functable(func);
TALLOC_FREE(tmp_ctx);
- return 0;
+ return -1;
}
status = ads_startup(c, false, &ads);
_("Usage:"),
_("Display machine account details"));
TALLOC_FREE(tmp_ctx);
- return 0;
+ return -1;
}
status = ads_startup(c, true, &ads);
_("Usage:"),
_("Leave an AD domain"));
TALLOC_FREE(tmp_ctx);
- return 0;
+ return -1;
}
if (!*lp_realm()) {
" %s\n",
_("Usage:"),
_("Test if the existing join is ok"));
- return 0;
+ return -1;
}
/* Display success or failure */
_("Usage:"),
_("List printers in the AD"));
TALLOC_FREE(tmp_ctx);
- return 0;
+ return -1;
}
status = ads_startup(c, false, &ads);
" printername\tPrinter name or wildcard\n"
" servername\tName of the print server\n"));
TALLOC_FREE(tmp_ctx);
- return 0;
+ return -1;
}
status = ads_startup(c, false, &ads);
" Change password for user\n"
" username\tName of user to change password for\n"));
TALLOC_FREE(tmp_ctx);
- return 0;
+ return -1;
}
if (auth_principal == NULL || auth_password == NULL) {
_("Usage:"),
_("Change the machine account's trust password"));
TALLOC_FREE(tmp_ctx);
- return 0;
+ return -1;
}
if (!secrets_init()) {
_("Usage:"),
_("Delete the whole keytab"));
TALLOC_FREE(tmp_ctx);
- return 0;
+ return -1;
}
if (!c->opt_user_specified && c->opt_password == NULL) {
" principal\tKerberos principal to add to "
"keytab\n"));
TALLOC_FREE(tmp_ctx);
- return 0;
+ return -1;
}
d_printf(_("Processing principals to add...\n"));
_("Usage:"),
_("Create new default keytab"));
TALLOC_FREE(tmp_ctx);
- return 0;
+ return -1;
}
if (!c->opt_user_specified && c->opt_password == NULL) {
_("net ads keytab list [keytab]\n"
" List a local keytab\n"
" keytab\tKeytab to list\n"));
- return 0;
+ return -1;
}
if (argc >= 1) {
" %s\n",
_("Usage:"),
_("Renew TGT from existing credential cache"));
- return 0;
+ return -1;
}
ret = smb_krb5_renew_ticket(NULL, NULL, NULL, NULL);
" %s\n",
_("Usage:"),
_("Get Ticket Granting Ticket (TGT) for the user"));
- return 0;
+ return -1;
}
mem_ctx = talloc_init("net_ads_kerberos_kinit");
_("Usage:"),
_("net ads setspn list <machinename>\n"));
TALLOC_FREE(tmp_ctx);
- return 0;
+ return -1;
}
status = ads_startup(c, true, &ads);
_("Usage:"),
_("net ads setspn add <machinename> SPN\n"));
TALLOC_FREE(tmp_ctx);
- return 0;
+ return -1;
}
status = ads_startup(c, true, &ads);
_("Usage:"),
_("net ads setspn delete <machinename> SPN\n"));
TALLOC_FREE(tmp_ctx);
- return 0;
+ return -1;
}
status = ads_startup(c, true, &ads);
_("Usage:"),
_("List supported enctypes"));
TALLOC_FREE(tmp_ctx);
- return 0;
+ return -1;
}
status = ads_startup(c, false, &ads);
_("Usage:"),
_("Set supported enctypes"));
TALLOC_FREE(tmp_ctx);
- return 0;
+ return -1;
}
status = ads_startup(c, false, &ads);
_("Usage:"),
_("Delete supported enctypes"));
TALLOC_FREE(tmp_ctx);
- return 0;
+ return -1;
}
status = ads_startup(c, false, &ads);