amitay/samba.git
10 years agos3:idmap_ldap: re-implement allocate_id in idmap methods.
Michael Adam [Tue, 22 Jun 2010 12:49:00 +0000 (14:49 +0200)]
s3:idmap_ldap: re-implement allocate_id in idmap methods.

10 years agos3:idmap_tdb: add my (C)
Michael Adam [Thu, 17 Jun 2010 07:39:11 +0000 (09:39 +0200)]
s3:idmap_tdb: add my (C)

10 years agos3:idmap_tdb: properly initialize the idmap_tdb context with zero
Michael Adam [Tue, 22 Jun 2010 07:01:32 +0000 (09:01 +0200)]
s3:idmap_tdb: properly initialize the idmap_tdb context with zero

10 years agos3:idmap_tdb: prevent opening the idmap db more than once.
Michael Adam [Thu, 17 Jun 2010 07:35:52 +0000 (09:35 +0200)]
s3:idmap_tdb: prevent opening the idmap db more than once.

10 years agos3:idmap_tdb: rewrite sids_to_unixids to create mappings for unmapped sids.
Michael Adam [Thu, 17 Jun 2010 06:53:54 +0000 (08:53 +0200)]
s3:idmap_tdb: rewrite sids_to_unixids to create mappings for unmapped sids.

10 years agos3:idmap_tdb: add a idmap_tdb_new_mapping().
Michael Adam [Thu, 17 Jun 2010 06:44:04 +0000 (08:44 +0200)]
s3:idmap_tdb: add a idmap_tdb_new_mapping().

High level function to create a new mapping for an unmapped sid.
This builds logic that used to reside in the top level idmap code
in the backend. To be called inside a transaction to guarantee
atomicity of the operation.

10 years agos3:idmap_tdb: move the set_mapping code up
Michael Adam [Thu, 17 Jun 2010 06:43:11 +0000 (08:43 +0200)]
s3:idmap_tdb: move the set_mapping code up

10 years agos3:idmap_tdb: use transaction wrapper for idmap_tdb_set_mapping().
Michael Adam [Thu, 17 Jun 2010 06:35:28 +0000 (08:35 +0200)]
s3:idmap_tdb: use transaction wrapper for idmap_tdb_set_mapping().

10 years agos3:idmap_tdb: remove unused struct idmap_tdb_state.
Michael Adam [Thu, 17 Jun 2010 07:47:27 +0000 (09:47 +0200)]
s3:idmap_tdb: remove unused struct idmap_tdb_state.

10 years agos3:idmap_tdb: remove unused idmap_alloc_db
Michael Adam [Thu, 17 Jun 2010 06:17:39 +0000 (08:17 +0200)]
s3:idmap_tdb: remove unused idmap_alloc_db

10 years agos3:idmap_tdb: remove unused idmap_tdb_alloc_close().
Michael Adam [Thu, 17 Jun 2010 06:17:06 +0000 (08:17 +0200)]
s3:idmap_tdb: remove unused idmap_tdb_alloc_close().

10 years agos3:idmap_tdb: give idmap_domain arg to idmap_tdb_allocate_id and use ctx->db
Michael Adam [Thu, 17 Jun 2010 06:16:05 +0000 (08:16 +0200)]
s3:idmap_tdb: give idmap_domain arg to idmap_tdb_allocate_id and use ctx->db

instead of alloc_db

10 years agos3:idmap_tdb: call idmap_tdb_init_hwm() from idmap_tdb_open_db().
Michael Adam [Thu, 17 Jun 2010 06:12:43 +0000 (08:12 +0200)]
s3:idmap_tdb: call idmap_tdb_init_hwm() from idmap_tdb_open_db().

10 years agos3:idmap_tdb: move idmap_tdb_init_hwm up.
Michael Adam [Thu, 17 Jun 2010 06:11:19 +0000 (08:11 +0200)]
s3:idmap_tdb: move idmap_tdb_init_hwm up.

10 years agos3:idmap_tdb: remove unused idmap_tdb_load_ranges()
Michael Adam [Thu, 17 Jun 2010 06:07:40 +0000 (08:07 +0200)]
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.

10 years agos3:idmap_tdb: have idmap_tdb_open_db take an idmap_domain struct as argument
Michael Adam [Wed, 23 Jun 2010 08:53:29 +0000 (10:53 +0200)]
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.

