Christof Schmitt
c07c167edb
s3-winbindd: Move idmap_fetch_secret to idmap_utils.c for reuse
...
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2013-03-09 06:30:22 +01:00
Christof Schmitt
86d09ce779
s3-winbindd: Move common code for LDAP id mapping to idmap_utils
...
idmap_ad and idmap_ldap use the same helper functions and the same
maximum query size. Move the code to idmap_utils so that it can be
shared by every module issuing LDAP queries.
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2013-03-09 06:30:22 +01:00
Alexander Bokovoy
140bb288be
s3-smbldap: use smbldap_ prefixed functions
2012-09-07 12:31:42 +02:00
Jeremy Allison
526e875cec
Check error returns from strupper_m() (in all reasonable places).
2012-08-09 12:06:54 -07:00
Rusty Russell
fe72740e82
loadparm: make the source3/ lp_ functions take an explicit TALLOC_CTX *.
...
They use talloc_tos() internally: hoist that up to the callers, some
of whom don't want to us talloc_tos().
A simple patch, but hits a lot of files.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2012-07-18 15:07:23 +09:30
Günther Deschner
65e2944c67
s3-smbldap: extend smbldap_init() with binddn/bindsecret arguments.
...
Guenther
2011-11-16 12:26:26 +01:00
Günther Deschner
8312ee1367
s3-passdb: split out passdb/pdb_ldap_schema.c
...
Guenther
2011-11-16 12:26:26 +01:00
Andrew Bartlett
ad0a07c531
s3-talloc Change TALLOC_ZERO_P() to talloc_zero()
...
Using the standard macro makes it easier to move code into common, as
TALLOC_ZERO_P isn't standard talloc.
2011-06-09 12:40:08 +02:00
Michael Adam
74cd06b3df
s3:idmap_ldap: allow creation of ldap stored mappings for explicitly configured domains.
...
After the preparations, this is achieved by using idmap_ldap_allocate_id_internal()
as get_new_id rw method instead of idmap_ldap_allocate_id().
2011-06-01 01:43:23 +02:00
Michael Adam
dea3ef1ab6
s3:idmap_ldap: rename idmap_ldap_get_new_id to idmap_ldap_allocate_id
...
This is in preparation of allowing allocating ldap based domain-specific configs.
2011-06-01 01:43:23 +02:00
Michael Adam
2de65b97b9
s3:idmap_ldap: rename idmap_ldap_allocate_id to idmap_ldap_allocate_id_internal
...
This is in preparation of allowing allocating ldap based domain-specific configs.
2011-06-01 01:43:23 +02:00
Michael Adam
82853a613b
s3:idmap: remove the params argument from the init function
2011-03-22 22:49:56 +01:00
Michael Adam
98854207fe
s3:idmap: remove special treatment of domain "*" from idmap_ldap_init.
...
The default config via domain "*" is now treated just as the explicit
domain configs.
2011-03-22 22:49:56 +01:00
Michael Adam
7511f080b4
s3:idmap: remove use of params from idmap_ldap_init - it is not used any more
2011-03-22 22:49:56 +01:00
Michael Adam
0726b29e59
s3:idmap_ldap: fix a few typos in a comment
...
and use the chance to reformat the comment properly...
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Fri Mar 11 01:29:09 CET 2011 on sn-devel-104
2011-03-11 01:29:09 +01:00
Volker Lendecke
233c8bca3b
s3: Remove close_fn from idmap_methods
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Mar 6 13:37:13 CET 2011 on sn-devel-104
2011-03-06 13:37:13 +01:00
Volker Lendecke
1bf29c7acf
s3-idmap-ldap: private_data is a talloc child of dom
2011-03-06 12:51:02 +01:00
Michael Adam
2d3a8b196f
s3:idmap_ldap: remove special handling of alloc secret (not used any more).
2011-01-02 12:51:54 +01:00
Michael Adam
52b37de5d8
s3:idmap_ldap: remove unused idmap_ldap_alloc_context.
2011-01-02 12:51:54 +01:00
Michael Adam
91e7430817
s3:idmap_ldap: remove alloc context member from ldap_idmap_context
2011-01-02 12:51:54 +01:00
Michael Adam
5908bd62b5
s3:idmap_ldap: remove use of alloc context from idmap_ldap_allocate_id().
2011-01-02 12:51:54 +01:00
Michael Adam
510bf2d591
s3:idmap_ldap: remove unused idmap_ldap_alloc_close_destructor().
2011-01-02 12:51:54 +01:00
Michael Adam
f83fa1ec20
s3:idmap_ldap: remove unused idmap_ldap_alloc_init().
2011-01-02 12:51:54 +01:00
Michael Adam
632e232fc4
s3:idmap_ldap: don't call idmap_ldap_alloc_init in idmap_ldap_init.
...
Call verify_idpool() instead.
2011-01-02 12:51:54 +01:00
Michael Adam
58508c9726
s3:idmap_ldap: remove use of the ldap_idmap_alloc_context from verify_idpool().
...
Allocation is now subsumed in the idmap ldap config.
This is the beginning of the removal of the idmap ldap alloc parameters.
2011-01-02 12:51:54 +01:00
Andrew Bartlett
f768b32e37
libcli/security Provide a common, top level libcli/security/security.h
...
This will reduce the noise from merges of the rest of the
libcli/security code, without this commit changing what code
is actually used.
This includes (along with other security headers) dom_sid.h and
security_token.h
Andrew Bartlett
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Tue Oct 12 05:54:10 UTC 2010 on sn-devel-104
2010-10-12 05:54:10 +00:00
Günther Deschner
4dbd743e46
s3-util_sid: use shared dom_sid_compare_auth and dom_sid_equal_X functions.
...
Guenther
2010-09-20 14:04:37 -07:00
Günther Deschner
2b41f421fd
s3-idmap: only include idmap headers where needed.
...
Guenther
2010-08-26 00:20:29 +02:00
Michael Adam
a739cb5944
s3:idmap_ldap: use idmap_rw_new_mapping in idmap_ldap_new_mapping
2010-08-14 02:10:57 +02:00
Michael Adam
a7ba9064d6
s3:idmap_ldap: add idmap_rw_ops to idmap_ldap_context and init in db_init()
2010-08-14 02:10:57 +02:00
Michael Adam
a896ba07bb
s3:idmap_ldap: add my (C)
2010-08-14 02:10:54 +02:00
Michael Adam
58cb5163f2
s3:idmap_ldap: create mappings for unmapped sids in idmap_ldap_sids_to_unixids()
2010-08-14 02:10:54 +02:00
Michael Adam
26c82596d9
s3:idmap_ldap: add a idmap_ldap_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.
2010-08-14 02:10:54 +02:00
Michael Adam
4ed6f315d9
s3:idmap_ldap: add idmap_ldap_get_new_id() to allocate a new id given a domain
...
Currently this only works with the default domain, calling out
to idmap_ldap_allocate_id(). In the future this will be extended
to also work for non-default domains.
2010-08-14 02:10:54 +02:00
Michael Adam
5f77570bb6
s3:idmap_ldap: move idmap_ldap_set_mapping() further up.
2010-08-14 02:10:53 +02:00
Michael Adam
3e71eaeca0
s3:idmap_ldap: make idmap_ldap_alloc_context a member of idmap_ldap_context
...
this hides this beneath the idmap structure and removes a global variable
2010-08-14 02:10:53 +02:00
Michael Adam
523b94f180
s3:idmap_ldap: call idmap_ldap_alloc_init from idmap_ldap_init.
...
The alloc subsystem is now subordinate to the idmap system.
2010-08-14 02:10:53 +02:00
Michael Adam
c854261867
s3:idmap_ldap: remove the (now unused) range from idmap_ldap_alloc_context
2010-08-14 02:10:53 +02:00
Michael Adam
3f39921e7e
s3:idmap_ldap: use ranges from idmap domain in idmap_ldap_allocate_id()
...
Second step in removing the idmap range from the idmap_ldap_alloc_context.
2010-08-14 02:10:53 +02:00
Michael Adam
5518bcb840
s3:idmap_ldap: add idmap_domain arg to idmap_ldap_alloc_init and verify_idpool
...
First step in removing idmap ranges from the idmap_ldap_alloc_context.
The range from the domain is to be used now.
2010-08-14 02:10:53 +02:00
Michael Adam
1cf27374ab
s3:idmap_ldap: remove unused filter range from struct idmap_ldap_context
2010-08-14 02:10:53 +02:00
Michael Adam
5bb4a94c6c
s3:idmap_ldap: don't load ranges - they have been loaded into struct idmap_domain
2010-08-14 02:10:52 +02:00
Michael Adam
634cd2e045
s3:idmap_ldap: use filter range from idmap domain, not idmap_ldap_context
2010-08-14 02:10:52 +02:00
Michael Adam
3a5f86216b
s3:idmap_ldap: re-implement allocate_id in idmap methods.
2010-08-14 02:10:52 +02:00
Michael Adam
f96575d6db
s3:idmap_ldap: remove unused idmap_ldap_alloc_methods.
2010-08-14 02:10:39 +02:00
Michael Adam
0369eb5555
s3:idmap_ldap: remoce unused idmap_alloc_ldap_init
2010-08-14 02:10:39 +02:00
Michael Adam
0dfe400d64
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.
2010-08-14 02:10:39 +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