diff options
author | David Sommerseth <dazo@users.sourceforge.net> | 2008-12-18 18:47:19 +0100 |
---|---|---|
committer | David Sommerseth <dazo@users.sourceforge.net> | 2008-12-18 18:47:19 +0100 |
commit | 75186d46bc44eed04a1f466a4066c11e88ee13fc (patch) | |
tree | 6392bf73a33b6ca1143a083bd0a52ea81849b624 | |
parent | 0d765836d3ed7658ca6ca582c0176750d2b6921f (diff) | |
download | eurephia-75186d46bc44eed04a1f466a4066c11e88ee13fc.tar.gz eurephia-75186d46bc44eed04a1f466a4066c11e88ee13fc.tar.xz eurephia-75186d46bc44eed04a1f466a4066c11e88ee13fc.zip |
users command: Removed XML debug dump, reduced pwd length req. via -P
-rw-r--r-- | eurephiadm/commands/users.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/eurephiadm/commands/users.c b/eurephiadm/commands/users.c index 0032259..c9ae102 100644 --- a/eurephiadm/commands/users.c +++ b/eurephiadm/commands/users.c @@ -610,7 +610,7 @@ int add_user(eurephiaCTX *ctx, eurephiaSESSION *sess, eurephiaVALUES *cfg, int a break; case 'P': - if( strlen_nullsafe(optargs[0]) < 6 ) { + if( strlen_nullsafe(optargs[0]) < 4 ) { fprintf(stderr, "%s: password is too short\n", MODULE); return 1; } @@ -712,8 +712,6 @@ int add_user(eurephiaCTX *ctx, eurephiaSESSION *sess, eurephiaVALUES *cfg, int a node2 = xmlNewChild(node, NULL, (xmlChar *) "password", (xmlChar *) passwd); xmlNewProp(node2, (xmlChar *) "pwhash", (xmlChar *) "none"); - xmlSaveFormatFileEnc("-", user_xml, "UTF-8", 1); - // Add the user rc = eDBadminAddUser(ctx, user_xml); fprintf(stdout, "%s: %s\n", MODULE, |