Lines Matching refs:op
86 write_entry( struct ldop *op, struct ldentry *entry, FILE *ofp )
93 if ( attr_requested( (*app)->lda_name, op )) {
104 test_filter( struct ldop *op, struct ldentry *entry )
112 attr_requested( char *name, struct ldop *op )
116 if ( op->ldop_srch.ldsp_attrs == NULL ) { /* special case */
120 for ( ap = op->ldop_srch.ldsp_attrs; *ap != NULL; ++ap ) {
152 parse_input( FILE *ifp, FILE *ofp, struct ldop *op )
168 op->ldop_op = LDOP_SEARCH;
182 add_strval( &op->ldop_suffixes, args );
185 op->ldop_dn = estrdup( args );
188 if ( lutil_atoi( &op->ldop_srch.ldsp_scope, args ) != 0 ||
189 ( op->ldop_srch.ldsp_scope != LDAP_SCOPE_BASE &&
190 op->ldop_srch.ldsp_scope != LDAP_SCOPE_ONELEVEL &&
191 op->ldop_srch.ldsp_scope != LDAP_SCOPE_SUBTREE ) )
198 if ( lutil_atoi( &op->ldop_srch.ldsp_aliasderef, args ) != 0 ) {
204 if ( lutil_atoi( &op->ldop_srch.ldsp_sizelimit, args ) != 0 ) {
210 if ( lutil_atoi( &op->ldop_srch.ldsp_timelimit, args ) != 0 ) {
216 op->ldop_srch.ldsp_filter = estrdup( args );
219 op->ldop_srch.ldsp_attrsonly = ( *args != '0' );
223 op->ldop_srch.ldsp_attrs = NULL;
232 add_strval( &op->ldop_srch.ldsp_attrs, args );
240 if ( op->ldop_suffixes == NULL || op->ldop_dn == NULL ||
241 op->ldop_srch.ldsp_filter == NULL ) {
364 dump_ldop( struct ldop *op )
371 if ( op->ldop_suffixes == NULL ) {
375 for ( i = 0; op->ldop_suffixes[ i ] != NULL; ++i ) {
376 debug_printf( " suffix: <%s>\n", op->ldop_suffixes[ i ] );
379 debug_printf( " dn: <%s>\n", op->ldop_dn );
380 debug_printf( " scope: <%d>\n", op->ldop_srch.ldsp_scope );
381 debug_printf( " filter: <%s>\n", op->ldop_srch.ldsp_filter );
382 debug_printf( "aliasderef: <%d>\n", op->ldop_srch.ldsp_aliasderef );
383 debug_printf( " sizelimit: <%d>\n", op->ldop_srch.ldsp_sizelimit );
384 debug_printf( " timelimit: <%d>\n", op->ldop_srch.ldsp_timelimit );
385 debug_printf( " attrsonly: <%d>\n", op->ldop_srch.ldsp_attrsonly );
386 if ( op->ldop_srch.ldsp_attrs == NULL ) {
391 for ( i = 0; op->ldop_srch.ldsp_attrs[ i ] != NULL; ++i ) {
392 debug_printf( " attrs: <%s>\n", op->ldop_srch.ldsp_attrs[ i ] );