10 years agos3:idmap_tdb: rename idmap_tdb_alloc_init->idmap_tdb_init_hwm and use db from idmap_t...
Michael Adam [Thu, 17 Jun 2010 05:56:46 +0000 (07:56 +0200)]
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

10 years agos3:idmap_tdb: move definition of struct idmap_tdb_context up.
Michael Adam [Thu, 17 Jun 2010 05:51:15 +0000 (07:51 +0200)]
s3:idmap_tdb: move definition of struct idmap_tdb_context up.

10 years agos3:idmap_tdb: remove filter_low_id,filter_high_id from idmap_tdb_context
Michael Adam [Thu, 17 Jun 2010 05:43:14 +0000 (07:43 +0200)]
s3:idmap_tdb: remove filter_low_id,filter_high_id from idmap_tdb_context

These are now taken from the idmap_domain struct.

10 years agos3:idmap_tdb: add idmap domain arg to idmap_tdb_upgrade and use domain range
Michael Adam [Thu, 17 Jun 2010 07:46:08 +0000 (09:46 +0200)]
s3:idmap_tdb: add idmap domain arg to idmap_tdb_upgrade and use domain range

10 years agos3:idmap_tdb: use filter from idmap_domain rather than from idmap_tdb_context
Michael Adam [Thu, 17 Jun 2010 05:42:00 +0000 (07:42 +0200)]
s3:idmap_tdb: use filter from idmap_domain rather than from idmap_tdb_context

10 years agos3:idmap_tdb: give idmap domain argument to idmap_tdb_sid_to_id
Michael Adam [Thu, 17 Jun 2010 05:35:28 +0000 (07:35 +0200)]
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.

10 years agos3:idmap_tdb: give idmap domain argument to idmap_tdb_id_to_sid
Michael Adam [Thu, 17 Jun 2010 05:32:12 +0000 (07:32 +0200)]
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.

10 years agos3:idmap_tdb: implement allocate_id in idmap methods for tdb backend
Michael Adam [Tue, 22 Jun 2010 12:41:31 +0000 (14:41 +0200)]
s3:idmap_tdb: implement allocate_id in idmap methods for tdb backend

10 years agos3:idmap_tdb: add idmap_tdb_get_new_id() to allocate a new id given a domain
Michael Adam [Wed, 16 Jun 2010 07:26:17 +0000 (09:26 +0200)]
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.

10 years agos3:idmap_tdb: convert idmap_tdb_allocate_id() to use transaction wrappers
Michael Adam [Wed, 16 Jun 2010 07:19:21 +0000 (09:19 +0200)]
s3:idmap_tdb: convert idmap_tdb_allocate_id() to use transaction wrappers

10 years agos3:idmap_tdb: remove an extra blank line
Michael Adam [Tue, 15 Jun 2010 07:12:49 +0000 (09:12 +0200)]
s3:idmap_tdb: remove an extra blank line

10 years agos3:idmap_tdb2: add my (C)
Michael Adam [Thu, 17 Jun 2010 07:39:24 +0000 (09:39 +0200)]
s3:idmap_tdb2: add my (C)

10 years agos3:idmap_tdb2: move idmap_tdb2_new_mapping() up. spare a prototype.
Michael Adam [Wed, 23 Jun 2010 09:30:56 +0000 (11:30 +0200)]
s3:idmap_tdb2: move idmap_tdb2_new_mapping() up. spare a prototype.

10 years agos3:idmap_tdb2: get rid of an extra variable in idmap_tdb2_db_init().
Michael Adam [Wed, 16 Jun 2010 07:31:53 +0000 (09:31 +0200)]
s3:idmap_tdb2: get rid of an extra variable in idmap_tdb2_db_init().

10 years agos3:idmap_tdb2: move idmap_tdb2_set_mapping() up to its _action callback.
Michael Adam [Thu, 17 Jun 2010 06:23:25 +0000 (08:23 +0200)]
s3:idmap_tdb2: move idmap_tdb2_set_mapping() up to its _action callback.

10 years agos3:idmap_tdb2: use the right talloc context for db_open in idmap_tdb2_open_db()
Michael Adam [Thu, 17 Jun 2010 06:04:53 +0000 (08:04 +0200)]
s3:idmap_tdb2: use the right talloc context for db_open in idmap_tdb2_open_db()

