~ubuntu-branches/ubuntu/saucy/sssd/saucy

« back to all changes in this revision

Viewing changes to src/db/sysdb_private.h

  • Committer: Stéphane Graber
  • Date: 2011-06-15 16:23:14 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: stgraber@ubuntu.com-20110615162314-rbhoppnpaxfqo5q7
Merge 1.5.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
/*
 
3
   SSSD
 
4
 
 
5
   Private System Database Header
 
6
 
 
7
   Copyright (C) Simo Sorce <ssorce@redhat.com> 2008
 
8
 
 
9
   This program is free software; you can redistribute it and/or modify
 
10
   it under the terms of the GNU General Public License as published by
 
11
   the Free Software Foundation; either version 3 of the License, or
 
12
   (at your option) any later version.
 
13
 
 
14
   This program is distributed in the hope that it will be useful,
 
15
   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
16
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
17
   GNU General Public License for more details.
 
18
 
 
19
   You should have received a copy of the GNU General Public License
 
20
   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
21
*/
 
22
 
 
23
#ifndef __INT_SYS_DB_H__
 
24
#define __INT_SYS_DB_H__
 
25
 
 
26
#define SYSDB_VERSION_0_5 "0.5"
 
27
#define SYSDB_VERSION_0_4 "0.4"
 
28
#define SYSDB_VERSION_0_3 "0.3"
 
29
#define SYSDB_VERSION_0_2 "0.2"
 
30
#define SYSDB_VERSION_0_1 "0.1"
 
31
 
 
32
#define SYSDB_VERSION SYSDB_VERSION_0_5
 
33
 
 
34
#define SYSDB_BASE_LDIF \
 
35
     "dn: @ATTRIBUTES\n" \
 
36
     "userPrincipalName: CASE_INSENSITIVE\n" \
 
37
     "cn: CASE_INSENSITIVE\n" \
 
38
     "dc: CASE_INSENSITIVE\n" \
 
39
     "dn: CASE_INSENSITIVE\n" \
 
40
     "objectclass: CASE_INSENSITIVE\n" \
 
41
     "\n" \
 
42
     "dn: @INDEXLIST\n" \
 
43
     "@IDXATTR: cn\n" \
 
44
     "@IDXATTR: objectclass\n" \
 
45
     "@IDXATTR: member\n" \
 
46
     "@IDXATTR: memberof\n" \
 
47
     "@IDXATTR: name\n" \
 
48
     "@IDXATTR: uidNumber\n" \
 
49
     "@IDXATTR: gidNumber\n" \
 
50
     "@IDXATTR: lastUpdate\n" \
 
51
     "@IDXATTR: originalDN\n" \
 
52
     "\n" \
 
53
     "dn: @MODULES\n" \
 
54
     "@LIST: asq,memberof\n" \
 
55
     "\n" \
 
56
     "dn: cn=sysdb\n" \
 
57
     "cn: sysdb\n" \
 
58
     "version: " SYSDB_VERSION "\n" \
 
59
     "description: base object\n" \
 
60
     "\n"
 
61
 
 
62
#include "db/sysdb.h"
 
63
 
 
64
struct sysdb_ctx {
 
65
    struct sss_domain_info *domain;
 
66
    bool mpg;
 
67
 
 
68
    struct ldb_context *ldb;
 
69
    char *ldb_file;
 
70
};
 
71
 
 
72
struct sysdb_ctx_list {
 
73
    struct sysdb_ctx **dbs;
 
74
    size_t num_dbs;
 
75
 
 
76
    char *db_path;
 
77
};
 
78
 
 
79
#endif /* __INT_SYS_DB_H__ */