6886058: JNDI LDAP InitialLdapContext SECURITY_CREDENTIALS byte[] can be corrupted, then LDAP referral fails
Reviewed-by: vinnie, xuelei
This commit is contained in:
parent
19061b3584
commit
45eee34489
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 1999-2005 Sun Microsystems, Inc. All Rights Reserved.
|
* Copyright 1999-2009 Sun Microsystems, Inc. All Rights Reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -198,6 +198,8 @@ public class InitialContext implements Context {
|
|||||||
*
|
*
|
||||||
* <p> This constructor will not modify <tt>environment</tt>
|
* <p> This constructor will not modify <tt>environment</tt>
|
||||||
* or save a reference to it, but may save a clone.
|
* or save a reference to it, but may save a clone.
|
||||||
|
* Caller should not modify mutable keys and values in
|
||||||
|
* <tt>environment</tt> after it has been passed to the constructor.
|
||||||
*
|
*
|
||||||
* @param environment
|
* @param environment
|
||||||
* environment used to create the initial context.
|
* environment used to create the initial context.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 1999-2004 Sun Microsystems, Inc. All Rights Reserved.
|
* Copyright 1999-2009 Sun Microsystems, Inc. All Rights Reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -86,6 +86,8 @@ public class InitialDirContext extends InitialContext implements DirContext {
|
|||||||
*
|
*
|
||||||
* <p> This constructor will not modify <tt>environment</tt>
|
* <p> This constructor will not modify <tt>environment</tt>
|
||||||
* or save a reference to it, but may save a clone.
|
* or save a reference to it, but may save a clone.
|
||||||
|
* Caller should not modify mutable keys and values in
|
||||||
|
* <tt>environment</tt> after it has been passed to the constructor.
|
||||||
*
|
*
|
||||||
* @param environment
|
* @param environment
|
||||||
* environment used to create the initial DirContext.
|
* environment used to create the initial DirContext.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 1999-2004 Sun Microsystems, Inc. All Rights Reserved.
|
* Copyright 1999-2009 Sun Microsystems, Inc. All Rights Reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -110,6 +110,8 @@ public class InitialLdapContext extends InitialDirContext implements LdapContext
|
|||||||
*
|
*
|
||||||
* <p> This constructor will not modify its parameters or
|
* <p> This constructor will not modify its parameters or
|
||||||
* save references to them, but may save a clone or copy.
|
* save references to them, but may save a clone or copy.
|
||||||
|
* Caller should not modify mutable keys and values in
|
||||||
|
* <tt>environment</tt> after it has been passed to the constructor.
|
||||||
*
|
*
|
||||||
* <p> <tt>connCtls</tt> is used as the underlying context instance's
|
* <p> <tt>connCtls</tt> is used as the underlying context instance's
|
||||||
* connection request controls. See the class description
|
* connection request controls. See the class description
|
||||||
|
Loading…
Reference in New Issue
Block a user