10 years agos3:idmap_tdb2: don't check whether sid is already mapped in idmap_tdb2_new_mapping().
Michael Adam [Wed, 16 Jun 2010 20:02:54 +0000 (22:02 +0200)]
s3:idmap_tdb2: don't check whether sid is already mapped in idmap_tdb2_new_mapping().

idmap_tdb2_new_mapping() is called from inside a transaction only
with sids, that have been verified not to be mapped directly before
that in the same transaction.

10 years agos3:idmap_tdb2: add the db_context to the idmap_tdb2_context
Michael Adam [Wed, 16 Jun 2010 15:40:12 +0000 (17:40 +0200)]
s3:idmap_tdb2: add the db_context to the idmap_tdb2_context

this removes the idmap_tdb2 global variable

10 years agos3:idmap_tdb2: talloc_zero (instead of talloc) the idmap_tdb2_context
Michael Adam [Wed, 16 Jun 2010 20:36:33 +0000 (22:36 +0200)]
s3:idmap_tdb2: talloc_zero (instead of talloc) the idmap_tdb2_context

10 years agos3:idmap_tdb2: rename idmap_tdb2_alloc_load -> idmap_tdb2_init_hwm
Michael Adam [Wed, 16 Jun 2010 15:30:07 +0000 (17:30 +0200)]
s3:idmap_tdb2: rename idmap_tdb2_alloc_load -> idmap_tdb2_init_hwm

10 years agos3:idmap_tdb2: move idmap_tdb2_alloc_load() up to reduce need for prototype
Michael Adam [Wed, 16 Jun 2010 15:28:34 +0000 (17:28 +0200)]
s3:idmap_tdb2: move idmap_tdb2_alloc_load() up to reduce need for prototype

10 years agos3:idmap_tdb2: remove unused idmap_tdb2_state and idmap_tdb2_load_ranges
Michael Adam [Wed, 16 Jun 2010 15:26:26 +0000 (17:26 +0200)]
s3:idmap_tdb2: remove unused idmap_tdb2_state and idmap_tdb2_load_ranges

10 years agos3:idmap_tdb2: give idmap_tdb2_alloc_load() and idmap domain arguemnt
Michael Adam [Wed, 16 Jun 2010 15:24:40 +0000 (17:24 +0200)]
s3:idmap_tdb2: give idmap_tdb2_alloc_load() and idmap domain arguemnt

and use the ranges from the idmap domain for checking the HWM values

10 years agos3:idmap_tdb2: add an idmap_domain struct argument to idmap_tdb2_open_db()
Michael Adam [Wed, 16 Jun 2010 15:21:27 +0000 (17:21 +0200)]
s3:idmap_tdb2: add an idmap_domain struct argument to idmap_tdb2_open_db()

10 years agos3:idmap_tdb2: remove filter_low_id and filter_high_id from idmap_tdb2_context
Michael Adam [Wed, 16 Jun 2010 15:31:52 +0000 (17:31 +0200)]
s3:idmap_tdb2: remove filter_low_id and filter_high_id from idmap_tdb2_context

Now these are taken from the idmap_domain struct.

10 years agos3:idmap_tdb2: don't parse config and fill filter_low_id and filter_high_id
Michael Adam [Wed, 16 Jun 2010 15:17:44 +0000 (17:17 +0200)]
s3:idmap_tdb2: don't parse config and fill filter_low_id and filter_high_id

into idmap_tdb2_context in idmap_tdb2_db_init().
Now these are taken from the idmap_domain struct instead.

10 years agos3:idmap_tdb2: honour the "idmap read only" flag in the tdb2 module.
Michael Adam [Tue, 1 Jun 2010 14:45:51 +0000 (16:45 +0200)]
s3:idmap_tdb2: honour the "idmap read only" flag in the tdb2 module.

Note that this will not prevent the idmap script from writing its
mappings to the database, but no new unix ids will be allocated via
the allocator and hence no new mappings will be autogenerated.

10 years agos3:idmap_tdb2: use range from idmap_domain in idmap_tdb2_allocate_id
Michael Adam [Wed, 16 Jun 2010 15:14:51 +0000 (17:14 +0200)]
s3:idmap_tdb2: use range from idmap_domain in idmap_tdb2_allocate_id

