why does this patch use samdb_search_count()?
abartlet at samba.org
Mon Nov 15 14:18:43 MST 2010
On Mon, 2010-11-15 at 21:53 +0100, Matthias Dieter Wallnöfer wrote:
> "ldb_dn_base_compare" doesn't work in this case. An example: assume the
> default basedn as "dc=example,dc=com" and a certain application basedn
> as "cn=ForestDnsZones,dc=example,dc=com". Now we do have
> "cn=Infrastructure,cn=ForestDnsZones,dc=example,dc=com" where the object
> classes should be changed. Well, on "ldb_dn_base_compare" it matches
> with the application basedn *but also* with the default basedn which it
> shouldn't. Since the object clearly isn't located in the default basedn
> The rule says "objectClass" changes allowed on application partitions
> but not on the standard ones (default, configuration, schema).
> So, do you know a better way than "samdb_search_count"? I'm open for
Tridge pointed me at dsdb_find_nc_root(). This should do what you need.
Do feel free to ask on the list or on IRC about things like this.
Andrew Bartlett http://samba.org/~abartlet/
Authentication Developer, Samba Team http://samba.org
Samba Developer, Cisco Inc.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 190 bytes
Desc: This is a digitally signed message part
More information about the samba-technical