single valued attribute and deleted link tracking

Andrew Bartlett abartlet at
Mon Jul 4 05:45:59 MDT 2011

On Sun, 2011-07-03 at 22:20 +0400, Matthieu Patou wrote:
> Dear all,
> I'm facing a bug: I tried to dcpromo once and so I have a server entry 
> like this:
> with a serverReference which has a deleted link value (RMD_FLAGS=1), 
> when trying to dcpromo one more time I get the error: Attribute already 
> exists because the code in source4/lib/ldb/ldb_tdb/ldb_tdb.c checks that 
> if it's single valued attribute then we can't add another value.
> We have a kind of relax in 
> source4/dsdb/samdb/ldb_modules/repl_meta_data.c but applies only to 
> linked attributes received from drs. My proposal is to use the function 
> dsdb_check_single_valued_link and then set 
> make the single value check.
> Can someone ack my patch ?

An excellent analysis!  This seems quite correct to me.

Andrew Bartlett

Andrew Bartlett                      
Authentication Developer, Samba Team 

More information about the samba-technical mailing list