Michael Adam
28535349bd
s3:idmap_tdb: remove unused idmap_alloc_db
2010-08-14 02:10:51 +02:00
Michael Adam
9010194972
s3:idmap_tdb: remove unused idmap_tdb_alloc_close().
2010-08-14 02:10:51 +02:00
Michael Adam
2e4a0382f5
s3:idmap_tdb: give idmap_domain arg to idmap_tdb_allocate_id and use ctx->db
...
instead of alloc_db
2010-08-14 02:10:50 +02:00
Michael Adam
4301a81c99
s3:idmap_tdb: call idmap_tdb_init_hwm() from idmap_tdb_open_db().
2010-08-14 02:10:50 +02:00
Michael Adam
1039506493
s3:idmap_tdb: move idmap_tdb_init_hwm up.
2010-08-14 02:10:50 +02:00
Michael Adam
f739ccb1b9
s3:idmap_tdb: remove unused idmap_tdb_load_ranges()
...
The idmap_tdb_state (which should actually be called idmap_tdb_alloc_context)
is being removed since the alloc part is combined with the id mapping part.
2010-08-14 02:10:50 +02:00
Michael Adam
b1285a5cb3
s3:idmap_tdb: have idmap_tdb_open_db take an idmap_domain struct as argument
...
the other arguments are not needed any more and are removed.
2010-08-14 02:10:49 +02:00
Michael Adam
53856fc8b0
s3:idmap_tdb: rename idmap_tdb_alloc_init->idmap_tdb_init_hwm and use db from idmap_tdb_context
...
instead of the special idmap_alloc_db
2010-08-14 02:10:49 +02:00
Michael Adam
384e35f8a7
s3:idmap_tdb: move definition of struct idmap_tdb_context up.
2010-08-14 02:10:47 +02:00
Michael Adam
db38972583
s3:idmap_tdb: remove filter_low_id,filter_high_id from idmap_tdb_context
...
These are now taken from the idmap_domain struct.
2010-08-14 02:10:47 +02:00
Michael Adam
3315f2cf9b
s3:idmap_tdb: add idmap domain arg to idmap_tdb_upgrade and use domain range
2010-08-14 02:10:47 +02:00
Michael Adam
6d66018187
s3:idmap_tdb: use filter from idmap_domain rather than from idmap_tdb_context
2010-08-14 02:10:47 +02:00
Michael Adam
053e4510cd
s3:idmap_tdb: give idmap domain argument to idmap_tdb_sid_to_id
...
instead of idmap_tdb_context. This is in preparation of using the
filter from the idmap_domain struct.
2010-08-14 02:10:47 +02:00
Michael Adam
f7a5f0987c
s3:idmap_tdb: give idmap domain argument to idmap_tdb_id_to_sid
...
instead of idmap_tdb_context. This is in preparation of using the
filter from the idmap_domain struct.
2010-08-14 02:10:47 +02:00
Michael Adam
0f248169d9
s3:idmap_tdb: implement allocate_id in idmap methods for tdb backend
2010-08-14 02:10:46 +02:00
Michael Adam
2b9ad09ae7
s3:idmap_tdb: add idmap_tdb_get_new_id() to allocate a new id given a domain
...
Currently this only works with the default domain, calling out
to idmap_tdb_allocate_id(). In the future this will be extended
to also work for non-default domains.
2010-08-14 02:10:46 +02:00
Michael Adam
9e8df7403a
s3:idmap_tdb: convert idmap_tdb_allocate_id() to use transaction wrappers
2010-08-14 02:10:46 +02:00
Michael Adam
85e9b35993
s3:idmap_tdb: remove an extra blank line
2010-08-14 02:10:46 +02:00
Michael Adam
bc59660fc1
s3:idmap_tdb: remove unused idmap_alloc_methods
2010-08-14 02:10:39 +02:00
Michael Adam
5e317beadb
s3:idmap_tdb: remove unused idmap_alloc_tdb_init()
2010-08-14 02:10:38 +02:00
Michael Adam
dd4adc1721
s3:idmap_tdb: don't call idmap_alloc_tdb_init in idmap_tdb_init
...
The registering of alloc backends is being removed.
The idmap backends are responsible for initializing
their alloc code on their own if necessary.
2010-08-14 02:10:38 +02:00
Michael Adam
7b4c6f7e89
s3:idmap_tdb: make idmap_alloc_tdb_init() static.
2010-08-14 02:10:37 +02:00
Michael Adam
0d0032e744
s3:idmap: remove the set_mapping method from the idmap API
2010-08-14 02:10:36 +02:00
Michael Adam
95b840cbf1
s3:idmap: remove unused method set_id_hwm from idmap API
...
Michael
2010-08-14 02:10:35 +02:00
Michael Adam
3715a1687f
s3:idmap: remove unused alloc method get_id_hwm from idmap API
...
Michael
2010-08-14 02:10:35 +02:00
Michael Adam
672ab10ee7
s3:idmap: remove unused method dump_data() from the idmap API
...
Michael
2010-08-14 02:10:35 +02:00
Michael Adam
0f91373156
s3:idmap: remove the remove_mapping method from API and backends
...
Michael
2010-08-14 02:10:34 +02:00
Andrew Bartlett
cba7f8b827
s3:dom_sid Global replace of DOM_SID with struct dom_sid
...
This matches the structure that new code is being written to,
and removes one more of the old-style named structures, and
the need to know that is is just an alias for struct dom_sid.
Andrew Bartlett
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-21 10:39:59 +02:00
Michael Adam
a15b666438
s3:winbind:idmap_tdb: don't check ranges when an invalid entry was found.
...
There is no point in checking the ranges this if the record found had an
invalid/unknown type: the mapping is not filled in. If it were initialized
to some defaults before, the check just might replace the status
NT_STATUS_INTERNAL_DB_ERROR with a NT_STATUS_NONE_MAPPED, which is not
as precise.
2010-05-17 11:45:31 +02:00
Volker Lendecke
3ea64e0ad8
s3: Replace most calls to sid_append_rid() by sid_compose()
2010-01-10 20:56:16 +01:00
Michael Adam
3acef09935
s3:winbind: use transaction store in idmap_tdb_set_hwm() to store new hwm.
...
Btw, the previous code must have failed to warn when exceeding the high_hwm,
because it overwrote hwm with the return value of the dbwrap_store_uint32(),
which does not return the hwm but 0 or -1, depending on success.
Michael
2009-07-29 16:26:27 +02:00
Michael Adam
e46e5d7d08
s3:winbind: fix typo in debug message in idmap_tdb.
...
Michael
2009-07-29 16:26:26 +02:00
Michael Adam
d289ed916b
s3:winbind: fix typo in debugmessage of idmap_tdb
...
Michael
2009-07-29 16:26:26 +02:00
Michael Adam
ded0ce8345
s3:dbwrap: change dbwrap_change_uint32_atomic() to return NTSTATUS not uint32_t.
...
Michael
2009-07-29 16:26:21 +02:00
Michael Adam
ca697a9e31
s3:idmap_tdb: add an entry debug statment to idmap_tdb_db_init()
...
Michael
2009-05-27 19:31:32 +02:00
Michael Adam
3d3f398382
s3:idmap_tdb: filter out of range mappings in default idmap config
...
This fixes bug #6415
Michael
2009-05-27 19:31:32 +02:00
Bo Yang
deb73e87b2
More fix to initialize idmap statuses
2009-03-02 15:51:55 -08:00
Michael Adam
9c626e37cf
s3:idmap_tdb: simplify talloc usage with temp context from talloc_stackframe
...
Michael
2009-02-06 10:20:07 +01:00
Michael Adam
77b4437b12
s3:idmap_tdb: refactor out new function idmap_tdb_load_ranges()
...
Michael
2009-02-06 10:20:06 +01:00
Michael Adam
e4035ab304
s3:idmap_tdb: use transactions in idmap_tdb_allocate_id()
...
Michael
2009-02-06 10:20:06 +01:00
Michael Adam
a9184d5c62
s3:idmap_tdb: add tmp talloc ctx to idmap_tdb_sid_to_id and remove an fstring
...
Michael
2009-02-06 10:20:06 +01:00
Michael Adam
f2224e53b2
s3:idmap: move IDMAP_VERSION to the idmap tdb backend, where it belogns.
...
Michael
2009-01-30 00:17:57 +01:00
Stefan Metzmacher
4feafd7c7b
s3:idmap_tdb: convert to the dbwrap api
...
metze
2009-01-19 17:06:41 +01:00
Steven Danneman
ce44a20323
Clean-up various trailing space and >80 column lines.
2008-11-18 17:06:22 -08:00
Steven Danneman
00c6271d5c
Added ability to remove id mappings in wbinfo and libwbclient.
...
The idmap_tdb backend already provides an interface to remove existing id
mappings. This commit plumbs that ability up through, winbindd, libwbclient,
and wbinfo.
Added new winbindd command:
WINBINDD_REMOVE_MAPPING
Added new libwbclient interfaces:
wbcRemoveUidMapping() and wbcRemoveGidMapping()
Added new wbinfo options:
--remove-uid-mapping
--remove-gid-mapping
Increased libwbclient version to 0.2
Increased winbind interface version to 20
2008-11-18 16:04:04 -08:00
Jelmer Vernooij
2d89b52be8
Use separate make variables for libutil and libcrypto.
2008-10-18 14:28:40 +02:00
Volker Lendecke
68fe1a1d86
Remove two unused variables
...
(This used to be commit 257b0401ee675b6b7eddf2b46a0f8115940e6640)
2008-08-12 11:59:13 +02:00
Volker Lendecke
2a3698e5c0
Remove "idmap alloc config : range" parameter
...
This was overwritten by "idmap uid/gid" anyway. These are now the range
parameters for the alloc backend.
(This used to be commit d563a7b80dc3e759069db2cd54d596a1b8c55191)
2008-08-12 11:28:29 +02:00
Volker Lendecke
340ab6a256
idmap rewrite
...
(This used to be commit 30a180f2fce8cf6a3e5548f6bba453272ba70b33)
2008-08-12 11:28:29 +02:00
Volker Lendecke
0439d4ba61
Revert "Fix nonempty whitespace only lines"
...
This reverts commit cc77db2acbc35cea58576f1e28c7a760a5e31609.
(This used to be commit ed5b516c2027d78011cdaa7cbbc01bb01e766381)
2008-07-11 17:53:25 +02:00