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

1988 Commits

Author SHA1 Message Date
Stefan Metzmacher
4c21ebae95 r24125: use TALLOC_FREE()
metze
2007-10-10 12:29:09 -05:00
Stefan Metzmacher
8cccf470cb r24115: try to get the file name and share patch for printing
brlocks from the share_mode db, as the same fileid
is used.

metze
2007-10-10 12:29:08 -05:00
Volker Lendecke
6e6eea64a5 r24107: Fix bug 4849. Thanks to Matthijs Kooijman <matthijs@stdin.nl> 2007-10-10 12:29:07 -05:00
Volker Lendecke
d74bbc53c2 r24057: Fix some uninitialized variables found by the IBM checker 2007-10-10 12:29:00 -05:00
Volker Lendecke
2137158260 r24047: With -Wmissing-prototypes these two always generate warnings. They
should be properly prototyped. For now, gloss over the warning.
2007-10-10 12:28:59 -05:00
Volker Lendecke
69326a56e7 r24044: Fix an uninitialized variable warning 2007-10-10 12:28:59 -05:00
Stefan Metzmacher
9d4104b8d5 r24021: use MSG_BROADCAST_PID_STR as value for broadcast messages
to fix the cluster case

vl: please check, if this works with clustering = no

metze
2007-10-10 12:28:56 -05:00
Stefan Metzmacher
68c786dafa r24019: merge from http://people.samba.org/bzr/metze/samba/3_2-ctdb-metze/:
use a timed event to make sure the timelimit is correctly
handled in smbcontrol when waiting for messages

metze
2007-10-10 12:28:56 -05:00
Volker Lendecke
cdc8ca57a7 r24005: Attempt to fix the build on host deckchair 2007-10-10 12:28:55 -05:00
Günther Deschner
4cada7c148 r23973: For debugging, add (undocumented) net ads kerberos commands (kinit, renew,
pac).

Guenther
2007-10-10 12:28:51 -05:00
Günther Deschner
7e2fb14d6e r23968: Harmonize net's password prompts.
Guenther
2007-10-10 12:28:50 -05:00
Stefan Metzmacher
b52bb1e155 r23954: merge from 3_0-ctdb-tridge:
don't display dead share mode entries in smbstatus

metze
2007-10-10 12:28:49 -05:00
Stefan Metzmacher
00909194a6 r23888: move elements belonging to the current ldap connection to a
substructure.

metze
2007-10-10 12:28:38 -05:00
Günther Deschner
cc41b3b60f r23874: Some more minor edits for net ads gpo.
Guenther
2007-10-10 12:28:37 -05:00
Günther Deschner
311bbbafa6 r23834: Allow to pass an ADS_STRUCT pointer down to the dump function callback in
libads.

Guenther
2007-10-10 12:28:32 -05:00
Andrew Tridgell
e5d18768a0 r23804: here too 2007-10-10 12:28:28 -05:00
Andrew Tridgell
87c91e4362 r23801: The FSF has moved around a lot. This fixes their Mass Ave address. 2007-10-10 12:28:27 -05:00
Andrew Tridgell
727a6cf2cb r23800: LGPL is now called GNU Lesser General Public License
not GNU Library General Public License
2007-10-10 12:28:26 -05:00
Andrew Tridgell
c14aba93c0 r23795: more v2->v3 conversion 2007-10-10 12:28:26 -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
Simo Sorce
44e22581d7 r23782: I tested this against NT4 PDC, W2K Server, W2K3 Dc, and a Win XP std alone
client and they all work with this code.
2007-10-10 12:28:21 -05:00
Jeremy Allison
407e6e695b r23779: Change from v2 or later to v3 or later.
Jeremy.
2007-10-10 12:28:20 -05:00
Günther Deschner
6fafa64bea r23772: Add ads_find_samaccount() helper function.
Guenther
2007-10-10 12:23:55 -05:00
Günther Deschner
1a2878db2d r23770: Some minor cleanups in libgpo
(including some valgrind errors, uninitialized vars, etc.)

Guenther
2007-10-10 12:23:55 -05:00
Michael Adam
4b4ba7724e r23760: Untangle use of strrchr_m and strequal and add some checks
for the validity of the given registry key name.

Michael
2007-10-10 12:23:53 -05:00
Volker Lendecke
91be38f7ab r23757: Fix Coverity id 386 2007-10-10 12:23:53 -05:00
Michael Adam
ec21a0cf9f r23750: Change the behaviour of net conf import when there is a global section
in the current registry and there is no global section in the input
file (or only global options with default values):
In that case the existing global section is now not touched. Before, it
would have been deleted and recreated empty. The new behaviour is how
other shares are treated too.

Note that since the input file is parsed by lp_load, there is currently
no way to distinguish between a section with only default parameters
and a non-existing section in net conf import.

Michael

PS: A couple of trailing white-spaces have been eliminated
and a line was broken to be not longer than 80 chars, too.
2007-10-10 12:23:52 -05:00
Michael Adam
65ce463317 r23749: Simplify prototype of reg_setvalue_internal:
eliminate "type" parameter since we store only REG_SZ.

