[Fedora-directory-devel] slapi extednded match plugin: How to limit attribute's to match on?
by Andrew Bartlett
I've got my bitwise match plugin to load and run, but now I have an
issue. it appears that my matching rule needs to limit what attributes
it applies itself to.
That is, when I step though to code, from this query:
[abartlet@piglett source]$ bin/ldbsearch -H
ldapi:///data/samba/samba4/svn/source/st/dc/ldap/ldapi -b
"dc=samba,dc=example,dc=com" -s sub
'(|(&(!(groupType:1.2.840.113556.1.4.803:=1))(groupType:1.2.840.113556.1.4.803:=2147483648)(groupType:1.2.840.113556.1.4.804:=10)))' sAMAccountName groupType
# returned 0 records
I seem to be walking all the attributes, not just the attributes in the
search expression:
75 errno = 0;
76 a = strtoull((*vals)->bv_val, NULL, 10);
77 if (errno == ERANGE) {
78 ber_bvecfree( vals );
79 vals = NULL;
80 continue;
81 }
(gdb) p (*vals)->bv_val
$5 = 0x8411038 "(targetattr = \"*\") (version 3.0;acl \"full access to
all by all\";allow (all)(userdn = \"ldap:///anyone\");)\n"
The collation plugin is again to opaque for me to quite get how I'm
meant to handle this...
My plugin in attached.
Andrew Bartlett
--
Andrew Bartlett http://samba.org/~abartlet/
Authentication Developer, Samba Team http://samba.org
Samba Developer, Red Hat Inc. http://redhat.com
16 years, 12 months