You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by sm...@apache.org on 2016/11/02 14:59:52 UTC
directory-fortress-core git commit: minor chg
Repository: directory-fortress-core
Updated Branches:
refs/heads/master 7f45e7c57 -> f3eea1f82
minor chg
Project: http://git-wip-us.apache.org/repos/asf/directory-fortress-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/directory-fortress-core/commit/f3eea1f8
Tree: http://git-wip-us.apache.org/repos/asf/directory-fortress-core/tree/f3eea1f8
Diff: http://git-wip-us.apache.org/repos/asf/directory-fortress-core/diff/f3eea1f8
Branch: refs/heads/master
Commit: f3eea1f82b42f3c830a33786dc28c0e0750c7396
Parents: 7f45e7c
Author: Shawn McKinney <sm...@apache.org>
Authored: Fri Oct 28 02:52:57 2016 -0500
Committer: Shawn McKinney <sm...@apache.org>
Committed: Fri Oct 28 02:52:57 2016 -0500
----------------------------------------------------------------------
.../java/org/apache/directory/fortress/core/impl/UserDAO.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/directory-fortress-core/blob/f3eea1f8/src/main/java/org/apache/directory/fortress/core/impl/UserDAO.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/directory/fortress/core/impl/UserDAO.java b/src/main/java/org/apache/directory/fortress/core/impl/UserDAO.java
index 480ad25..9fe4c8f 100755
--- a/src/main/java/org/apache/directory/fortress/core/impl/UserDAO.java
+++ b/src/main/java/org/apache/directory/fortress/core/impl/UserDAO.java
@@ -251,7 +251,7 @@ final class UserDAO extends LdapDataProvider
}
else if( !Config.getInstance().getBoolean( GlobalIds.USER_CREATION_PASSWORD_FIELD, false ) )
{
- myEntry.add( SchemaConstants.USER_PASSWORD_AT, new String( new char[]{} ) );
+ myEntry.add( SchemaConstants.USER_PASSWORD_AT, new String() );
}
myEntry.add( SchemaConstants.DISPLAY_NAME_AT, entity.getCn() );
@@ -1544,7 +1544,7 @@ final class UserDAO extends LdapDataProvider
List<Modification> mods = new ArrayList<Modification>();
mods.add( new DefaultModification( ModificationOperation.REPLACE_ATTRIBUTE, SchemaConstants
- .USER_PASSWORD_AT, new String( user.getPassword() ) ) );
+ .USER_PASSWORD_AT, user.getPassword() ) );
mods.add( new DefaultModification( ModificationOperation.REPLACE_ATTRIBUTE, OPENLDAP_PW_RESET, "TRUE" ) );