diff options
author | Anatoliy Atanasov <anatoliy.atanasov@postpath.com> | 2010-04-26 09:56:59 +0300 |
---|---|---|
committer | Anatoliy Atanasov <anatoliy.atanasov@postpath.com> | 2010-04-29 10:18:06 +0300 |
commit | dbbbc7d1f8a86bd0535c46f50fae8223c26afd9a (patch) | |
tree | a3ae306ff09e4329aebd06f5f17db1b2f4ed6776 /source4/dsdb/samdb/ldb_modules | |
parent | 5a4ee75289e8394ea2f2de0b0415ed7f7ee54575 (diff) | |
download | samba-dbbbc7d1f8a86bd0535c46f50fae8223c26afd9a.tar.gz samba-dbbbc7d1f8a86bd0535c46f50fae8223c26afd9a.tar.bz2 samba-dbbbc7d1f8a86bd0535c46f50fae8223c26afd9a.zip |
s4/rodc: RODC FAS initial implementation
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/extended_dn_out.c | 13 | ||||
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/util.c | 12 |
2 files changed, 13 insertions, 12 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/extended_dn_out.c b/source4/dsdb/samdb/ldb_modules/extended_dn_out.c index f28ad8e12f..39af87091c 100644 --- a/source4/dsdb/samdb/ldb_modules/extended_dn_out.c +++ b/source4/dsdb/samdb/ldb_modules/extended_dn_out.c @@ -40,6 +40,7 @@ #include "librpc/gen_ndr/ndr_security.h" #include "librpc/ndr/libndr.h" #include "dsdb/samdb/samdb.h" +#include "util.h" struct extended_dn_out_private { bool dereference; @@ -47,18 +48,6 @@ struct extended_dn_out_private { struct dsdb_openldap_dereference_control *dereference_control; }; -static bool is_attr_in_list(const char * const * attrs, const char *attr) -{ - unsigned int i; - - for (i = 0; attrs[i]; i++) { - if (ldb_attr_cmp(attrs[i], attr) == 0) - return true; - } - - return false; -} - static char **copy_attrs(void *mem_ctx, const char * const * attrs) { char **nattrs; diff --git a/source4/dsdb/samdb/ldb_modules/util.c b/source4/dsdb/samdb/ldb_modules/util.c index 7913ac8049..18631c4350 100644 --- a/source4/dsdb/samdb/ldb_modules/util.c +++ b/source4/dsdb/samdb/ldb_modules/util.c @@ -826,3 +826,15 @@ int dsdb_recyclebin_enabled(struct ldb_module *module, bool *enabled) talloc_free(partitions_dn); return LDB_SUCCESS; } + +bool is_attr_in_list(const char * const * attrs, const char *attr) +{ + unsigned int i; + + for (i = 0; attrs[i]; i++) { + if (ldb_attr_cmp(attrs[i], attr) == 0) + return true; + } + + return false; +} |