1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-04 05:18:06 +03:00
Commit Graph

48 Commits

Author SHA1 Message Date
Simo Sorce
1eda5b4987 some more debugging in case of failure
(This used to be commit 9374f8692f)
2003-04-08 10:46:46 +00:00
Simo Sorce
df883f35b2 fix commit
(This used to be commit ad1a2ab0d6)
2003-04-06 16:01:18 +00:00
Simo Sorce
0ac2b38001 This commit make winbindd copy winbindd_idmap.tdb into idmap.tdb on the
first run if idmap.tdb is not found, and then eventually convert it to the
new format.
This is done to unify winbind and idmap databases and to make a backup of
winbindd_idmap.tdb in case you want to downgrade (of course it will not be
updated).
This is needed because idmap.tdb contains also local mappings, not only
foreign domains mappings.

Added some other fixes/improvements

Simo.
(This used to be commit cf17261519)
2003-04-06 09:35:16 +00:00
Simo Sorce
2c1f725820 some more idmapping :)
(This used to be commit 5ac94535d7)
2003-04-05 08:53:23 +00:00
Tim Potter
4af8e4a6a3 Fixed compiler warning.
(This used to be commit 9c706be7b4)
2003-04-04 00:28:38 +00:00
Simo Sorce
a557af96e9 THE Idmap patch :-)
includes a --with-idmap=no switch to disable idmap usage if you find
problems.

cosmetic fixes and param aliases to separate winbind from idamp roles.

A temporarily remote idmap winbind compatibility backend.
As I have time I will further change code to not call directly winbind
(partly done but not tested) and a specilized module will be built in place
for the current glue hack.

The patch has been tested locally in my limited time, the patch is simple and
clear and should not reserve problems, if any just disable it.

As usual, comments and fisex are welcome :-)

Simo.
(This used to be commit 0278132047)
2003-04-02 10:36:02 +00:00
Jelmer Vernooij
22e62916d8 - Use FUNCTION_MACRO, not __FUNCTION__.
- Add some const
(This used to be commit e149e70717)
2003-03-22 23:25:44 +00:00
Simo Sorce
bebdbcd248 more on idmap
two layers structure with
- local tdb cache
- remote idmap repository

compiles
(This used to be commit 8fb4e210bc)
2003-03-08 17:29:40 +00:00
Simo Sorce
4a1d2ddd48 some more code
(not tested yet)
(This used to be commit 0d6cec90c1)
2003-03-08 00:49:18 +00:00
Simo Sorce
64e49aa3c5 initial work for the new idmpa interface
(This used to be commit 8338e74ac4)
2003-03-07 23:47:59 +00:00
Simo Sorce
8a751c019c Some progress towards gums and tdbsam2
genparser works fine, and it is a marvelous tool to store objects in tdb :)
(This used to be commit 4c6d461a85)
2003-03-07 18:26:24 +00:00
Simo Sorce
5bee95239b some more work on gums.
- Building a tdbsam2 backend to see what I got right and what not about the proposed API
- Corrections to API based on tdbsam2 work
(This used to be commit 54f11b7de8)
2002-12-28 13:42:54 +00:00
Jeremy Allison
0fdf60f051 Finish adding strings to all talloc_init() calls.
Jeremy.
(This used to be commit 784d15761c)
2002-12-23 23:53:56 +00:00
Jeremy Allison
b95b82b798 talloc_init_named -> talloc_init.
Jeremy.
(This used to be commit 20a44d4cf1)
2002-12-22 16:02:36 +00:00
Simo Sorce
48fb7b090e updates to the gums
introduce genparser will be used by tdbsam2
(This used to be commit 831d3d1ec7)
2002-12-16 12:11:02 +00:00
Tim Potter
bb2aa240de Remove FILE_MACRO as __FILE__ is ANSI C.
(This used to be commit 2a9d183cf6)
2002-12-04 23:57:15 +00:00
Herb Lewis
73bf5369b8 use FILE_MACRO instead of __FILE__
use FUNCTION_MACRO instead of __FUNCTION_
(This used to be commit 243763d6eb)
2002-12-03 21:49:00 +00:00
Simo Sorce
c166b812a9 Some was asking to look at this code, so better it stay there until we decide what to do with it.
Last updates are support for the right way to support privileges.

Simo.
(This used to be commit cae9074405)
2002-10-22 16:10:45 +00:00
Jelmer Vernooij
a3c4b4cef6 Sync with metze's CVS tree
(This used to be commit 2a598d435d)
2002-10-21 15:36:51 +00:00
Jelmer Vernooij
fe0d3de7f2 Don't use SAM FLAGS from smb.h since they're gone - patch from metze
(This used to be commit 82a0abf4c8)
2002-10-14 21:40:45 +00:00
Simo Sorce
650e0274a1 try to put every security descriptors related definitions in the same file.
also try to uniform names to a clean scheme.

