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

793 Commits

Author SHA1 Message Date
Michael Adam
70dfe5d098 r24519: Refactor printing of one parameter into a helper function of its own. 2007-10-10 12:29:53 -05:00
Michael Adam
ce1d7ad1ac r24510: Fix logic. Thanks to Volker for the hint!
Michael
2007-10-10 12:29:53 -05:00
Michael Adam
113ac07199 r24495: Add a function lp_canonicalize_parameter: It takes a name of a parameter
and produces the "canonical" (or main) name of the parameter (the one
synonym that does not have the flag FLAG_HIDE). The function also sets
a flag as to whether the synonym is a reverse boolean synonym.

Add some functions for the handling of string representations of boolean
values: return the canonical string representation of a bool, invert
a bool given as a string, canonicalize a bool given as a string.

Michael
2007-10-10 12:29:52 -05:00
Volker Lendecke
d941aae2df r24453: Remove the read and write bmpx calls
Talked to both Tridge and Jeremy about this, Tridge said that there is a
special error message persuading OS/2 to fall back to other methods.
The calls now checked in always return the error message we used to
return when "read bmpx = False" was set (the default): ERRSRV, ERRuseSTD.

If someone has a reproducable test case where this is really needed, we
can always dig it up from version control and convert it to the new API.
But that time without that silly parameter, and with a torture test case
for "make test" please :-)

Volker
2007-10-10 12:29:49 -05:00
Volker Lendecke
df40d336af r24266: Remove the "open files database hash size" parameter
This has been superseded by the "tdb_hashsize:<tdbname>" parameter
2007-10-10 12:29:22 -05:00
Stefan Metzmacher
26ccbad721 r24072: Add "client ldap sasl wrapping" parameter.
Possible values are "plain" (default), "sign" or "seal".

metze
2007-10-10 12:29:02 -05:00
Stefan Metzmacher
98c57562c4 r24027: merge from http://people.samba.org/bzr/metze/samba/3_2-ctdb-metze/:
add in any cluster addresses. We need to response to these,
but not listen on them. This allows us to run nmbd on every
node in the cluster, and have all of them register with a
WINS server correctly

metze
2007-10-10 12:28:57 -05:00
Andrew Tridgell
b0132e94fc r23784: use the GPLv3 boilerplate as recommended by the FSF and the license text 2007-10-10 12:28:22 -05:00
Jeremy Allison
407e6e695b r23779: Change from v2 or later to v3 or later.
Jeremy.
2007-10-10 12:28:20 -05:00
Michael Adam
7f85cff49d r23666: Rename lp_parameter_valid -> lp_parameter_is_valid.
Michael
2007-10-10 12:23:44 -05:00
Michael Adam
bf92d56798 r23657: Prevent setting of a global option in a share definition
in "net conf setparm".

Michael
2007-10-10 12:23:42 -05:00
Michael Adam
639051e58d r23656: Add initial checking of the validity of a paramter
given to "net conf setparm". Add a utility function
lp_parameter_valid() for this to loadparm.c.

Michael
2007-10-10 12:23:42 -05:00
Michael Adam
00be68a841 r23641: Put check for forbidden values in smbconf into a function.
(This will be used in a next step to prevent storing these
values in reg_smbconf.c.)

Michael
2007-10-10 12:23:40 -05:00
Michael Adam
bbbfd7f41a r23592: Change a debuglevel to not clutter output when calling
net as a non-root user, e.g.

Michael
2007-10-10 12:23:34 -05:00
Michael Adam
56f82485ec r23579: Up to now, the "allparameters" argument to lp_next_parameter was
not effective for the global section (snum < 0). This checkin
makes it effective for the global section, too.

This does not produce changes in the results of the present calls of
lp_next_parameter: Beside the new use in utils/net_conf.c (which is
hereby fixed), the only calls of lp_next_parameter are in web/swat.c,
where it is effectively always called with allparameters == 1.

