version 1.137, 2006/12/26 03:51:08
|
version 1.138, 2006/12/26 10:34:33
|
Line 1
|
Line 1
|
/* filter.c - routines for parsing and dealing with filters */ |
/* filter.c - routines for parsing and dealing with filters */ |
/* $OpenLDAP: pkg/ldap/servers/slapd/filter.c,v 1.136 2006/12/25 22:30:45 hyc Exp $ */ |
/* $OpenLDAP: pkg/ldap/servers/slapd/filter.c,v 1.137 2006/12/26 03:51:08 hyc Exp $ */ |
/* This work is part of OpenLDAP Software <http://www.openldap.org/>. |
/* This work is part of OpenLDAP Software <http://www.openldap.org/>. |
* |
* |
* Copyright 1998-2006 The OpenLDAP Foundation. |
* Copyright 1998-2006 The OpenLDAP Foundation. |
Line 1170 simple_vrFilter2bv( Operation *op, Value
|
Line 1170 simple_vrFilter2bv( Operation *op, Value
|
{ |
{ |
struct berval tmp; |
struct berval tmp; |
ber_len_t len; |
ber_len_t len; |
|
int undef; |
|
|
if ( vrf == NULL ) { |
if ( vrf == NULL ) { |
ber_str2bv_x( "No filter!", STRLENOF("No filter!"), 1, fstr, |
ber_str2bv_x( "No filter!", STRLENOF("No filter!"), 1, fstr, |
op->o_tmpmemctx ); |
op->o_tmpmemctx ); |
return; |
return; |
} |
} |
int undef = vrf->vrf_choice & SLAPD_FILTER_UNDEFINED; |
undef = vrf->vrf_choice & SLAPD_FILTER_UNDEFINED; |
|
|
switch ( vrf->vrf_choice & SLAPD_FILTER_MASK ) { |
switch ( vrf->vrf_choice & SLAPD_FILTER_MASK ) { |
case LDAP_FILTER_EQUALITY: |
case LDAP_FILTER_EQUALITY: |