first part.
(This used to be commit a123e05877)
2002-10-06 23:53:34 +00:00
Jelmer Vernooij
4cf8157ee9 strchr -> strrchr
(This used to be commit 598039599c)
2002-10-02 14:58:54 +00:00
Andrew Bartlett
df316e3cd9 Remove sam/api.c.
In order to reduce complexity, this patch removes the upper layer of the SAM
API.  Also, we remove the function pointers on the sam context - there really
is no point making these replaceable - that's for the modules.

Move a number of functions in include/interface.c around to allow for use of
'static' and to keep the external API in one chunk, at the bottem.  All these
functions were renamed to remove the context_sam -> sam

Consequential changes in the samtest module, and back out metze's change for
ACB filtering, becouse I think it belongs in the SAM backeds.  (But I will take
debate on this one).

Changes to the lib/util_sid.c code to create a 'system' token, and make it a
SAM_ASSERT() enforced requirement to have a token on those calls that specify
it.  samtest now uses this.

We should have a samtest call to set your own token.

We also need to extend our se_access code to cover the things that Win2k is
returning in it's access tokens.  Currently our system token doesn't pass, due
to unexpected flags.  (When running sam_ads against Win2k)

Andrew Bartlett
(This used to be commit b9036900d0)
2002-09-29 06:07:58 +00:00
Andrew Bartlett
a89ecb9bc8 Updates for sam_ads by metze - add the start of domain policy searching, and a
small fix for the previous merge.

Andrew Bartlett
(This used to be commit 85122800fc)
2002-09-29 01:01:44 +00:00
Jelmer Vernooij
af2ab48c4a Fix typos + report FIXME
(This used to be commit 470a131632)
2002-09-28 22:54:16 +00:00
Andrew Bartlett
120e385417 Back out one of the API changes, now I recall how it was meant to work.
(New accounts are created on thier internal talloc context, not a supplied one
and not the one beloning to the SAM)

Also actaully add the sam_skel to the tree.

I need to work out with Jelmer an appropriate way to ensure we still have an
example external build, and if this should move back out again.

Andrew Bartlett
(This used to be commit dc8b0d23e0)
2002-09-28 14:26:19 +00:00
Andrew Bartlett
8b197158c9 Add the beginings of sam_ads to the tree.
This module, primarilly the work of "Stefan (metze) Metzmacher"
<metze@metzemix.de>, uses the Active Directory schema to store the
user/group/other information.  I've been testing it against a real AD server,
and it is intended to work with OpenLDAP as well.

I've moved a few functions around in our other libads code, which has made it
easier to tap into that existing code.

Also, I've made some changes to the SAM interface, I hope there are not too
many objections...   To ensure we don't get silly bugs in the skel module, it
is now in the default compile.  This way you should not forget to update it :-)

Andrew Bartlett
(This used to be commit 24fb0cde2f)
2002-09-28 12:27:04 +00:00
Jelmer Vernooij
6fa655c039 Fix segfault in sam_context_enum_domains - reported by Kai
(This used to be commit 1430473d3f)
2002-09-26 15:20:11 +00:00
Jelmer Vernooij
07d7643a6e Add samtest command 'enum_accounts' + few typo fixes in sam/interface.c
(This used to be commit 81156d6556)
2002-09-25 17:10:58 +00:00
Jelmer Vernooij
a3eb2684c3 enum_domains shouldn't crash when there are no domains available
(This used to be commit d312e1c2b4)
2002-09-24 21:29:33 +00:00
Jelmer Vernooij
529848e988 Fix bug in get_methods_by_name
Fix bug in enum_domains
Add samtest commands:
 - lookup_sid
 - lookup_name
 - enum_domains
 - lookup_domain
(This used to be commit 0c01219850)
2002-09-24 21:18:22 +00:00
Jelmer Vernooij
2cd64003e3 - Don't put pointer to sam_domain_handle in sam_methods but single domainsid and domainname
- Allocate sam_methods, set domain_sid, domain_name and backend_name in make_sam_methods_backend_entry instead of in the backend
- Remove sam_context and domain_sid pointers from the sam_init_function - we don't need those arguments anymore since they're
  available in sam_methods as well