Michael
2007-10-10 12:23:32 -05:00
Michael Adam
235a5ae4cd r23575: Fix a segfault when lp_load is called before init_registry.
Michael
2007-10-10 12:23:31 -05:00
Michael Adam
3695a66166 r23553: Also ignore "lock directory" in registry global options.
Michael
2007-10-10 12:23:28 -05:00
Michael Adam
a4714b3428 r23552: Use proper comparison function an fix logic.
Michael
2007-10-10 12:23:28 -05:00
Michael Adam
73e41c1d0a r23548: Fix comments.
Michael
2007-10-10 12:23:27 -05:00
Michael Adam
f0992c0d79 r23547: Ignore parameter "include" in regsitry globals.
Michael
2007-10-10 12:23:27 -05:00
Jeremy Allison
fca5637dc6 r23513: Fix one more use of VALUE_PREFIX.
Jeremy.
2007-10-10 12:23:24 -05:00
James Peach
171dc060e2 r23510: Tidy calls to smb_panic by removing trailing newlines. Print the
failed expression in SMB_ASSERT.
2007-10-10 12:23:23 -05:00
Michael Adam
24b0cbcb37 r23509: This activates the global options from the registry in loadparm.
The global options are stored as values in the subkey "global"
of the SMBCONF registry key.

The activation is accomplished in smb.conf though a new special
semantic of the "include" parameter: "include = registry" triggers
the processing of the registry global options exactly at the
position of the include statement. Options read from the registry
take the same precedence as parameters loaded from a file via
include. Need to reload the registry globals is detected by
watching the tdb sequence number.

Registry shares are automatically activated when the registry
globals are processed.

So a "registry only" configuration can be realized by an
smb.conf that looks as follows:

================================
[global]
include = registry
================================

The global options and registry shares can be conveniently
edited with the "net conf" utility.

Caveat:

A possible pitfall consists in using "include = registry"
together with the "lock directory" directive in the registry.
This problem will be addressed in the next time.

Note on the code:

Processing of the registry options is accomplished by a function
process_registry_globals() in loadparm.c The current version is
only an interim solution: It is handcoded instead of using the
infrastructure of reg_api.c. The reason for this is that using
reg_api still has too large linker dependencies, bloating virtually
all targets by PASSDB_OBJ, SMBLDAP_OBJ, GROUPDB_OBJ and LDB stuff.
A version of process_registry_globals that uses reg_api is
included but commented out. The goal is to eventually refactor
and restructure the registry code so that one can use the reg_api
to access only the registry tdb and not link all the dynamic
backends with all their linking implications.
2007-10-10 12:23:23 -05:00
Gerald Carter
1f80f9d145 r23472: add missing default setting for 'winbind nss info' (merge from 3.0.26) 2007-10-10 12:23:19 -05:00
Gerald Carter
3d3a813035 r23471: Here's a rough patch for expanding domain group membership
in the winbindd_getgrnam() call.  Couple of comments:

* Adds "winbind expand groups" parameter which defines the
  max depth winbindd will expand group members.  The default
  is the current behavior of one level of expansion.
* The entire getrgnam() interface should be async.  I
  haven't done that.
* Refactors the domain users hack in fill_grent_mem() into
  its own function.
2007-10-10 12:23:19 -05:00
Volker Lendecke
15553d6327 r23410: Merge the core of the cluster code.
I'm 100% certain I've forgotten to merge something, but the main code
should be in. It's mainly in dbwrap_ctdb.c, ctdbd_conn.c and
messages_ctdbd.c.

There should be no changes to the non-cluster case, it does survive make
test on my laptop.

It survives some very basic tests with ctdbd enables, I did not do the
full test suite for clusters yet.

Phew...

Volker
2007-10-10 12:23:14 -05:00
Volker Lendecke
07b71a02ae r23368: Make "winbind:rpc only" a full blown parameter. Thanks to Karolin for
the patch :-)
2007-10-10 12:23:10 -05:00
James Peach
e93d33b463 r22648: Fix comment to match the code. 2007-10-10 12:19:52 -05:00
Jeremy Allison
c1f1949ff1 r22285: Allow arbitrary bases in int and ulong parsing.
Jeremy.
2007-10-10 12:19:24 -05:00
Jeremy Allison
e59b5276b5 r22266: Fix bug #4512 - we were returning a volume label greater than
32 unicode chars. Windows XP doesn't like that :-).
Jeremy
2007-10-10 12:19:23 -05:00
Volker Lendecke
06a4d2ce5d r21959: Merge a comment fix from Michael Adam -- more to come :-) 2007-10-10 12:18:52 -05:00
Gerald Carter
aac2d0af5e r21905: Rename
idmap expire time 	-> idmap cache time
  idmap negative time	-> idmap negative cache time
