1 | /*
|
---|
2 | ldb database library utility header file
|
---|
3 |
|
---|
4 | Copyright (C) Matthieu Patou 2009
|
---|
5 |
|
---|
6 | ** NOTE! The following LGPL license applies to the ldb
|
---|
7 | ** library. This does NOT imply that all of Samba is released
|
---|
8 | ** under the LGPL
|
---|
9 |
|
---|
10 | This library is free software; you can redistribute it and/or
|
---|
11 | modify it under the terms of the GNU Lesser General Public
|
---|
12 | License as published by the Free Software Foundation; either
|
---|
13 | version 3 of the License, or (at your option) any later version.
|
---|
14 |
|
---|
15 | This library is distributed in the hope that it will be useful,
|
---|
16 | but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
18 | Lesser General Public License for more details.
|
---|
19 |
|
---|
20 | You should have received a copy of the GNU Lesser General Public
|
---|
21 | License along with this library; if not, see <http://www.gnu.org/licenses/>.
|
---|
22 | */
|
---|
23 |
|
---|
24 | /*
|
---|
25 | * Name: ldb
|
---|
26 | *
|
---|
27 | * Description: Common function used by ldb_add/ldb_modify/ldb_delete
|
---|
28 | *
|
---|
29 | * Author: Matthieu Patou
|
---|
30 | */
|
---|
31 |
|
---|
32 | #include "ldb.h"
|
---|
33 |
|
---|
34 | int ldb_add_ctrl(struct ldb_context *ldb,
|
---|
35 | const struct ldb_message *message,
|
---|
36 | struct ldb_control **controls);
|
---|
37 | int ldb_delete_ctrl(struct ldb_context *ldb, struct ldb_dn *dn,
|
---|
38 | struct ldb_control **controls);
|
---|
39 | int ldb_modify_ctrl(struct ldb_context *ldb,
|
---|
40 | const struct ldb_message *message,
|
---|
41 | struct ldb_control **controls);
|
---|
42 | int ldb_search_ctrl(struct ldb_context *ldb, TALLOC_CTX *mem_ctx,
|
---|
43 | struct ldb_result **result, struct ldb_dn *base,
|
---|
44 | enum ldb_scope scope, const char * const *attrs,
|
---|
45 | struct ldb_control **controls,
|
---|
46 | const char *exp_fmt, ...);
|
---|