On Fri, 2005-06-17 at 03:21 +0000, [EMAIL PROTECTED] wrote:
> Author: tridge
> Date: 2005-06-17 03:21:27 +0000 (Fri, 17 Jun 2005)
> New Revision: 7670
> 
> WebSVN: 
> http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=7670
> 
> Log:
> fixed rootDSE search in ldap server
> 
> Modified:
>    branches/SAMBA_4_0/source/ldap_server/ldap_rootdse.c
> 
> 
> Changeset:
> Modified: branches/SAMBA_4_0/source/ldap_server/ldap_rootdse.c
> ===================================================================
> --- branches/SAMBA_4_0/source/ldap_server/ldap_rootdse.c      2005-06-17 
> 03:07:30 UTC (rev 7669)
> +++ branches/SAMBA_4_0/source/ldap_server/ldap_rootdse.c      2005-06-17 
> 03:21:27 UTC (rev 7670)
> @@ -331,7 +331,7 @@
>               attrs[j] = NULL;
>       }
>  
> -     count = ldb_search(rootdsedb->ldb, "", 0, "dn=cn=rootDSE", attrs, &res);
> +     count = ldb_search(rootdsedb->ldb, NULL, 0, "dn=cn=rootDSE", attrs, 
> &res);
>       talloc_steal(rootdsedb, res);
>  
>       if (count == 1) {

according to the new way of searching dns this search should be:

count = ldb_search(rootdsedb->ldb, "cn=rootDSE", 0, NULL, attrs, &res);

or am I missing something ?

Simo.

-- 
Simo Sorce    -  [EMAIL PROTECTED]
Samba Team    -  http://www.samba.org
Italian Site  -  http://samba.xsec.it

Reply via email to