Lines Matching defs:toks
158 char **toks;
163 if ( ldap_next_line_tokens( &buf, &buflen, &toks ) != 2 ||
164 strcasecmp( toks[ 0 ], "version" ) != 0 ) {
165 ldap_free_strarray( toks );
168 version = atoi( toks[ 1 ] );
169 ldap_free_strarray( toks );
470 char **toks, *itemopts;
479 if (( tokcnt = ldap_next_line_tokens( bufp, blenp, &toks )) != 1 ) {
480 ldap_free_strarray( toks );
486 ldap_free_strarray( toks );
489 tmpl->dt_name = toks[ 0 ];
490 NSLDAPI_FREE( (char *)toks );
495 if (( tokcnt = ldap_next_line_tokens( bufp, blenp, &toks )) != 1 ) {
496 ldap_free_strarray( toks );
500 tmpl->dt_pluralname = toks[ 0 ];
501 NSLDAPI_FREE( (char *)toks );
506 if (( tokcnt = ldap_next_line_tokens( bufp, blenp, &toks )) != 1 ) {
507 ldap_free_strarray( toks );
511 tmpl->dt_iconname = toks[ 0 ];
512 NSLDAPI_FREE( (char *)toks );
517 if (( tokcnt = ldap_next_line_tokens( bufp, blenp, &toks )) < 1 ) {
518 ldap_free_strarray( toks );
522 for ( i = 0; toks[ i ] != NULL; ++i ) {
524 if ( strcasecmp( toks[ i ], tmploptions[ j ] ) == 0 ) {
529 ldap_free_strarray( toks );
534 while (( tokcnt = ldap_next_line_tokens( bufp, blenp, &toks )) > 0 ) {
537 ldap_free_strarray( toks );
541 ocp->oc_objclasses = toks;
557 if (( tokcnt = ldap_next_line_tokens( bufp, blenp, &toks )) != 1 ) {
558 ldap_free_strarray( toks );
562 if ( toks[ 0 ][ 0 ] != '\0' ) {
563 tmpl->dt_authattrname = toks[ 0 ];
565 NSLDAPI_FREE( toks[ 0 ] );
567 NSLDAPI_FREE( (char *)toks );
572 if (( tokcnt = ldap_next_line_tokens( bufp, blenp, &toks )) != 1 ) {
573 ldap_free_strarray( toks );
577 tmpl->dt_defrdnattrname = toks[ 0 ];
578 NSLDAPI_FREE( (char *)toks );
583 if (( tokcnt = ldap_next_line_tokens( bufp, blenp, &toks )) != 1 ) {
584 ldap_free_strarray( toks );
588 if ( toks[ 0 ][ 0 ] != '\0' ) {
589 tmpl->dt_defaddlocation = toks[ 0 ];
591 NSLDAPI_FREE( toks[ 0 ] );
593 NSLDAPI_FREE( (char *)toks );
598 while (( tokcnt = ldap_next_line_tokens( bufp, blenp, &toks )) > 0 ) {
599 if ( strcasecmp( ADDEF_CONSTANT, toks[ 0 ] ) == 0 ) {
601 } else if ( strcasecmp( ADDEF_ADDERSDN, toks[ 0 ] ) == 0 ) {
609 ldap_free_strarray( toks );
616 ldap_free_strarray( toks );
621 adp->ad_attrname = toks[ 1 ];
623 adp->ad_value = toks[ 2 ];
625 NSLDAPI_FREE( toks[ 0 ] );
626 NSLDAPI_FREE( (char *)toks );
640 while (( tokcnt = ldap_next_line_tokens( bufp, blenp, &toks )) > 0 ) {
641 if ( strcasecmp( toks[ 0 ], "item" ) == 0 ) {
643 ldap_free_strarray( toks );
650 ldap_free_strarray( toks );
658 while (( itemopts = strrchr( toks[ 1 ], ',' )) != NULL ) {
666 ldap_free_strarray( toks );
674 if ( strcasecmp( toks[ 1 ], itemtypes[ i ] ) == 0 ) {
679 ldap_free_strarray( toks );
684 NSLDAPI_FREE( toks[ 0 ] );
685 NSLDAPI_FREE( toks[ 1 ] );
687 ip->ti_label = toks[ 2 ];
688 if ( toks[ 3 ][ 0 ] == '\0' ) {
690 NSLDAPI_FREE( toks[ 3 ] );
692 ip->ti_attrname = toks[ 3 ];
694 if ( toks[ 4 ] != NULL ) { /* extra args. */
695 for ( i = 0; toks[ i + 4 ] != NULL; ++i ) {
703 for ( i = 0; toks[ i + 4 ] != NULL; ++i ) {
704 ip->ti_args[ i ] = toks[ i + 4 ];
707 NSLDAPI_FREE( (char *)toks );
719 } else if ( strcasecmp( toks[ 0 ], "samerow" ) == 0 ) {
720 ldap_free_strarray( toks );
723 ldap_free_strarray( toks );