summaryrefslogtreecommitdiff
path: root/source4/lib/samba3/ldb_samba3.c
blob: 030b0519387b467ee6041fa12be96499b11387fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
/* 
   ldb database library - Samba3 compatibility backend

   Copyright (C) Jelmer Vernooij 2005

     ** NOTE! The following LGPL license applies to the ldb
     ** library. This does NOT imply that all of Samba is released
     ** under the LGPL
   
   This library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Lesser General Public
   License as published by the Free Software Foundation; either
   version 2 of the License, or (at your option) any later version.

   This library is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   Lesser General Public License for more details.

   You should have received a copy of the GNU Lesser General Public
   License along with this library; if not, write to the Free Software
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/

#include "includes.h"
#include "ldb/ldb_map/ldb_map.h"
#include "ldb/include/ldb.h"
#include "ldb/include/ldb_private.h"

/* 
 * sambaGroupMapping -> group
 * 	gidNumber -> ???
 * 	sambaSID -> member
 * 	sambaGroupType -> groupType
 * 	displayName -> name
 * 	description -> description
 * 	sambaSIDList -> member (special!)
 */

/*
 * sambaTrustPassword
 */

/* sambaDomain
 *	sambaDomainName
 *	sambaSID
 *	sambaNextRid 
 *	sambaNextGroupRid 
 *	sambaNextUserRid
 *	sambaAlgorithmicRidBase
 */

/* sambaUnixIdPool
 */

/* sambaIdmapEntry */

/* sambaAccountPolicy */

/* sambaSidEntry: FIXME */

/* sambaSamAccount -> user:
 * uid -> unixName (magic!)
 * sambaSID -> objectSid
 * cn -> cn
 * sambaLMPassword -> lmPwdHash
 * sambaNTPassword -> ntPwdHash
 * sambaPwdLastSet -> pwdLastSet
 * sambaLogonTime -> lastLogon
 * sambaLogoffTime -> lastLogoff
 * sambaKickoffTime -> ???
 * sambaPwdCanChange  -> ???
 * sambaPwdMustChange  -> ???
 * sambaAcctFlags -> systemFlags ?
 * displayName  -> name
 * sambaHomePath  -> ???
 * sambaHomeDrive  -> ???
 * sambaLogonScript  -> ???
 * sambaProfilePath  -> ???
 * description -> description
 * sambaUserWorkstations  -> ???
 * sambaPrimaryGroupSID -> primaryGroupID
 * sambaDomainName  -> ???
 * sambaMungedDial -> ???
 * sambaBadPasswordCount -> badPwdcount
 * sambaBadPasswordTime -> badPasswordtime
 * sambaPasswordHistory  -> ntPwdHistory
 * sambaLogonHours -> ???
 */

/* Not necessary:
 * sambaConfig
 * sambaShare
 * sambaConfigOption 
 */


struct ldb_map_mappings samba3_mappings;

/* the init function */
#ifdef HAVE_DLOPEN_DISABLED
 struct ldb_module *init_module(struct ldb_context *ldb, const char *options[])
#else
struct ldb_module *ldb_samba3_module_init(struct ldb_context *ldb, const char *options[])
#endif
{
	return ldb_map_init(ldb, &samba3_mappings, options);
}