ASF Bugzilla – Attachment 12757 Details for
Bug 31273
JNDIRealm doesn't take care of env params
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Added derefAliases bean to allow searches with aliases
JNDIRealmAlias.java (text/plain), 1.39 KB, created by
Cyril Zekser
on 2004-09-17 08:56:45 UTC
(
hide
)
Description:
Added derefAliases bean to allow searches with aliases
Filename:
MIME Type:
Creator:
Cyril Zekser
Created:
2004-09-17 08:56:45 UTC
Size:
1.39 KB
patch
obsolete
>/* > * JNDIRealm.java > * > * Created on 16 septembre 2004, 17:29 > */ > >package com.nexans.common.controller.realm; > >/** > * > * @author zekser > */ >public class JNDIRealmAlias extends org.apache.catalina.realm.JNDIRealm { > > protected String derefAliases = "always"; > > public final static String ENV_LDAP_DEREF_ALIASES = "java.naming.ldap.derefAliases"; > public final static String DEREF_ALIAS_ALWAYS = "always"; > public final static String DEREF_ALIAS_NEVER = "never"; > public final static String DEREF_ALIAS_SEARCH = "search"; > public final static String DEREF_ALIAS_FIND = "find"; > > /** Creates a new instance of JNDIRealm */ > public JNDIRealmAlias() { > super(); > } > > protected java.util.Hashtable getDirectoryContextEnvironment() { > java.util.Hashtable retValue; > > retValue = super.getDirectoryContextEnvironment(); > // Mandatory for Novell NEXANS eGuide > retValue.put( ENV_LDAP_DEREF_ALIASES, getDerefAliases() ); > return retValue; > } > > /** > * Getter for property derefAliases. > * @return Value of property derefAliases. > */ > public java.lang.String getDerefAliases() { > return derefAliases; > } > > /** > * Setter for property derefAliases. 4 values allowed ( always, never, search, find ) > * @param derefAliases New value of property derefAliases. > */ > public void setDerefAliases(java.lang.String derefAliases) { > this.derefAliases = derefAliases; > } > >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 31273
: 12757