svn commit: samba r20315 - in branches/SAMBA_4_0/source: dsdb/samdb dsdb/samdb/ldb_modules librpc/idl rpc_server/drsuapi torture/rpc

Stefan (metze) Metzmacher metze at samba.org
Fri Dec 22 17:02:32 GMT 2006


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

Stefan (metze) Metzmacher schrieb:
> Stefan (metze) Metzmacher schrieb:
>> abartlet at samba.org schrieb:
>>> Author: abartlet
>>> Date: 2006-12-22 07:04:06 +0000 (Fri, 22 Dec 2006)
>>> New Revision: 20315
>>> WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=20315
>>> Log:
>>> Implement the server side of DsGetDomainControllerInfo.  This is a
>>> supprisingly complex call...
>>> It turns out that the in/out parameter 'level' is not in/out, but set
>>> seperatly by the server-side code from r->req.req1.level.
>>> This commit also breaks out some common code from samldb into samdb.
>> Hi Andrew,
> 
>> I fear your implementation for the DSGetDomainControllerInfo is a bit
>> wrong...
> 
>> what we need to do is this:
> 
>> 1. lookup the domain dn using samdb_domain_to_dn().
>>    and return WERR_DS_OBJ_NOT_FOUND if it's not found.
> 
>> 2. then lookup the sites container dn sing samdb_sites_dn().
> 
>> 3. and search in the sites container for all nTDSDSA objects.
>>    and not for all server objects, as member servers can also have them
>>    when they host a DFS share and use FRS.

Once we have support for linked attributes and our own database
holds all links and backlinks. We could use the "masteredBy" attribute
of the domain object to enumerate the domain controllers...

metze
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFFjA+om70gjA5TCD8RAoF0AKC3Dbe7tVfgntzvK2g51CFRh5ZrDACfauDM
u8IwmHZxAjJ1RMf1jjr7sTI=
=Q25m
-----END PGP SIGNATURE-----


More information about the samba-cvs mailing list