s4:samldb LDB module - make sure to not add identical "servicePrincipalName"s more...
authorMatthias Dieter Wallnöfer <mdw@samba.org>
Thu, 3 May 2012 20:55:06 +0000 (22:55 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 3 May 2012 22:25:36 +0000 (08:25 +1000)
commitd4391f77bf54ae94de9715bfbefcd545c556e55c
tree5b51b375cf6bbd777b518e95d8ee351f43844990
parent299c13b7f60f2e3faaf73d6b3370acf99021963d
s4:samldb LDB module - make sure to not add identical "servicePrincipalName"s more than once

The service principal names need to be case-insensitively unique, otherwise we
end up in a LDB ERR_ATTRIBUTE_OR_VALUE_EXISTS error.
This issue has been discovered on the technical mailing list (thread:
cannot rename windows xp machine in samba4) when trying to rename a AD
client workstation.
source4/dsdb/samdb/ldb_modules/samldb.c
source4/dsdb/tests/python/sam.py