s3:ldap: Leave add machine code early for pre-existing accounts
commite933ddb774434d6805c5edfdf5229585e73754d0
authorGuenther Deschner <gd@samba.org>
Mon, 1 Apr 2019 15:40:03 +0000 (1 17:40 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 9 Apr 2019 09:49:52 +0000 (9 09:49 +0000)
tree38a0af938a066aaa3f0f53ffc148db1ef14bad51
parent55da00ced98487989777768126a9b1acf9b93b0b
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>
(cherry picked from commit 2044ca0e20bd3180720a82506b3af041d14b5c68)
source3/libads/ldap.c