10 years agos3:idmap_tdb2: use filter from idmap_domain rather than from idmap_tdb2_context
Michael Adam [Wed, 16 Jun 2010 15:12:44 +0000 (17:12 +0200)]
s3:idmap_tdb2: use filter from idmap_domain rather than from idmap_tdb2_context

10 years agos3:idmap_tdb2: pass idmap_domain (not idmap_tdb2_context) to idmap_tdb2_sid_to_id
Michael Adam [Wed, 16 Jun 2010 15:06:17 +0000 (17:06 +0200)]
s3:idmap_tdb2: pass idmap_domain (not idmap_tdb2_context) to idmap_tdb2_sid_to_id

10 years agos3:idmap_tdb2: pass idmap_domain instead of idmap_tdb2_context to idmap_tdb2_unixids_...
Michael Adam [Wed, 16 Jun 2010 14:02:07 +0000 (16:02 +0200)]
s3:idmap_tdb2: pass idmap_domain instead of idmap_tdb2_context to idmap_tdb2_unixids_to_sids

The reason for this will become apparent later: The ranges are being moved to
the idmap_domain: They are universal.

10 years agos3:idmap_tdb2: also support idmap script for named domains
Michael Adam [Wed, 16 Jun 2010 13:49:30 +0000 (15:49 +0200)]
s3:idmap_tdb2: also support idmap script for named domains

this can be configured via "idmap config DOMAIN : script = foobar"

10 years agos3:idmap_tdb2: move the idmap script from idmap_tdb2_state to idmap_tdb2_context
Michael Adam [Wed, 16 Jun 2010 13:47:23 +0000 (15:47 +0200)]
s3:idmap_tdb2: move the idmap script from idmap_tdb2_state to idmap_tdb2_context

The state (aka idmap_tdb2_alloc_context) is being removed.
The (global) idmap script was wrong there anyways.
It belongs to the per-domain context.

10 years agos3:idmap_tdb2: remove use of idmap_tdb2_state from idmap_tdb2_allocate_id
Michael Adam [Wed, 16 Jun 2010 13:31:55 +0000 (15:31 +0200)]
s3:idmap_tdb2: remove use of idmap_tdb2_state from idmap_tdb2_allocate_id

idmap_tdb2_state should actually be called idmap_tdb2_alloc_context.
This is being removed as the idmap and allocation is moved together.
We use the idmap_tdb2_context * that is sitting in dom->private_data.
This contains the same ranges as those in the state anyways.
Later, when we can also allocate for named domains, this will become
necessary anyways.

10 years agos3:idmap_tdb2: move definition of struct idmap_tdb2_context up.
Michael Adam [Wed, 16 Jun 2010 13:31:05 +0000 (15:31 +0200)]
s3:idmap_tdb2: move definition of struct idmap_tdb2_context up.

10 years agos3:idmap_tdb2: open the db after loading the ranges in idmap_tdb2_db_init().
Michael Adam [Wed, 16 Jun 2010 13:08:16 +0000 (15:08 +0200)]
s3:idmap_tdb2: open the db after loading the ranges in idmap_tdb2_db_init().

10 years agos3:idmap_tdb2: add allocation of new mappings to idmap_tdb2_sids_to_unixids
Michael Adam [Thu, 29 Jul 2010 21:13:54 +0000 (23:13 +0200)]
s3:idmap_tdb2: add allocation of new mappings to idmap_tdb2_sids_to_unixids

This moves the new_mapping feature inside the tdb2 backend to make creations
of mappings atomic.

Note: The new internal function idmap_tdb2_get_new_id() that is used to allocate
a new unix id is prepared to function for multiple explicitly configured idmap
domains, but currently it does only work for the default domain. The extended
allocation support requires extension of the data base format to store multiple
counters (per domain). This will be added in a later step (TODO!).

10 years agos3:idmap_tdb2: re-implement allocated_id in idmap methods.
Michael Adam [Tue, 22 Jun 2010 12:47:11 +0000 (14:47 +0200)]
s3:idmap_tdb2: re-implement allocated_id in idmap methods.

10 years agos3:idmap: add idmap_unix_id_is_in_range() for checking an id against an idmap range
Michael Adam [Wed, 16 Jun 2010 14:59:26 +0000 (16:59 +0200)]
s3:idmap: add idmap_unix_id_is_in_range() for checking an id against an idmap range

