1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-07 17:18:11 +03:00
Commit Graph

158 Commits

Author SHA1 Message Date
Simo Sorce
162683d2b5 correct init for vfs.conn, thanks Stefan 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
5de622968d Add -V option (to print out version) to utilities where possible
(pdbedit already has a -V option..)
0001-01-01 00:00:00 +00:00
Andrew Bartlett
ce52f1c2ed Antti Andreimann <Antti.Andreimann@mail.ee> has done some changes to enable
users w/o full administrative access on computer accounts to join a
computer into AD domain.

The patch and detailed changelog is available at:
http://www.itcollege.ee/~aandreim/samba

This is a list of changes in general:

1. When creating machine account do not fail if SD cannot be changed.
   setting SD is not mandatory and join will work perfectly without it.
2. Implement KPASSWD CHANGEPW protocol for changing trust password so
   machine account does not need to have reset password right for itself.
3. Command line utilities no longer interfere with user's existing
   kerberos ticket cache.
4. Command line utilities can do kerberos authentication even if
   username is specified (-U). Initial TGT will be requested in this case.

I've modified the patch to share the kinit code, rather than copying it,
and updated it to current CVS.  The other change included in the original patch
(local realms) has been left out for now.

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Jeremy Allison
b031e81f4f Fixup delete on close torture.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
45d4e58ca5 Samba janitors: applying mbp's redundant umask fix.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
510cd30a6e Got complete (I hope) coverage of the OPEN TRUNCATE ATTRIBUTES test.
Now to make Samba pass it :-).
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
fdc14aa6f6 Added first part of attribute matrix tests. Not run and compiled in right now...
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Bartlett
fe1cc779d5 Fix a number of client-side fstring/pstring mixups.
Andrew Bartlett
0001-01-01 00:00:00 +00:00
Andrew Bartlett
92a777d0ea BIG patch...
This patch makes Samba compile cleanly with -Wwrite-strings.
 - That is, all string literals are marked as 'const'.  These strings are
always read only, this just marks them as such for passing to other functions.

What is most supprising is that I didn't need to change more than a few lines of code (all
in 'net', which got a small cleanup of net.h and extern variables).  The rest
is just adding a lot of 'const'.

As far as I can tell, I have not added any new warnings - apart from making all
of tdbutil.c's function const (so they warn for adding that const string to
struct).

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Jeremy Allison
784d15761c Finish adding strings to all talloc_init() calls.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
842e08e52a Forward port the change to talloc_init() to make all talloc contexts
named. Ensure we can query them.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
41b56d975b Please compile with :
-g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual
if you're using gcc. It really does help !
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
657aa857a5 Added HIDDEN/NORMAL attribute test.
Jeremy.
0001-01-01 00:00:00 +00:00
Jim McDonough
163ac34401 Fix the build.
Build farm! Build farm!  Please check the build farm!

...or at least run make torture.
0001-01-01 00:00:00 +00:00
Jim McDonough
51e0f5c2dd Fix build. Extra parm was added to cli_full_connection, but not in locktest2.c. 0001-01-01 00:00:00 +00:00
Simo Sorce
738b9237ed forgot some bits from previous rpc_secdesc.h rework patch 0001-01-01 00:00:00 +00:00
Andrew Bartlett
ace7738e12 Fix the compile issue in bin/samtest, and make the 'system' token just have the
System sid.  This avoids comparing with ACEs that we don't yet support in the
ADS Domain security descriptor.
0001-01-01 00:00:00 +00:00
Andrew Bartlett
b9036900d0 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
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
b01c55ed5b Fix 'plugin' command 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
9d529256c5 Patch from metze to fix enum_accounts 0001-01-01 00:00:00 +00:00
Andrew Bartlett
24fb0cde2f 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
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
ee3b497962 notify user when no {domains,accounts} were found 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
81156d6556 Add samtest command 'enum_accounts' + few typo fixes in sam/interface.c 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
e969b18972 add samtest commands:
- show_domain
 - context
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
70d9b71cea remove extern for AllowDebugChange since we don't use it 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
779aea5745 Fix debuglevel command-line argument 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
237883d1e6 samtest should load smb.conf by default
add command-line option to samtest to specify alternate config file - use /dev/null
to don't load any config file..
add 'conf' command to load specified config file
0001-01-01 00:00:00 +00:00
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
0001-01-01 00:00:00 +00:00
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
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
f1021cbc55 Add framework for samtest commands 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
60ab55fedf Merge in first command for 'samtest'
Fix small bug in sam/interface.c
Make sam backend to default to a define
0001-01-01 00:00:00 +00:00
Jeremy Allison
3c9d24d7c3 Added final Steve French patch for "required" attributes with old
dir listings. Added regression test in smbtorture (in HEAD) also.
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
a4351a3923 initial mem_ctx to NULL
patch from metze
0001-01-01 00:00:00 +00:00
Jeremy Allison
e9392c4a2e Correct error message.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
4e836c4ce2 Better error reporting on OPEN test.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
4eeef6ef53 Added attribute specific OPEN tests (for SYSTEM and HIDDEN).
Jeremy.
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
0428eb422b Correct popt argument info in vfstest
Don't use global_ctx in samtest.c
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
355d28d9ea Use popt for printing --help message 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
b1e1d54803 Don't use global memory context 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
7904770d34 Adding samtest utility used to test sam backends. Compiles but doesn't do
anything (yet). Requires move from samr_make_sam_obj_sd to lib/
0001-01-01 00:00:00 +00:00
Simo Sorce
5246d3693c if muhammad does not go to the mountain ... 0001-01-01 00:00:00 +00:00
Simo Sorce
233b14f447 implemented lock and mknod
addedd to vfstest the possibility to read a file to imput a stream of commands
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
e0c61b3105 some fixes 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
20f1765c32 Remove unused variables 0001-01-01 00:00:00 +00:00
Simo Sorce
bac73fa972 make IRIX happy 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
9b4deb1e0f Add 'conf' command to load different smb.conf files 0001-01-01 00:00:00 +00:00
Simo Sorce
4280300d80 O_NOFOLLOW does not exist on solaris 8 ?? 0001-01-01 00:00:00 +00:00
Andrew Tridgell
2307869798 nicer locking timeout test 0001-01-01 00:00:00 +00:00
Simo Sorce
751d057713 improvements and bugfix
open calls now understands flags and mode
bug on read
0001-01-01 00:00:00 +00:00
Simo Sorce
42ae5eb826 A new utility to test VFS system and modules
Just now it is acommandline tool like smbclient and rpcclient that is able to
perform operations on the file system passing through the vfs layer

It is not complete yet, some functions have simply faked up data, but module
loading works yet and basic operations too.

Thanks to Eric Lorimer for helping out with the initial setup.

Simo.
0001-01-01 00:00:00 +00:00