From 0bd16bc948ad073b128c03e4713105212e072b2b Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Wed, 20 Sep 2006 22:09:30 +0000
Subject: [PATCH] Add a new password policy for root users to isolate them from changes to the default policy and to make it more obvious that root users are subject to password policy enforcement. The new password policy is the same as the default policy with the following exceptions:
---
opends/src/server/org/opends/server/tools/ConfigureDS.java | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/opends/src/server/org/opends/server/tools/ConfigureDS.java b/opends/src/server/org/opends/server/tools/ConfigureDS.java
index 793789a..6d781df 100644
--- a/opends/src/server/org/opends/server/tools/ConfigureDS.java
+++ b/opends/src/server/org/opends/server/tools/ConfigureDS.java
@@ -39,7 +39,7 @@
import org.opends.server.core.DirectoryException;
import org.opends.server.core.DirectoryServer;
import org.opends.server.core.LockFileManager;
-import org.opends.server.extensions.SaltedSHA1PasswordStorageScheme;
+import org.opends.server.extensions.SaltedSHA512PasswordStorageScheme;
import org.opends.server.protocols.ldap.LDAPResultCode;
import org.opends.server.types.DN;
import org.opends.server.util.args.ArgumentException;
@@ -441,7 +441,7 @@
byte[] rootPWBytes = getBytes(rootPW);
String encodedPassword =
- SaltedSHA1PasswordStorageScheme.encodeOffline(rootPWBytes);
+ SaltedSHA512PasswordStorageScheme.encodeOffline(rootPWBytes);
StringConfigAttribute bindPWAttr =
new StringConfigAttribute(ATTR_USER_PASSWORD, "", false, false,
false, encodedPassword);
--
Gitblit v1.10.0