зеркало из https://github.com/mozilla/pjs.git
Updates for LDAPJDK 4.11
This commit is contained in:
Родитель
2ef1c6a1ae
Коммит
ed123c687c
|
@ -34,7 +34,7 @@ public class ClientFactory implements SaslClientFactory {
|
|||
public ClientFactory() {
|
||||
_mechanismTable = new Hashtable();
|
||||
for( int i = 0; i < _mechanismNames.length; i++ ) {
|
||||
_mechanismTable.put( _mechanismNames[i],
|
||||
_mechanismTable.put( _mechanismNames[i].toLowerCase(),
|
||||
PACKAGENAME + '.' +
|
||||
_mechanismClasses[i] );
|
||||
}
|
||||
|
@ -81,7 +81,7 @@ public class ClientFactory implements SaslClientFactory {
|
|||
}
|
||||
for( int i = 0; (mechName == null) &&
|
||||
(i < mechanisms.length); i++ ) {
|
||||
mechName = (String)_mechanismTable.get( mechanisms[i] );
|
||||
mechName = (String)_mechanismTable.get( mechanisms[i].toLowerCase() );
|
||||
}
|
||||
if ( mechName != null ) {
|
||||
try {
|
||||
|
|
|
@ -114,6 +114,9 @@ public class LDAPAttribute implements java.io.Serializable {
|
|||
Object[] vals = new Object[set.size()];
|
||||
for (int i = 0; i < set.size(); i++) {
|
||||
vals[i] = ((BEROctetString)set.elementAt(i)).getValue();
|
||||
if (vals[i] == null) {
|
||||
vals[i] = new byte[0];
|
||||
}
|
||||
}
|
||||
setValues( vals );
|
||||
}
|
||||
|
|
|
@ -260,11 +260,11 @@ public class LDAPConnection
|
|||
/**
|
||||
* Properties
|
||||
*/
|
||||
private final static Float SdkVersion = new Float(4.1f);
|
||||
private final static Float SdkVersion = new Float(4.11f);
|
||||
private final static Float ProtocolVersion = new Float(3.0f);
|
||||
private final static String SecurityVersion = new String("none,simple,sasl");
|
||||
private final static Float MajorVersion = new Float(4.0f);
|
||||
private final static Float MinorVersion = new Float(0.1f);
|
||||
private final static Float MinorVersion = new Float(0.11f);
|
||||
private final static String DELIM = "#";
|
||||
private final static String PersistSearchPackageName =
|
||||
"netscape.ldap.controls.LDAPPersistSearchControl";
|
||||
|
|
|
@ -91,6 +91,7 @@ public class LDIF implements Serializable {
|
|||
BufferedReader d = new BufferedReader(new InputStreamReader(ds, "UTF8"));
|
||||
m_reader = new LineReader(d);
|
||||
m_source = ds.toString();
|
||||
m_decoder = new MimeBase64Decoder();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Загрузка…
Ссылка в новой задаче