summaryrefslogtreecommitdiff
path: root/source4/dsdb/schema/schema_init.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-07-02 15:57:30 +1000
committerAndrew Tridgell <tridge@samba.org>2009-07-02 15:57:30 +1000
commitd47bb0a96c8205511e622eacc88de3ec31ddeeab (patch)
treef4a0d1b65d04dfb3a924ca13c886d60f81bf2048 /source4/dsdb/schema/schema_init.c
parent0aec87454b0b2e14b8fa32607d2173caa168d4de (diff)
downloadsamba-d47bb0a96c8205511e622eacc88de3ec31ddeeab.tar.gz
samba-d47bb0a96c8205511e622eacc88de3ec31ddeeab.tar.bz2
samba-d47bb0a96c8205511e622eacc88de3ec31ddeeab.zip
we can't use the unique index code for samAccountName
Using ldb unique indexes for samAccountName doesn't work with DRS as the other DC may send us a deleted record (tombstone record), which has the same samAccountName as an existing record. That would then create two records in the same partition with the same samAccountName. So we needed to put back the logic in samldb.c which explicitly checked whether a samAccountName already exists on add
Diffstat (limited to 'source4/dsdb/schema/schema_init.c')
-rw-r--r--source4/dsdb/schema/schema_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/dsdb/schema/schema_init.c b/source4/dsdb/schema/schema_init.c
index 2f63931494..1084679f8d 100644
--- a/source4/dsdb/schema/schema_init.c
+++ b/source4/dsdb/schema/schema_init.c
@@ -589,7 +589,7 @@ WERROR dsdb_read_prefixes_from_ldb(TALLOC_CTX *mem_ctx, struct ldb_context *ldb,
*/
static bool dsdb_schema_unique_attribute(const char *attr)
{
- const char *attrs[] = { "samAccountName", "objectGUID", "objectSID" , NULL };
+ const char *attrs[] = { "objectGUID", "objectSID" , NULL };
int i;
for (i=0;attrs[i];i++) {
if (strcasecmp(attr, attrs[i]) == 0) {