Lines Matching defs:scope
38 * l d a p : / / hostport / dn [ ? attributes [ ? scope [ ? filter ] ] ]
42 * scope is one of these three strings: base one sub (default=base)
185 char *urlcopy, *attrs, *scope, *extensions = NULL, *p, *q;
220 /* initialize scope and filter */
284 /* scan for '?' that marks end of attrs and begin. of scope */
287 * terminate attrs; point to start of scope and scan for
288 * '?' that marks end of scope and begin. of filter
291 scope = p;
293 if (( p = strchr( scope, '?' )) != NULL ) {
294 /* terminate scope; point to start of filter */
317 if ( strcasecmp( scope, "one" ) == 0 ) {
319 } else if ( strcasecmp( scope, "base" ) == 0 ) {
321 } else if ( strcasecmp( scope, "sub" ) == 0 ) {
323 } else if ( *scope != '\0' ) {
555 * If scope is not NULL then it overrides the URL's scope.
568 char *scope,
599 /* merge filter and/or scope and/or attributes with URL */
600 if (attrs || scope || filter) {
605 if (scope)
606 scope_len = strlen(scope) + 1; /* for NULL */
670 /* handle URL scope */
677 /* insert supplied scope */
678 if (scope) {
679 while (*scope) {
680 *cp2++ = *scope++;
688 if (scope) {
689 /* skip over URL scope */
693 /* insert supplied scope */
694 while (*scope) {
695 *cp2++ = *scope++;
699 /* copy URL scope */
707 /* append supplied scope */
708 if (scope) {
713 while (*scope) {
714 *cp2++ = *scope++;