diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-06-04 21:10:41 +0200 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-06-06 20:48:42 +0200 |
commit | df63b2ca0e64897b18f8b6be8c31e16d62a96a30 (patch) | |
tree | 13c905cc11ec1a40a9611e45d43a4efa85cc1d6f | |
parent | ae9faaa89449cf25c2e5e8b51e64ceaacba01832 (diff) | |
download | samba-df63b2ca0e64897b18f8b6be8c31e16d62a96a30.tar.gz samba-df63b2ca0e64897b18f8b6be8c31e16d62a96a30.tar.bz2 samba-df63b2ca0e64897b18f8b6be8c31e16d62a96a30.zip |
s4:get_last_structural_class - only real structural classes can be candidates for fetching the last one
Classes with objectCategory = 1 are always structural, these with
objectCategory = 0 also (as we can see in our Windows 2008 R2 schema file where
class "Person" has 0 but is structural).
Abstract classes and auxiliary ones cannot be considered (objectCategory = 2, 3)
http://msdn.microsoft.com/en-us/library/ms677964(VS.85).aspx
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/util.c b/source4/dsdb/samdb/ldb_modules/util.c index 6512b26fb1..bf9277485d 100644 --- a/source4/dsdb/samdb/ldb_modules/util.c +++ b/source4/dsdb/samdb/ldb_modules/util.c @@ -420,7 +420,7 @@ const struct dsdb_class * get_last_structural_class(const struct dsdb_schema *sc continue; } - if(tmp_class->objectClassCategory == 3) { + if(tmp_class->objectClassCategory > 1) { continue; } |