1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-11 00:23:51 +03:00
Commit Graph

180 Commits

Author SHA1 Message Date
Andrew Tridgell
266fd2751c r4898: - removed the unused wins_srv_*() code
- expanded the generic async name resolver to try multiple methods

- added wins resolutions to the list of methods tried

- fixed up the random trn id generation to use the good random generator
2007-10-10 13:09:04 -05:00
Andrew Tridgell
520cff73c6 r4817: ccache was being made ineffective on all the build farm machines
because the version number was being auto-updated and included in all
C files. With this change it is only included where needed.
2007-10-10 13:08:59 -05:00
Stefan Metzmacher
5287ec0818 r4725: make "password server" a string list
metze
2007-10-10 13:08:48 -05:00
Stefan Metzmacher
b6543a6e30 r4650: - make more use of bitmap and enum's
- move some structs out of misc.idl

metze
2007-10-10 13:08:39 -05:00
Andrew Tridgell
89b74b5354 r4549: got rid of a lot more uses of plain talloc(), instead using
talloc_size() or talloc_array_p() where appropriate.

also fixed a memory leak in pvfs_copy_file() (failed to free a memory
context)
2007-10-10 13:08:25 -05:00
Andrew Bartlett
43558eaf76 r4500: Allow GENSEC modules to be disabled by setting a flag on their module
definition, not by hardcoded reference in loadparm.c

Andrew Bartlett
2007-10-10 13:08:15 -05:00
Andrew Bartlett
9ff8b2b4d1 r4494: Allow gensec_gssapi to use the SPNEGO mech provided by Heimdal (off by
default at this point), and include the GSSAPI OIDs in our source, per
advice by lha that this is easier than getting the includes right.

Andrew Bartlett
2007-10-10 13:08:12 -05:00
Stefan Metzmacher
30980d2184 r4482: in ads mixed mode there are also only one PDC and multiple BDC's
metze
2007-10-10 13:08:11 -05:00
Andrew Bartlett
14b650c85d r4460: Add a new GENSEC module: gensec_gssapi
(disabled by default, set parametric option: gensec:gssapi=yes to enable).

This module backs directly onto GSSAPI, and allows us to sign and seal
GSSAPI/Krb5 connections in particular.  This avoids me reinventing the
entire GSSAPI wheel.

Currently a lot of things are left as default - we will soon start
specifiying OIDs as well as passwords (it uses the keytab only at the
moment).  Tested with our LDAP-* torture tests against Win2k3.

My hope is to use this module to access the new SPNEGO implementation
in Heimdal, to avoid having to standards-verify our own.

Andrew Bartlett
2007-10-10 13:07:53 -05:00
Andrew Tridgell
1c2170ae21 r4452: the beginnings of a dssetup rpc server. 2007-10-10 13:07:52 -05:00
Andrew Tridgell
6a360c52c1 r4444: - initialise registry:HKEY_LOCAL_MACHINE to a reasonable default (where
provision.pl suggests hklm.ldb be put)

- fix the globals init not to wipe parametic values after initialising
  them (this bug prevented default values for parametric parameters)
2007-10-10 13:07:51 -05:00
Stefan Metzmacher
e62b36bef1 r4439: unlimited connections is -1
metze
2007-10-10 13:07:50 -05:00
Stefan Metzmacher
33a185ec3b r4438: the ADMIN$ share is a diskshare but hidden
metze
2007-10-10 13:07:50 -05:00
Stefan Metzmacher
c44f4d44b5 r4423: give lp_parm_int() and lp_parm_ulong() default values
metze
2007-10-10 13:07:47 -05:00
Andrew Bartlett
cc47b4c6fc r4342: Fix a memory leak in init_globals().
Andrew Bartlett
2007-10-10 13:07:36 -05:00
Stefan Metzmacher
7fcbd483d4 r4339: - rename auth_guest to auth_anonymous
- don't use static const strings in the server_info

- fix segfault when auth_sam gets "" as username

