Samba4 index errors, and upgrade challenges

Matthieu Patou mat at samba.org
Thu Aug 26 01:33:12 MDT 2010


  On 25/08/2010 23:57, Sina Owolabi wrote:
> As ordered:
>
> ../bin/ldbsearch -H sam.ldb -b "CN=Certificate Service DCOM
> Access,CN=Users, DC=qrios,DC=com"
> # returned 0 records
> # 0 entries
> # 0 referrals
>
> [root at dc private]# ../bin/ldbsearch -H sam.ldb.d/DC\=QRIOS\,DC\=COM.ldb
> "CN=Certificate Service DCOM Access,CN=Users, DC=qrios,DC=com"
> # returned 0 records
> # 0 entries
> # 0 referrals
>
> Not found.
Ok let's try a broarder search :


../bin/ldbsearch -H sam.ldb dn | grep -i certificate
and
../bin/ldbsearch -H sam.ldb.d/DC\=QRIOS\,DC\=COM.ldb dn | grep -i certificate

Because it's rather strange that upgradeprovision wants to remove an object that don't exists, I checked the code we have this:

         res = samdb.search(expression="(dn=%s)" % dntoremove,
                             base=str(names.rootdn),
                             scope=SCOPE_SUBTREE, attrs=["dn"],
                             controls=["search_options:1:2"])
         if len(res)>  0:
             message(CHANGE, "Existing object %s must be replaced by %s,"
                             "removing old object" % (dntoremove, str(dn)))
             samdb.delete(res[0]["dn"])


Matthieu.

-- 
Matthieu Patou
Samba Team        http://samba.org



More information about the samba-technical mailing list