summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb/ldb_modules/objectclass_attrs.c
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-11-20 21:15:57 +0100
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-11-20 21:15:57 +0100
commitd9f97cd57f9f797c25212f2fc2d9791733a24ca0 (patch)
treeb04f849d6a493d4930a884cc6bddfc8b0a3a1eef /source4/dsdb/samdb/ldb_modules/objectclass_attrs.c
parent87ddd5a807298348c95ce5cb720fd9cd87618953 (diff)
downloadsamba-d9f97cd57f9f797c25212f2fc2d9791733a24ca0.tar.gz
samba-d9f97cd57f9f797c25212f2fc2d9791733a24ca0.tar.bz2
samba-d9f97cd57f9f797c25212f2fc2d9791733a24ca0.zip
s4:objectclass_attrs LDB module - add more delete protected attributes
And enhance the testsuite
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules/objectclass_attrs.c')
-rw-r--r--source4/dsdb/samdb/ldb_modules/objectclass_attrs.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/objectclass_attrs.c b/source4/dsdb/samdb/ldb_modules/objectclass_attrs.c
index 67d11b302d..ba1f7abad1 100644
--- a/source4/dsdb/samdb/ldb_modules/objectclass_attrs.c
+++ b/source4/dsdb/samdb/ldb_modules/objectclass_attrs.c
@@ -203,7 +203,10 @@ static int attr_handler2(struct oc_context *ac)
/* There exists a hardcoded delete-protected attributes list in AD */
const char *del_prot_attributes[] = { "nTSecurityDescriptor",
"objectSid", "sAMAccountType", "sAMAccountName", "groupType",
- "primaryGroupID", "userAccountControl", NULL }, **l;
+ "primaryGroupID", "userAccountControl", "accountExpires",
+ "badPasswordTime", "badPwdCount", "codePage", "countryCode",
+ "lastLogoff", "lastLogon", "logonCount", "pwdLastSet", NULL },
+ **l;
const struct dsdb_attribute *attr;
unsigned int i;
bool found;