(This used to be commit 50d2527eed)
2002-09-24 20:18:39 +00:00
Jelmer Vernooij
8322448c40 Move functionality to check whether entries for lp_workgroup() and "BUILTIN"
exist and add them if necessary from check_correct_backend_entries into
sam_context_check_default_backends. The reason for this is that we don't
always want to have BUILTIN and lp_workgroup() in a sam_context, for example
when doing sam2sam. check_correct_backend_entries has been renamed to
'check_duplicate_backend_entries' since that's what it currently does.

The sam_context_check_default_backends() function is only called
by sam_get_static_context(BOOL reload) currently currently.
(This used to be commit 2fe72652ee)
2002-09-19 17:40:55 +00:00
Jelmer Vernooij
1244410cc4 Merge in first command for 'samtest'
Fix small bug in sam/interface.c
Make sam backend to default to a define
(This used to be commit 60ab55fedf)
2002-09-19 15:39:00 +00:00
Jelmer Vernooij
8a5abe4dbe Patch from Stefan (metze) Metzmacher with more updates for the SAM subsystem
(This used to be commit 56cb03bfc6)
2002-09-08 14:58:23 +00:00
Andrew Bartlett
94d6c0e895 Fix some missing ; on the end of our SAM_ASSERT()...
(This used to be commit 4d642e1fa4)
2002-09-06 13:21:54 +00:00
Andrew Bartlett
29e092d4e0 Get our consts back in line with current norms - only for pointer protection.
Debate about extending this policy welcomed on samba-technical.

Andrew Bartlett
(This used to be commit 5f59abb410)
2002-09-06 13:17:55 +00:00
Andrew Bartlett
6c8e4faba1 Updates to sam_skel from metze, add sam/group.c and add a DEBUG() to the
SAM_ASSERT if we are not going to crash.
(This used to be commit f91fcb1661)
2002-09-06 13:00:37 +00:00
Andrew Bartlett
68defac58d This commit includes part of the patch from metze posted to the list, and a few
of my own changes.

In particular:  I've added a SAM_ASSERT macro.  This expands to either
SMB_ASSERT() (which should help us track down bugs) or a return of
NT_STATUS_CHECK_FAIL.

Metze's changes are mostly to bring the code into line with current discussions
on things like adding users/groups, flags etc.

I've adjusted a fair bit of the 'const' in the SAM stuff.  Const is currently
used only for pointers, not for local variables or non-pointer paramters.  The
benifits and reasons for extending this further need discussion on
samba-technical.

Also, some of the 'context' paramters should not be const, to allow backend
modules to do fancy caching etc in them.

Andrew Bartlett
(This used to be commit e13bc43262)
2002-09-06 12:57:12 +00:00
Jelmer Vernooij
337693457a Several compiler warning fixes + fix dependencies samtest
(This used to be commit b813761126)
2002-08-29 09:42:36 +00:00
Jelmer Vernooij
558297b703 small fixes
make lp_sam_backend() a list
(This used to be commit 06eb3138ab)
2002-08-29 09:20:49 +00:00
Jelmer Vernooij
d1052ec979 Add plugin support for the sam system from metze (based on passdb code)
(This used to be commit 61626340e5)
2002-08-29 07:35:18 +00:00
Jelmer Vernooij
7a8b82f2ce Add new files to Makefile + typo fix
(This used to be commit b742d068b8)
2002-08-29 07:22:52 +00:00
Jelmer Vernooij
fe518a828b Put in patch from metze (Stefan Metzmacher) to:
- Rename user -> account
- Add sam_* functions (api.c)
- Several small fixes
(This used to be commit eafcc38704)
2002-08-29 07:19:05 +00:00
Jelmer Vernooij
97a957107d Silly of me to only test this with --with-sam and not without. Doh!
(This used to be commit 6395c34f2f)
2002-08-28 07:51:07 +00:00
Jelmer Vernooij
bbbf21310f Code style + typo fixes
Added Kai Krger to copyrightholders of interface.c
(This used to be commit 067ae5f810)
2002-08-28 05:55:08 +00:00
Jelmer Vernooij
2b2b0f7119 Put in intermediate version of new SAM system. It's not stable yet, code
might be ugly, etc - please don't blame me for anything but instead try to fix
the code :-). Compiling of the new sam system can be enabled with the
configure option --with-sam

Removing passdb/passgrp.c as it's unused
fix typo in utils/testparm.c
(This used to be commit 4b7de5ee23)
2002-08-28 04:54:43 +00:00
Andrew Bartlett
70eaa4233f Add the current working document on the interface to the tree that we have
*somthing* in the directory.  (Stops cvs update -P eating it).

This is the combined effort of many from #samba-technical, kai, metze,
ctrlsoft, idra and abartlet in particular.  It will no doubt change :-)

Andrew Bartlett
(This used to be commit 40fc43296d)
2002-07-31 12:53:56 +00:00