10 years agos3:idmap: don't check range for passdb idmap domain
Michael Adam [Tue, 22 Jun 2010 14:29:13 +0000 (16:29 +0200)]
s3:idmap: don't check range for passdb idmap domain

10 years agos3:idmap: parse ranges and "read only" in idmap_init_domain().
Michael Adam [Wed, 16 Jun 2010 14:07:55 +0000 (16:07 +0200)]
s3:idmap: parse ranges and "read only" in idmap_init_domain().

10 years agos3:idmap: add a read_only flag to the idmap_domain struct.
Michael Adam [Thu, 29 Jul 2010 15:51:13 +0000 (17:51 +0200)]
s3:idmap: add a read_only flag to the idmap_domain struct.

This will be used to mark "allocating backends" (tdb, tdb2, ldap) read-only.

10 years agos3:idmap: add low_id and high_id to the idmap_domain struct
Michael Adam [Wed, 16 Jun 2010 14:05:34 +0000 (16:05 +0200)]
s3:idmap: add low_id and high_id to the idmap_domain struct

This global data will replace the backend-specific filter_low_id
and filter_high_id. The presence of a range is generic to all
idmap configs.

10 years agos3:docs: fix net manpage to reflect removal of net "idmap secret alloc" feature
Michael Adam [Mon, 31 May 2010 13:55:01 +0000 (15:55 +0200)]
s3:docs: fix net manpage to reflect removal of net "idmap secret alloc" feature

10 years agos3:net: remove the "net idmap secret alloc" functionality.
Michael Adam [Mon, 31 May 2010 13:00:38 +0000 (15:00 +0200)]
s3:net: remove the "net idmap secret alloc" functionality.

This is now not available any more, since allocation is moved
below the id mapping layer. The functionality could be
reintroduced on a per domain basis as an e.g
"net idmap secret <domain> alloc" command.

10 years agos3:docs: add documentation for new "idmap read only" parameter
Michael Adam [Fri, 30 Jul 2010 13:15:47 +0000 (15:15 +0200)]
s3:docs: add documentation for new "idmap read only" parameter

10 years agos3:loadparm: add new boolean parameter "idmap read only"
Michael Adam [Tue, 1 Jun 2010 13:35:01 +0000 (15:35 +0200)]
s3:loadparm: add new boolean parameter "idmap read only"

This will be used to be able to put the default idmap config
read only. This can make sense for instance with the tdb2
idmap backend and using the idmap script feature.

10 years agos3:docs: remove documentation of removed parameter "idmap alloc backend"
Michael Adam [Fri, 30 Jul 2010 13:01:37 +0000 (15:01 +0200)]
s3:docs: remove documentation of removed parameter "idmap alloc backend"

10 years agos3:loadparm: remove parameter "idmap alloc backend"
Michael Adam [Mon, 31 May 2010 13:53:27 +0000 (15:53 +0200)]
s3:loadparm: remove parameter "idmap alloc backend"

10 years agos3:idmap: remove unused definition of idmap_alloc_methods.
Michael Adam [Mon, 31 May 2010 09:56:55 +0000 (11:56 +0200)]
s3:idmap: remove unused definition of idmap_alloc_methods.

Allocation is now completely handled in the allocating backends.

10 years agos3:idmap: remove idmap_alloc_context from idmap.c
Michael Adam [Mon, 31 May 2010 09:55:18 +0000 (11:55 +0200)]
s3:idmap: remove idmap_alloc_context from idmap.c

The registering of alloc backends is being removed.
The idmap backends are responsible for initializing
their alloc code on their own if necessary.

No list of alloc backends is maintained any more in the top level.

10 years agos3:idmap: remove the alloc methods list from idmap.c
Michael Adam [Mon, 31 May 2010 09:47:04 +0000 (11:47 +0200)]
s3:idmap: remove the alloc methods list from idmap.c

The registering of alloc backends is being removed.
The idmap backends are responsible for initializing
their alloc code on their own if necessary.

No list of alloc backends is maintained any more in the top level.

10 years agos3:idmap: remove unused get_alloc_methods().
Michael Adam [Mon, 31 May 2010 09:45:58 +0000 (11:45 +0200)]
s3:idmap: remove unused get_alloc_methods().

