summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2004-07-08 21:01:30 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:52:10 -0500
commitd4ac326d46faab010eeeb24c893ab13bbbf0337e (patch)
tree8c9a257d054dbd4a8e79f6bccd6187f0b507468b /source3/utils
parentc1a0b0a9e7ce57bdb0e5341f8d272bc02a4b6e84 (diff)
downloadsamba-d4ac326d46faab010eeeb24c893ab13bbbf0337e.tar.gz
samba-d4ac326d46faab010eeeb24c893ab13bbbf0337e.tar.bz2
samba-d4ac326d46faab010eeeb24c893ab13bbbf0337e.zip
r1412: Fix password history list in tdbsam. Fix some memory leaks. Add
my (C) to a header file that was at least 50% mine :-). Jeremy. (This used to be commit 8ee6060977ec8e65082f3ad09e1e1ccf5b4672ed)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/pdbedit.c5
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)) {