int net_lookup_usage(struct net_context *c, int argc, const char **argv)
{
- d_printf(
+ d_printf(_(
" net lookup [host] HOSTNAME[#<type>]\n\tgives IP for a hostname\n\n"
" net lookup ldap [domain]\n\tgives IP of domain's ldap server\n\n"
" net lookup kdc [realm]\n\tgives IP of realm's kerberos KDC\n\n"
" net lookup name [name]\n\tLookup name's sid and type\n\n"
" net lookup sid [sid]\n\tGive sid's name and type\n\n"
" net lookup dsgetdcname [name] [flags] [sitename]\n\n"
-);
+));
return -1;
}
sitename = sitename_fetch(domain);
if ( (ctx = talloc_init("net_lookup_ldap")) == NULL ) {
- d_fprintf(stderr, "net_lookup_ldap: talloc_init() failed!\n");
+ d_fprintf(stderr,_("net_lookup_ldap: talloc_init() failed!\n"));
SAFE_FREE(sitename);
return -1;
}
enum lsa_SidType type;
if (argc != 1) {
- d_printf("usage: net lookup name <name>\n");
+ d_printf(_("usage: net lookup name <name>\n"));
return -1;
}
if (!lookup_name(talloc_tos(), argv[0], LOOKUP_NAME_ALL,
&dom, &name, &sid, &type)) {
- d_printf("Could not lookup name %s\n", argv[0]);
+ d_printf(_("Could not lookup name %s\n"), argv[0]);
return -1;
}
enum lsa_SidType type;
if (argc != 1) {
- d_printf("usage: net lookup sid <sid>\n");
+ d_printf(_("usage: net lookup sid <sid>\n"));
return -1;
}
if (!string_to_sid(&sid, argv[0])) {
- d_printf("Could not convert %s to SID\n", argv[0]);
+ d_printf(_("Could not convert %s to SID\n"), argv[0]);
return -1;
}
if (!lookup_sid(talloc_tos(), &sid,
&dom, &name, &type)) {
- d_printf("Could not lookup name %s\n", argv[0]);
+ d_printf(_("Could not lookup name %s\n"), argv[0]);
return -1;
}
char *s = NULL;
if (argc < 1 || argc > 3) {
- d_printf("usage: net lookup dsgetdcname "
- "<name> <flags> <sitename>\n");
+ d_printf(_("usage: net lookup dsgetdcname "
+ "<name> <flags> <sitename>\n"));
return -1;
}
status = dsgetdcname(mem_ctx, NULL, domain_name, NULL, site_name,
flags, &info);
if (!NT_STATUS_IS_OK(status)) {
- d_printf("failed with: %s\n", nt_errstr(status));
+ d_printf(_("failed with: %s\n"), nt_errstr(status));
TALLOC_FREE(mem_ctx);
return -1;
}
};
if (argc < 1) {
- d_printf("\nUsage: \n");
+ d_printf(_("\nUsage: \n"));
return net_lookup_usage(c, argc, argv);
}
for (i=0; table[i].funcname; i++) {