10 years agos3:idmap: remove unused smb_register_idmap_alloc().
Michael Adam [Mon, 31 May 2010 09:44:44 +0000 (11:44 +0200)]
s3:idmap: remove unused smb_register_idmap_alloc().

The registering of alloc backends is being removed.
The idmap backends are responsible for initializing
their alloc code on their own if necessary.

10 years agos3:idmap_ldap: remove unused idmap_ldap_alloc_methods.
Michael Adam [Mon, 31 May 2010 09:41:05 +0000 (11:41 +0200)]
s3:idmap_ldap: remove unused idmap_ldap_alloc_methods.

10 years agos3:idmap_ldap: remoce unused idmap_alloc_ldap_init
Michael Adam [Mon, 31 May 2010 09:38:58 +0000 (11:38 +0200)]
s3:idmap_ldap: remoce unused idmap_alloc_ldap_init

10 years agos3:idmap_ldap: don't call idmap_alloc_ldap_init in idmap_ldap_init
Michael Adam [Mon, 31 May 2010 09:37:40 +0000 (11:37 +0200)]
s3:idmap_ldap: don't call idmap_alloc_ldap_init in idmap_ldap_init

The registering of alloc backends is being removed.
The idmap backends are responsible for initializing
their alloc code on their own if necessary.

10 years agos3:idmap_tdb: remove unused idmap_alloc_methods
Michael Adam [Mon, 31 May 2010 09:34:46 +0000 (11:34 +0200)]
s3:idmap_tdb: remove unused idmap_alloc_methods

10 years agos3:idmap_tdb: remove unused idmap_alloc_tdb_init()
Michael Adam [Mon, 31 May 2010 09:33:34 +0000 (11:33 +0200)]
s3:idmap_tdb: remove unused idmap_alloc_tdb_init()

10 years agos3:idmap_tdb: don't call idmap_alloc_tdb_init in idmap_tdb_init
Michael Adam [Mon, 31 May 2010 09:32:20 +0000 (11:32 +0200)]
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.

10 years agos3:idmap_tdb2: remove unused idmap_tdb2_alloc_init().
Michael Adam [Mon, 31 May 2010 09:29:00 +0000 (11:29 +0200)]
s3:idmap_tdb2: remove unused idmap_tdb2_alloc_init().

10 years agos3:idmap_tdb2: remove unused idmap_tdb2_alloc_close().
Michael Adam [Mon, 31 May 2010 09:28:02 +0000 (11:28 +0200)]
s3:idmap_tdb2: remove unused idmap_tdb2_alloc_close().

10 years agos3:idmap_tdb2: remove unused idmap_alloc_methods.
Michael Adam [Mon, 31 May 2010 09:27:18 +0000 (11:27 +0200)]
s3:idmap_tdb2: remove unused idmap_alloc_methods.

10 years agos3:idmap_tdb2: don't call smb_register_idmap_alloc() in idmap_tdb2_init
Michael Adam [Mon, 31 May 2010 09:24:52 +0000 (11:24 +0200)]
s3:idmap_tdb2: don't call smb_register_idmap_alloc() in idmap_tdb2_init

The registering of alloc backends is being removed.
The idmap backends are responsible for initializing
their alloc code on their own if necessary.

10 years agos3:idmap_tdb: make idmap_alloc_tdb_init() static.
Michael Adam [Mon, 31 May 2010 08:14:18 +0000 (10:14 +0200)]
s3:idmap_tdb: make idmap_alloc_tdb_init() static.

10 years agos3:idmap: remove unused idmap_alloc_init().
Michael Adam [Sun, 30 May 2010 22:27:23 +0000 (00:27 +0200)]
s3:idmap: remove unused idmap_alloc_init().

10 years agos3:idmap: use allocate_id() from the idmap_methods in idmap_allocate_unixid()
Michael Adam [Thu, 29 Jul 2010 21:20:21 +0000 (23:20 +0200)]
s3:idmap: use allocate_id() from the idmap_methods in idmap_allocate_unixid()

The idmap alloc methods are being removed.

10 years agos3:idmap: add an allocate_id method to the idmap_methods struct.
Michael Adam [Tue, 22 Jun 2010 12:31:24 +0000 (14:31 +0200)]
s3:idmap: add an allocate_id method to the idmap_methods struct.

The idmap_alloc_methods are being removed, but this single "alloc" method
is still needed for the samba-wide Unix-ID allocator, which is used in
group-mapping and ldapsam:editposix.
This method should ultimately also disappear.