metze
2007-10-10 13:07:36 -05:00
Andrew Tridgell
1235afa5fe r4058: added a type safe version of smb_xmalloc() 2007-10-10 13:06:20 -05:00
Andrew Tridgell
eec698254f r4055: fixed more places to use type safe allocation macros 2007-10-10 13:06:20 -05:00
Andrew Tridgell
b0f6e21481 r4054: got rid of Realloc(), replacing it with the type safe macro realloc_p() 2007-10-10 13:06:19 -05:00
Stefan Metzmacher
0ae5794cf4 r4045: readd krb5 support defaulted to disable
use:
gensec:krb5=yes
gensec:ms_krb5=yes

to enable it

or -k on the client tools on the command line

metze
2007-10-10 13:06:17 -05:00
Stefan Metzmacher
a6fb416f51 r3957: fix compiler warning
metze
2007-10-10 13:06:07 -05:00
Andrew Tridgell
f280770c81 r3938: cleaned some old stuff out of loadparm 2007-10-10 13:06:06 -05:00
Jelmer Vernooij
e995a1c0e5 r3630: More work on DCOM server side 2007-10-10 13:05:40 -05:00
Andrew Tridgell
321fb06a62 r3543: fixed some #include lines to make them more consistent, and fixed
conditional compilation of xattr client code
2007-10-10 13:05:30 -05:00
Andrew Tridgell
558de54ec6 r3494: got rid of include/rewrite.h, and split out the dynconfig.h header 2007-10-10 13:05:22 -05:00
Andrew Tridgell
8e9212ecfc r3478: split out some more pieces of includes.h 2007-10-10 13:05:20 -05:00
Andrew Tridgell
b97e395c81 r3463: separated out some more headers (asn_1.h, messages.h, dlinklist.h and ioctl.h) 2007-10-10 13:05:17 -05:00
Andrew Tridgell
7b7477ac42 r3453: - split out the auth and popt includes
- tidied up some of the system includes

- moved a few more structures back from misc.idl to netlogon.idl and samr.idl now that pidl
  knows about inter-IDL dependencies
2007-10-10 13:05:13 -05:00
Andrew Tridgell
6b1f86aea8 r3449: more include file reduction
the ldb part isn't ideal, I will have to think of a better solution
2007-10-10 13:05:13 -05:00
Andrew Tridgell
264ce91810 r3447: more include/system/XXX.h include files 2007-10-10 13:05:12 -05:00
Andrew Tridgell
b8f5fa8ac8 r3428: switched to using minimal includes for the auto-generated RPC code.
The thing that finally convinced me that minimal includes was worth
pursuing for rpc was a compiler (tcc) that failed to build Samba due
to reaching internal limits of the size of include files. Also the
fact that includes.h.gch was 16MB, which really seems excessive. This
patch brings it back to 12M, which is still too large, but
better. Note that this patch speeds up compile times for both the pch
and non-pch case.

This change also includes the addition iof a "depends()" option in our
IDL files, allowing you to specify that one IDL file depends on
another. This capability was needed for the auto-includes generation.
2007-10-10 13:05:09 -05:00
Andrew Tridgell
3f902f8d85 r3425: got rid of a bunch of cruft from rewrite.h 2007-10-10 13:05:08 -05:00
Andrew Tridgell
01f5c1c72d r3390: fixed schannel server side support. RPC-SCHANNEL now works against Samba4. 2007-10-10 13:05:04 -05:00
Andrew Tridgell
e63edc8171 r3380: - changed the default behaviour of server signing. We now have a default
setting of "server signing = auto", which means to offer signing
  only if we have domain logons enabled (ie. we are a DC). This is a
  better match for what windows clients want, as unfortunately windows
  clients always use signing if it is offered, and when they use signing
  they not only go slower because of the signing itself, they also
  disable large readx/writex support, so they end up sending very small
  IOs for.

- changed the default max xmit again, this time matching longhorn,
  which uses 12288. That seems to be a fairly good compromise value.
2007-10-10 13:05:03 -05:00
Andrew Tridgell
23f4ce3a7d r3375: changed the default max xmit until I fix a problem with the SMBtrans multi-part code
A higher max xmit avoids multi-part trans requests
2007-10-10 13:05:03 -05:00
Jelmer Vernooij
42844a4e34 r3338: More work on the winreg RPC server. Opening hives is now supported, most other calls
return WERR_NOT_SUPPORTED for now.

