summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@users.sourceforge.net>2008-12-18 18:47:19 +0100
committerDavid Sommerseth <dazo@users.sourceforge.net>2008-12-18 18:47:19 +0100
commit75186d46bc44eed04a1f466a4066c11e88ee13fc (patch)
tree6392bf73a33b6ca1143a083bd0a52ea81849b624
parent0d765836d3ed7658ca6ca582c0176750d2b6921f (diff)
downloadeurephia-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.c4
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,