10 years agos3:idmap: factor out common code of idmap_allocate_uid|gid()
Michael Adam [Sun, 30 May 2010 19:40:44 +0000 (21:40 +0200)]
s3:idmap: factor out common code of idmap_allocate_uid|gid()

into new idmap_allocate_unixid().

10 years agos3:idmap: remove the set_mapping method from the idmap API
Michael Adam [Wed, 19 May 2010 08:20:08 +0000 (10:20 +0200)]
s3:idmap: remove the set_mapping method from the idmap API

10 years agos3:idmap: remove idmap_new_mapping() - now implemented in the backends
Michael Adam [Thu, 20 May 2010 08:28:03 +0000 (10:28 +0200)]
s3:idmap: remove idmap_new_mapping() - now implemented in the backends

10 years agos3:idmap: add a debug message to idmap_sid_to_gid
Michael Adam [Sat, 15 May 2010 22:32:10 +0000 (00:32 +0200)]
s3:idmap: add a debug message to idmap_sid_to_gid

10 years agos3:idmap: add a debug message to idmap_sid_to_uid
Michael Adam [Sat, 15 May 2010 22:31:39 +0000 (00:31 +0200)]
s3:idmap: add a debug message to idmap_sid_to_uid

10 years agos3:idmap: don't call idmap_new_mapping idmap_sid_to_gid
Michael Adam [Fri, 14 May 2010 14:19:46 +0000 (16:19 +0200)]
s3:idmap: don't call idmap_new_mapping idmap_sid_to_gid

The setting of a new mapping is moved into the backend code
to achieve atomicity and greater flexibility.

Michael

10 years agos3:idmap: don't call idmap_new_mapping idmap_sid_to_unixid.
Michael Adam [Fri, 14 May 2010 14:18:16 +0000 (16:18 +0200)]
s3:idmap: don't call idmap_new_mapping idmap_sid_to_unixid.

The setting of a new mapping is moved into the backend code
to achieve atomicity and greater flexibility.

Michael

10 years agos3:winbind: increase interface version after removing calls
Michael Adam [Thu, 22 Jan 2009 17:05:20 +0000 (18:05 +0100)]
s3:winbind: increase interface version after removing calls

Michael

10 years agos3:idmap: remove unused method set_id_hwm from idmap API
Michael Adam [Thu, 22 Jan 2009 16:59:18 +0000 (17:59 +0100)]
s3:idmap: remove unused method set_id_hwm from idmap API

Michael

10 years agos3:idmap: remove unused alloc method get_id_hwm from idmap API
Michael Adam [Thu, 22 Jan 2009 16:56:19 +0000 (17:56 +0100)]
s3:idmap: remove unused alloc method get_id_hwm from idmap API

Michael

10 years agos3:idmap: remove unused method dump_data() from the idmap API
Michael Adam [Thu, 22 Jan 2009 14:52:34 +0000 (15:52 +0100)]
s3:idmap: remove unused method dump_data() from the idmap API

Michael

10 years agos3:idmap: remove the remove_mapping method from API and backends
Michael Adam [Thu, 22 Jan 2009 13:44:24 +0000 (14:44 +0100)]
s3:idmap: remove the remove_mapping method from API and backends

Michael

10 years agos3:idmap: remove unused idmap_remove_mapping().
Michael Adam [Thu, 22 Jan 2009 13:38:21 +0000 (14:38 +0100)]
s3:idmap: remove unused idmap_remove_mapping().

Michael

10 years agos4: remove REMOVE_MAPPING from wb_samba3_protocol
Michael Adam [Thu, 22 Jan 2009 13:36:51 +0000 (14:36 +0100)]
s4: remove REMOVE_MAPPING from wb_samba3_protocol

Michael

10 years agos3:winbind: remove the method REMOVE_MAPPING from winbind's API
Michael Adam [Thu, 22 Jan 2009 13:34:50 +0000 (14:34 +0100)]
s3:winbind: remove the method REMOVE_MAPPING from winbind's API

Michael

10 years agos3:idmap: remove unused idmap_set_mapping().
Michael Adam [Thu, 22 Jan 2009 13:31:55 +0000 (14:31 +0100)]
s3:idmap: remove unused idmap_set_mapping().

Michael