Hive backends can be set like this:

registry:HKEY_LOCAL_MACHINE = ldb:tdb://registry.tdb
registry:HKEY_CURRENT_USER = gconf
registry:HKEY_USERS = dir:/tmp/registry
registry:HKEY_CLASSES_ROOT = nt4:/path/to/NTUSER.DAT
registry:HKEY_PERFORMANCE_DATA = w95:/path/to/USER.DAT
2007-10-10 13:04:57 -05:00
Andrew Tridgell
d84ade90ce r3227: added a per-share option "case insensitive filesystem", that tells the
backend that the underlying filesystem is case insensitive, so it can
bypass the directory search if the name is not found.
2007-10-10 13:04:43 -05:00
Jelmer Vernooij
b15cfbe251 r3162: Add client-side support for the ncalrpc: and ncacn_unix_stream: transports.
ncalrpc uses the new config option "ncalrpc dir" for creating unix sockets.
2007-10-10 13:02:27 -05:00
Andrew Tridgell
069305adaf r3062: handle spaces at the start of options in lp_set_cmdline() 2007-10-10 13:01:55 -05:00
Andrew Tridgell
a8c49a0de3 r3025: don't warn about no path in a service, as some backends (like cifs) don't need a path 2007-10-10 12:59:59 -05:00
Andrew Tridgell
dac00ef3b0 r2941: added pvfs_flush() implementation to the posix backend 2007-10-10 12:59:50 -05:00
Stefan Metzmacher
536af87ef1 r2889: add DRSUAPI server
- with DsBind and DsUnbind implmented :-)
  the RPC-DRSUAPI test works

metze
2007-10-10 12:59:42 -05:00
Andrew Tridgell
b04202eaac r2871: - got rid of the last bits of non-threadsafe data in util_str.o
- switch the fallback case tables to use talloc

- moved the used-once octal_string() inline in loadparm.c
2007-10-10 12:59:40 -05:00
Andrew Tridgell
e335cd4933 r2804: - setup some reasonable default SAM to unixName mappings in the provisioning.
- enable the unixuid module by default on all backends
2007-10-10 12:59:36 -05:00
Andrew Tridgell
f84c0af35c r2561: completely redid the ntvfs module chaining code, You can now do something like:
ntvfs handler = nbench posix

and the nbench pass-thru module will be called before the posix
module. The chaining logic is now much saner, and less racy, with each
level in the chain getting its own private pointer rather than relying
on save/restore logic in the pass-thru module.

The only pass-thru module we have at the moment is the nbench one
(which records all traffic in a nbench compatibe format), but I plan
on soon writing a "unixuid" pass-thru module that will implement the
setegid()/setgroups()/seteuid() logic for standard posix uid
handling. This separation of the posix backend from the uid handling
should simplify the code, and make development easier.

I also modified the nbench module so it can do multiple chaining, so
if you want to you can do:

   ntvfs module = nbench nbench posix

and it will save 2 copies of the log file in /tmp. This is really only
useful for testing at the moment until we have more than one pass-thru
module.
2007-10-10 12:59:06 -05:00
Andrew Bartlett
543401990a r2504: Add printf attribute, for format argument checking.
Andrew Bartlett
2007-10-10 12:58:59 -05:00
Andrew Tridgell
7478f50c2f r2384: i missed "nt status support" in my change to the new globals init code 2007-10-10 12:58:47 -05:00
Andrew Tridgell
ccfc2106a0 r2309: make loadparm handling much more consistent, by using do_parameter()
to process init_globals(). This also allows all global options to be
set using lp_set_cmdline() or --option

a side effect is that init_globals() is slower. If this turns out to
be a problem we can try a different approach.
2007-10-10 12:58:42 -05:00
Andrew Tridgell
2c0b5e119e r2306: in lp_set_cmdline(), also set any aliases as having been set by the commandline 2007-10-10 12:58:42 -05:00
Andrew Tridgell
360a6b530e r2302: added a '--option' option, allowing any global or default option in
smb.conf to be set on the command line. For example, you can use:

  smbtorture --option 'unicode=false'
or
  smbtorture --option 'netbios name=myname'
2007-10-10 12:58:41 -05:00