[PATCH] s4:drs Create connection object (nTDSConnection)

tridge at samba.org tridge at samba.org
Mon Nov 30 02:36:02 MST 2009

Hi Cristian,

 > I made some changes to my code. the two patches are attached, but the code
 > at git://repo.or.cz/Samba/cd1.git is also updated (branch 'cd1').

thanks! I've pushed your changes to master. Nice work!

This gives us a good basis for the nTDSConnection objects. I think the
next logical steps for this code would be to work on the
mS-DS-ReplicatesNCReason attribute.

If you look at section of [MS-ADTS] then the
attribute is described. I think it is probably best to create some
utility functions in dsdb/kcc/kcc_connection.c which would be called
from the replication code in dsdb/repl/. Each time the repl task
completes a replication it would call one of a utility function 
to update the status code in a mS-DS-ReplicatesNCReason attribute.

This is linked to the work on repadmin.exe, which shows the status of
replications. The server side function should pull the information
from the mS-DS-ReplicatesNCReason attribute.

The other (larger!) task is to work on the topology code. At the
moment we create connections to all DCs, but really we should create
only enough connections for connectivity within the domain (forming a
ring of connections). The algorithm for creating this ring is in
section of [MS-ADTS]. We need to create some code that
implements this algorithm and build a test suite to make sure it is
working correctly.

I think the mS-DS-ReplicatesNCReason should probably be done first,
but both would be very useful.

Cheers, Tridge

More information about the samba-technical mailing list