/*
*
* Portions Copyright 1998 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <stdio.h>
#include "lber.h"
#include "ldap.h"
#include "disptmpl.h"
#include "srchpref.h"
#ifdef MACOS
#include <stdlib.h>
#include <console.h>
#endif /* MACOS */
#ifdef NEEDPROTOS
#else /* NEEDPROTOS */
void dump_tmpl();
void dump_srchpref();
#endif /* NEEDPROTOS */
int
{
int err;
#ifdef MACOS
;
}
#endif /* MACOS */
!= 0 ) {
exit( 1 );
}
!= 0 ) {
exit( 1 );
}
if ( argc == 1 ) {
printf( "*** Display Templates:\n" );
printf( "\n\n" );
}
printf( "\n\n*** Search Objects:\n" );
dump_srchpref( sop );
printf( "\n\n" );
}
} else {
} else {
}
}
exit( 0 );
}
static char *syn_name[] = {
"?", "CIS", "MLS", "DN", "BOOL", "JPEG", "JPEGBTN", "FAX", "FAXBTN",
"AUDIOBTN", "TIME", "DATE", "URL", "SEARCHACT", "LINKACT", "ADDDNACT",
"VERIFYACT",
};
static char *syn_type[] = {
"?", "txt", "img", "?", "bool", "?", "?", "?", "btn",
"?", "?", "?", "?", "?", "?", "?",
"action", "?"
};
static char *item_opts[] = {
};
static unsigned long item_opt_vals[] = {
};
void
{
char **fetchattrs;
printf( "** Template \"%s\" (plural \"%s\", icon \"%s\")\n",
printf( "object class list:\n" );
}
putchar( '\n' );
}
putchar( '\n' );
printf( "template options: " );
if ( tmpl->dt_options == 0L ) {
printf( "NONE\n" );
} else {
? "modrdn" : "",
? "altview" : "" );
}
printf( "\nnew entry value default rules:\n" );
printf( " attribute %s <-- constant value \"%s\"\n",
} else {
printf( " attribute %s <-- adder's DN\n",
}
}
putchar( '\n' );
printf( "\nfetch attributes & values:\n" );
LDAP_SYN_OPT_DEFER )) == NULL ) {
printf( " <none>\n" );
} else {
for ( i = 0; fetchattrs[ i ] != NULL; ++i ) {
free( fetchattrs[ i ] );
}
free( (char *)fetchattrs );
}
printf( "\nfetch attributes only:\n" );
LDAP_SYN_OPT_DEFER )) == NULL ) {
printf( " <none>\n" );
} else {
for ( i = 0; fetchattrs[ i ] != NULL; ++i ) {
free( fetchattrs[ i ] );
}
free( (char *)fetchattrs );
}
printf( "\ntemplate items:\n" );
rowcnt = 0;
++rowcnt;
colcnt = 0;
++colcnt;
}
}
printf( ",args=" );
}
}
putchar( '\n' );
}
}
}
void
{
int i;
printf( "Object type prompt: %s\n",
printf( "Options: %s\n",
"internal" : "NONE" );
printf( "Scope: " );
switch ( so->so_defaultscope ) {
case LDAP_SCOPE_BASE:
printf( "LDAP_SCOPE_BASE" );
break;
case LDAP_SCOPE_ONELEVEL:
printf( "LDAP_SCOPE_ONELEVEL" );
break;
case LDAP_SCOPE_SUBTREE:
printf( "LDAP_SCOPE_SUBTREE" );
break;
default:
printf("*** unknown!" );
}
puts( "\n" );
printf( "Filter prefix: %s\n",
printf( "Filter tag: %s\n",
printf( "Default select attr: %s\n",
printf( "Default select text: %s\n",
printf( "Searchable attributes ---- \n" );
printf( " Match types ---- \n" );
printf( " %s (%s)\n",
}
}
}
}