s3:ldap: Leave add machine code early for pre-existing accounts
authorGuenther Deschner <gd@samba.org>
Mon, 1 Apr 2019 15:40:03 +0000 (17:40 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 2 Apr 2019 01:12:10 +0000 (01:12 +0000)
commit2044ca0e20bd3180720a82506b3af041d14b5c68
tree03c84c739731cebe03ad4fcbc566b18375395c93
parentc016afc832543514ebf7ecda1fbe6b272ea533d6
s3:ldap: Leave add machine code early for pre-existing accounts

This avoids numerous LDAP constraint violation errors when we try to
re-precreate an already existing machine account.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13861

Pair-Programmed-With: Andreas Schneider <asn@samba.org>
Signed-off-by: Guenther Deschner <gd@samba.org>
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/libads/ldap.c