2007-10-10 12:18:48 -05:00
Volker Lendecke
6cae3cf281 r21892: Mini-Patch from Michael 2007-10-10 12:18:46 -05:00
Gerald Carter
5e30807b4e r21884: * Blacklist BUILTIN and MACHINE domains from the
idmap domains as these should only be handled by the
  winbindd_passdb.c backend

* Allow the alloc init to fail for backwards compatible
  configurations like

     idmap backend = ad
     idmap uid = 1000-100000
	....

* Remove the deprecated flags from idmap backend, et. al.
  These are mutually exclusive with the new configuration
  options (idmap domains).  Logging annoying messages
  about deprecated parameters is confusing.  So we'll try
  this apprpach for now.
2007-10-10 12:18:44 -05:00
Volker Lendecke
9499fd9c80 r21869: Move sending keepalives out of the main processing loop into idle event.
On the way, make lp_keepalive() a proper parameter.

Volker
2007-10-10 12:18:41 -05:00
Volker Lendecke
52f2c89c0a r21866: Remove unused "lock spin count" parameter 2007-10-10 12:18:40 -05:00
Herb Lewis
4af2795e65 r21825: add debug prefix timestamp to allow "short timestamps" to be
added to debug messages
2007-10-10 12:18:37 -05:00
Volker Lendecke
e795865d58 r21547: Fix from Michael Adam <ma@sernet.de>: Refuse registry shares without path.
Thanks,

Volker
2007-10-10 12:18:11 -05:00
Günther Deschner
82f1da8117 r21517: Fix build warnings.
Guenther
2007-10-10 12:18:09 -05:00
Lars Müller
c02921e95d r21509: Merge lp_passdb_backend() from rev 21506 to 3_0_25.
Slightly change the DEBUG 0 message as suggested by Volker on
samba-technical.
2007-10-10 12:18:09 -05:00
Lars Müller
5cd9a2e258 r21506: Allow old pre 3.0.22 multi passdb backend configurations to work with
post 3.0.23.

This implementation considers spaces in ldapsam configs.  Such configs
are trunkated after the closing quote.
2007-10-10 12:18:09 -05:00
Volker Lendecke
ec6ebdcdbf r21449: Talked to Jerry on irc, he does not see what might break with this: Change
back the 'msdfs root = yes' default to 'no'.

Volker
2007-10-10 12:18:04 -05:00
Volker Lendecke
19ee677925 r21446: Karolins "printjob username" 2007-10-10 12:18:04 -05:00
Volker Lendecke
58bfd168b0 r21279: Get rid of 'aio write behind', this is broken.
It should probably better be integrated with our write cache.

Volker
2007-10-10 12:17:53 -05:00
Jeremy Allison
83dbbdff34 r21191: Add in the POSIX open/mkdir/unlink calls.
Move more error code returns to NTSTATUS.
Client test code to follow... See if this
passes the build-farm before I add it into
3.0.25.
Jeremy.
2007-10-10 12:17:47 -05:00
Volker Lendecke
c3a44d8b96 r21111: Reorganize the change notify params a bit. We now have the per-share
parameters

change notify = [yes]/no           # do we do it at all
kernel change notify = [yes]/no    # enable/disable inotify

Those who want FAM need to say

change notify = yes
vfs objects = notify_fam

Volker
2007-10-10 12:17:39 -05:00
Gerald Carter
bd8238417b r21070: * Add the new boolean 'winbind normalize names' option as discussed
on the samba-technical ml.  The replacement character is hardcoded
  as a '_' for now.
2007-10-10 12:17:32 -05:00
Gerald Carter
aaec0115e2 r20986: Commit the prototype of the nss_info plugin interface.
This allows a provider to supply the homedirectory, etc...
attributes for a user without requiring support in core
winbindd code.  The idmap_ad.c module has been modified
to provide the idmap 'ad' library as well as the rfc2307 and sfu
"winbind nss info" support.

The SID/id mapping is working in idmap_ad but the nss_info
still has a few quirks that I'm in the process of resolving.
2007-10-10 12:17:23 -05:00
Herb Lewis
c60687db11 r20261: merge 20260 from samba_3_0_24
clean up a bunch of no previous prototype warnings
2007-10-10 12:16:37 -05:00
Volker Lendecke
b459096a15 r20214: Fix a type-punned warning. Simo, Jerry, please check 2007-10-10 12:16:33 -05:00