svn commit: samba r9318 - in branches/SAMBA_4_0/source/lib/ldb/common: .

Stefan (metze) Metzmacher metze at samba.org
Tue Aug 16 07:00:59 GMT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

metze at samba.org schrieb:
> Author: metze
> Date: 2005-08-16 06:55:40 +0000 (Tue, 16 Aug 2005)
> New Revision: 9318
> 
> WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=9318
> 
> Log:
> fix searches with scope ONE and SUB,
> 
> the problem was that ldb_dn_compare_base() just looked at if
> both dn's mtach some how, and the following happens:
> 
> basedn: CN=bar,DC=foo,DC=com
> dn: DC=foo,DC=com
> 
> and dn: DC=foo,DC=com was return as result of a sub and base search
> 
> and also the ONE search with
> basedn: DC=foo,DC=com
> 
> returned this
> 
> dn: CN=bla,CN=bar,DC=foo,DC=com
> 
> metze
> Modified:
>    branches/SAMBA_4_0/source/lib/ldb/common/ldb_dn.c
>    branches/SAMBA_4_0/source/lib/ldb/common/ldb_match.c
> 
> 
> Changeset:
> Modified: branches/SAMBA_4_0/source/lib/ldb/common/ldb_dn.c
> ===================================================================
> --- branches/SAMBA_4_0/source/lib/ldb/common/ldb_dn.c	2005-08-16 05:34:01 UTC (rev 9317)
> +++ branches/SAMBA_4_0/source/lib/ldb/common/ldb_dn.c	2005-08-16 06:55:40 UTC (rev 9318)
> @@ -415,6 +415,10 @@
>  	int ret;
>  	int n0, n1;
>  
> +	if (base->comp_num > dn->comp_num) {
> +		return (dn->comp_num - base->comp_num);
> +	}

Tridge, Simo:
is that the correct return value?



- --
metze

Stefan Metzmacher <metze at samba.org> www.samba.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3-nr1 (Windows XP)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDAY8pm70gjA5TCD8RAhEyAJ9VYlooHVUOkJmuUUDwQXKNSwpZvwCcCylx
TigJmIMwUIXjAPAjcEbxkwg=
=PknL
-----END PGP SIGNATURE-----


More information about the samba-technical mailing list