Updates for LDAPJDK 4.1

git-svn-id: svn://10.0.0.236/trunk@68549 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
miodrag%netscape.com
2000-05-06 19:36:18 +00:00
parent c6d5a69e5c
commit 4a1c3242b1
58 changed files with 2918 additions and 460 deletions

View File

@@ -407,7 +407,7 @@ public class LDAPSearch extends LDAPTool {
cons.setServerControls(controls);
cons.setDereference( m_deref );
cons.setMaxResults( m_sizelimit );
cons.setTimeLimit( m_timelimit );
cons.setServerTimeLimit( m_timelimit );
cons.setReferrals( m_referrals );
if ( m_referrals ) {
setDefaultReferralCredentials( cons );
@@ -468,6 +468,7 @@ public class LDAPSearch extends LDAPTool {
System.err.println("\t"+urls[i].getUrl().toString());
continue;
} catch (Exception e) {
m_pw.flush();
System.err.println( e.toString() );
continue;
}
@@ -483,6 +484,7 @@ public class LDAPSearch extends LDAPTool {
}
}
} catch (Exception e) {
m_pw.flush();
System.err.println( e.toString() );
System.exit(0);
}
@@ -501,11 +503,13 @@ public class LDAPSearch extends LDAPTool {
protected static boolean isSchemaEntry( LDAPEntry entry ) {
LDAPAttribute attr = entry.getAttribute( "objectclass" );
String[] vals = attr.getStringValueArray();
for( int i = 0; i < vals.length; i++ ) {
if ( vals[i].equalsIgnoreCase( "subschema" ) ) {
return true;
}
if ( attr != null ) {
String[] vals = attr.getStringValueArray();
for( int i = 0; i < vals.length; i++ ) {
if ( vals[i].equalsIgnoreCase( "subschema" ) ) {
return true;
}
}
}
return false;
}