Michael
2007-10-10 12:23:52 -05:00
Michael Adam
39df7faaa9 r23748: Clean use of talloc in import_process_service:
create a temporary talloc ctx for the function.

Michael
2007-10-10 12:23:51 -05:00
Michael Adam
76f4f224aa r23747: Move formatting of a parameter's value into a value string
to a function of its own. (for storing it in registry),
Eliminate the valtype variable : store everything as "sz".
Eliminate some trailing white spaces on the way.

Michael
2007-10-10 12:23:51 -05:00
Michael Adam
6b1bf7c1f4 r23746: Fix missing assignments to target string of asprintf in import function.
Michael
2007-10-10 12:23:51 -05:00
Michael Adam
fdcdcacf0a r23745: Fix: Check whether top subkeyname instead of whole registry key name
is equal to GLOBAL_NAME.

Michael
2007-10-10 12:23:51 -05:00
Michael Adam
204f4f1a94 r23744: Remove TODO-comment. lp_load returns False if opening
of the config file fails. That's enough of checking for
existence and readbility to my taste.

Michael
2007-10-10 12:23:51 -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
b294bc707c r23655: Fix a comment and adjust some code formatting.
Michael
2007-10-10 12:23:42 -05:00
Michael Adam
91770e153d r23652: Use the recursive delete function instead of the original one
when deleting a share. Just to be sure...

Michael
2007-10-10 12:23:41 -05:00
Günther Deschner
a2befee3f2 r23648: Allow to list a custom krb5 keytab file with:
net ads keytab list /path/to/krb5.keytab

Guenther
2007-10-10 12:23:41 -05:00
Günther Deschner
e9a7512a9f r23627: Allow to pass down the lookup-level to rpccli_lsa_lookup_names().
Guenther
2007-10-10 12:23:38 -05:00
Volker Lendecke
56a32f217a r23612: Revert 'net idmap dump' to the 3.0.24 behaviour. 2007-10-10 12:23:36 -05:00
Michael Adam
ae7e3c9708 r23593: Mention "net conf" in top level net usage.
Michael
2007-10-10 12:23:34 -05:00
Michael Adam
6d8973762e r23585: Add a "drop" function to "net conf" that clears the
whole configuration stored in registry.

Michael
2007-10-10 12:23:32 -05:00
Günther Deschner
0d956a8e45 r23563: Add dump-event-list command to smbcontrol.
Guenther
2007-10-10 12:23:29 -05:00
Jeremy Allison
073fdc5a58 r23554: Fix bug #4711 by makeing cli_connect return an NTSTATUS.
Long overdue fix....
Jeremy.
2007-10-10 12:23:28 -05:00
Michael Adam
41a8f8ec5f r23549: Make "net conf setparm" always use registry data type "sz".
This simplifies the usage of this command from
"net conf setparm <section> <param> <type> <value>"
to
"net conf setparm <section> <param> <value>".

Micheal
2007-10-10 12:23:27 -05:00
Michael Adam
ec22c30581 r23543: Adjust comments. 2007-10-10 12:23:27 -05:00
Michael Adam
efd3e2bfb7 r23485: This checkin consists mostly of refactorings in preparation of the
activation of global registry options in loadparm.c, mainly to
extract functionality from net_conf.c to be made availabel elsewhere
and to minimize linker dependencies.

In detail:

* move functions registry_push/pull_value from lib/util_reg.c to new file
  lib/util_reg_api.c

* create a fake user token consisting of builtin administrators sid and
  se_disk_operators privilege by hand instead of using get_root_nt_token()
  to minimize linker deps for bin/net.

  + new function registry_create_admin_token() in new lib/util_reg_smbconf.c
  + move dup_nt_token from auth/token_util.c to new file lib/util_nttoken.c
  + adapt net_conf.c and Makefile.in accordingly.

* split lib/profiles.c into two parts: new file lib/profiles_basic.c
  takes all the low level mask manipulation and format conversion functions
  (se_priv, privset, luid). the privs array is completely hidden from
  profiles.c by adding some access-functions. some mask-functions are not
  static anymore.

  Generally, SID- and LUID-related stuff that has more dependencies
  is kept in lib/profiles.c

* Move initialization of regdb from net_conf.c into a function
  registry_init_regdb() in lib/util_reg_smbconf.c.

Michael
2007-10-10 12:23:21 -05:00
Gerald Carter
cbd33da9f7 r23474: Here's a small patch that disables the libkrb5.so replay cache
when verifying a ticket from winbindd_pam.c.

I've found during multiple, fast, automated SSH logins (such
as from a cron script) that the replay cache in MIT's krb5
lib will occasionally fail the krb5_rd_req() as a replay attack.

There seems to be a small window during which the MIT krb5
libs could reproduce identical time stamps for ctime and cusec
in the authenticator since Unix systems only give back
milli-seconds rather than the micro-seconds needed by the
authenticator.  Checked against MIT 1.5.1.  Have not
researched how Heimdal does it.

My thinking is that if someone can spoof the KDC and TDS
services we are pretty hopeless anyways.
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