- case 'e': /* enable cache */
-#ifdef LDAP_NOCACHE
- printf( NOCACHEERRMSG );
-#else /* LDAP_NOCACHE */
- getline( line, sizeof(line), stdin, "Cache timeout (secs)? " );
- i = atoi( line );
- getline( line, sizeof(line), stdin, "Maximum memory to use (bytes)? " );
- if ( ldap_enable_cache( ld, i, atoi( line )) == 0 ) {
- printf( "local cache is on\n" );
- } else {
- printf( "ldap_enable_cache failed\n" );
- }
-#endif /* LDAP_NOCACHE */
- break;
-
- case 'x': /* uncache entry */
-#ifdef LDAP_NOCACHE
- printf( NOCACHEERRMSG );
-#else /* LDAP_NOCACHE */
- getline( line, sizeof(line), stdin, "DN? " );
- ldap_uncache_entry( ld, line );
-#endif /* LDAP_NOCACHE */
- break;
-
- case 'X': /* uncache request */
-#ifdef LDAP_NOCACHE
- printf( NOCACHEERRMSG );
-#else /* LDAP_NOCACHE */
- getline( line, sizeof(line), stdin, "request msgid? " );
- ldap_uncache_request( ld, atoi( line ));
-#endif /* LDAP_NOCACHE */
- break;
-