1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-14 01:57:53 +03:00

20 Commits

Author SHA1 Message Date
Gerald Carter
e026b84815 syncing up with HEAD again.... -
Jelmer Vernooij
d312e1c2b4 enum_domains shouldn't crash when there are no domains available -
Jelmer Vernooij
0c01219850 Fix bug in get_methods_by_name
Fix bug in enum_domains
Add samtest commands:
 - lookup_sid
 - lookup_name
 - enum_domains
 - lookup_domain
-
Jelmer Vernooij
50d2527eed - 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
-
Jelmer Vernooij
2fe72652ee 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.
-
Jelmer Vernooij
60ab55fedf Merge in first command for 'samtest'
Fix small bug in sam/interface.c
Make sam backend to default to a define
-
Jelmer Vernooij
56cb03bfc6 Patch from Stefan (metze) Metzmacher with more updates for the SAM subsystem -
Andrew Bartlett
4d642e1fa4 Fix some missing ; on the end of our SAM_ASSERT()... -
Andrew Bartlett
5f59abb410 Get our consts back in line with current norms - only for pointer protection.
Debate about extending this policy welcomed on samba-technical.

Andrew Bartlett
-
Andrew Bartlett
f91fcb1661 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.
-
Andrew Bartlett
e13bc43262 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
-
Jelmer Vernooij
b813761126 Several compiler warning fixes + fix dependencies samtest -
Jelmer Vernooij
06eb3138ab small fixes
make lp_sam_backend() a list
-
Jelmer Vernooij
61626340e5 Add plugin support for the sam system from metze (based on passdb code) -
Jelmer Vernooij
b742d068b8 Add new files to Makefile + typo fix -
Jelmer Vernooij
eafcc38704 Put in patch from metze (Stefan Metzmacher) to:
- Rename user -> account
- Add sam_* functions (api.c)
- Several small fixes
-
Jelmer Vernooij
6395c34f2f Silly of me to only test this with --with-sam and not without. Doh! -
Jelmer Vernooij
067ae5f810 Code style + typo fixes
Added Kai Krger to copyrightholders of interface.c
-
Jelmer Vernooij
4b7de5ee23 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
-
Andrew Bartlett
40fc43296d 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
-