diff options
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/pdbedit.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/utils/pdbedit.c b/source3/utils/pdbedit.c index 3f7aba8366..06e9df22c2 100644 --- a/source3/utils/pdbedit.c +++ b/source3/utils/pdbedit.c @@ -736,7 +736,12 @@ int main (int argc, char **argv) uint32 value; int field = account_policy_name_to_fieldnum(account_policy); if (field == 0) { + char *apn = account_policy_names_list(); fprintf(stderr, "No account policy by that name\n"); + if (apn) { + fprintf(stderr, "Account policy names are :\n%s\n", apn); + } + SAFE_FREE(apn); exit(1); } if (!account_policy_get(field, &value)) { |