sysdb_private.h revision 25a9a1768d2e3587cc68b76a0a5df1e42a2c89ab
2ca39b9545cad63df411619615736d9070ad7932Christian Maeder Private System Database Header
2ca39b9545cad63df411619615736d9070ad7932Christian Maeder Copyright (C) Simo Sorce <ssorce@redhat.com> 2008
2ca39b9545cad63df411619615736d9070ad7932Christian Maeder This program is free software; you can redistribute it and/or modify
2ca39b9545cad63df411619615736d9070ad7932Christian Maeder it under the terms of the GNU General Public License as published by
2ca39b9545cad63df411619615736d9070ad7932Christian Maeder the Free Software Foundation; either version 3 of the License, or
2ca39b9545cad63df411619615736d9070ad7932Christian Maeder (at your option) any later version.
2ca39b9545cad63df411619615736d9070ad7932Christian Maeder This program is distributed in the hope that it will be useful,
6f70475dddc12732bdbef3e3dd116373e34cd6b9Christian Maeder but WITHOUT ANY WARRANTY; without even the implied warranty of
2ca39b9545cad63df411619615736d9070ad7932Christian Maeder MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2ca39b9545cad63df411619615736d9070ad7932Christian Maeder GNU General Public License for more details.
2ca39b9545cad63df411619615736d9070ad7932Christian Maeder You should have received a copy of the GNU General Public License
2ca39b9545cad63df411619615736d9070ad7932Christian Maeder along with this program. If not, see <http://www.gnu.org/licenses/>.
2ca39b9545cad63df411619615736d9070ad7932Christian Maeder "dn: @ATTRIBUTES\n" \
2ca39b9545cad63df411619615736d9070ad7932Christian Maeder "userPrincipalName: CASE_INSENSITIVE\n" \
2ca39b9545cad63df411619615736d9070ad7932Christian Maeder "cn: CASE_INSENSITIVE\n" \
2ca39b9545cad63df411619615736d9070ad7932Christian Maeder "dc: CASE_INSENSITIVE\n" \
2ca39b9545cad63df411619615736d9070ad7932Christian Maeder "dn: CASE_INSENSITIVE\n" \
aeabd99d28fef3b392ca208c5ac84f7892af0ddbnotanartist "originalDN: CASE_INSENSITIVE\n" \
6f70475dddc12732bdbef3e3dd116373e34cd6b9Christian Maeder "objectclass: CASE_INSENSITIVE\n" \
6f70475dddc12732bdbef3e3dd116373e34cd6b9Christian Maeder "dn: @INDEXLIST\n" \
6f70475dddc12732bdbef3e3dd116373e34cd6b9Christian Maeder "@IDXATTR: cn\n" \
6f70475dddc12732bdbef3e3dd116373e34cd6b9Christian Maeder "@IDXATTR: objectclass\n" \
6f70475dddc12732bdbef3e3dd116373e34cd6b9Christian Maeder "@IDXATTR: member\n" \
df87ff823273ae2969e9d29e833845b4c0a9ee77notanartist "@IDXATTR: memberof\n" \
f79175f2c52a2d588934ba75c1994892c6fa4918notanartist "@IDXATTR: name\n" \
6f70475dddc12732bdbef3e3dd116373e34cd6b9Christian Maeder "@IDXATTR: uidNumber\n" \
6f70475dddc12732bdbef3e3dd116373e34cd6b9Christian Maeder "@IDXATTR: gidNumber\n" \
6f70475dddc12732bdbef3e3dd116373e34cd6b9Christian Maeder "@IDXATTR: lastUpdate\n" \
aeabd99d28fef3b392ca208c5ac84f7892af0ddbnotanartist "@IDXATTR: dataExpireTimestamp\n" \
aeabd99d28fef3b392ca208c5ac84f7892af0ddbnotanartist "@IDXATTR: originalDN\n" \
aeabd99d28fef3b392ca208c5ac84f7892af0ddbnotanartist "@IDXATTR: nameAlias\n" \
6f70475dddc12732bdbef3e3dd116373e34cd6b9Christian Maeder "@IDXATTR: servicePort\n" \
6f70475dddc12732bdbef3e3dd116373e34cd6b9Christian Maeder "@IDXATTR: serviceProtocol\n" \
6f70475dddc12732bdbef3e3dd116373e34cd6b9Christian Maeder "@IDXATTR: sudoUser\n" \
6f70475dddc12732bdbef3e3dd116373e34cd6b9Christian Maeder "@IDXONE: 1\n" \
aeabd99d28fef3b392ca208c5ac84f7892af0ddbnotanartist "dn: @MODULES\n" \
6f70475dddc12732bdbef3e3dd116373e34cd6b9Christian Maeder "@LIST: asq,memberof\n" \
6f70475dddc12732bdbef3e3dd116373e34cd6b9Christian Maeder "dn: cn=sysdb\n" \
6f70475dddc12732bdbef3e3dd116373e34cd6b9Christian Maeder "cn: sysdb\n" \
6f70475dddc12732bdbef3e3dd116373e34cd6b9Christian Maeder "description: base object\n" \
aeabd99d28fef3b392ca208c5ac84f7892af0ddbnotanartist/* Internal utility functions */
6f70475dddc12732bdbef3e3dd116373e34cd6b9Christian Maedererrno_t sysdb_ldb_connect(TALLOC_CTX *mem_ctx, const char *filename,
2ca39b9545cad63df411619615736d9070ad7932Christian Maederint sysdb_domain_init_internal(TALLOC_CTX *mem_ctx,
6f70475dddc12732bdbef3e3dd116373e34cd6b9Christian Maeder/* Upgrade routines */
9308cb2aebeae23f49713896e6d7028b0ac0f83enotanartistint sysdb_upgrade_01(struct ldb_context *ldb, const char **ver);
2ca39b9545cad63df411619615736d9070ad7932Christian Maederint sysdb_check_upgrade_02(struct sss_domain_info *domains,
2ca39b9545cad63df411619615736d9070ad7932Christian Maederint sysdb_upgrade_03(struct sysdb_ctx *sysdb, const char **ver);
2ca39b9545cad63df411619615736d9070ad7932Christian Maederint sysdb_upgrade_04(struct sysdb_ctx *sysdb, const char **ver);
2ca39b9545cad63df411619615736d9070ad7932Christian Maederint sysdb_upgrade_05(struct sysdb_ctx *sysdb, const char **ver);
2ca39b9545cad63df411619615736d9070ad7932Christian Maederint sysdb_upgrade_06(struct sysdb_ctx *sysdb, const char **ver);
2ca39b9545cad63df411619615736d9070ad7932Christian Maederint sysdb_upgrade_07(struct sysdb_ctx *sysdb, const char **ver);
2ca39b9545cad63df411619615736d9070ad7932Christian Maederint sysdb_upgrade_08(struct sysdb_ctx *sysdb, const char **ver);
2ca39b9545cad63df411619615736d9070ad7932Christian Maederint sysdb_upgrade_09(struct sysdb_ctx *sysdb, const char **ver);
aeabd99d28fef3b392ca208c5ac84f7892af0ddbnotanartistint add_string(struct ldb_message *msg, int flags,
2ca39b9545cad63df411619615736d9070ad7932Christian Maederint add_ulong(struct ldb_message *msg, int flags,
2ca39b9545cad63df411619615736d9070ad7932Christian Maeder#endif /* __INT_SYS_DB_H__ */