Michael Adam [Sat, 7 Jul 2007 22:18:54 +0000 (22:18 +0000)]
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
Michael Adam [Sat, 7 Jul 2007 21:41:59 +0000 (21:41 +0000)]
r23746: Fix missing assignments to target string of asprintf in import function.
Michael
Michael Adam [Sat, 7 Jul 2007 21:33:48 +0000 (21:33 +0000)]
r23745: Fix: Check whether top subkeyname instead of whole registry key name
is equal to GLOBAL_NAME.
Michael
Michael Adam [Sat, 7 Jul 2007 20:40:59 +0000 (20:40 +0000)]
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
Volker Lendecke [Sat, 7 Jul 2007 09:57:27 +0000 (09:57 +0000)]
r23743: Simplify stat_cache_lookup() logic. For the history of this, see
http://article.gmane.org/gmane.network.samba.internals/32486.
Volker Lendecke [Sat, 7 Jul 2007 08:46:26 +0000 (08:46 +0000)]
r23738: Re-add commented out code snipped that got lost by accident
Jeremy Allison [Fri, 6 Jul 2007 23:07:40 +0000 (23:07 +0000)]
r23736: Use local variable of smb_flag2 instead of using the macro every time.
Jeremy.
Jeremy Allison [Fri, 6 Jul 2007 21:46:43 +0000 (21:46 +0000)]
r23735: Second part of the bugfix for #4763
This should coalesce identical adjacent notify records - making the "too large"
bug very rare indeed. Please test.
Jeremy.
Lars Müller [Fri, 6 Jul 2007 18:49:49 +0000 (18:49 +0000)]
r23733: Limit LDAP lookup in lookup_usergroups_member() to security groups.
Credits to Ralf Haferkamp for the discussion and help on this.
Herb Lewis [Fri, 6 Jul 2007 17:48:19 +0000 (17:48 +0000)]
r23732: removed reference to non-existent structure
Volker Lendecke [Fri, 6 Jul 2007 16:39:58 +0000 (16:39 +0000)]
r23731: Forgot one reference to inbuf
Gerald Carter [Thu, 5 Jul 2007 19:55:40 +0000 (19:55 +0000)]
r23730: Squashed commit of the following:
commit
3941269fa01038fca242a197e8d7c1f234d45ea7
Author: Gerald (Jerry) Carter <jerry@samba.org>
Date: Thu Jul 5 14:52:03 2007 -0500
Two fixes for "winbind expand groups".
(a) Update the counter for the number of new groups to resolve else
we'll only expand one group member per level and drop the rest.
(b) Don't reset the num_names counter in winbindd_ads.c:lookup_groupmem()
or we'll drop the SIDs resolved to names via cache from the resulting
list.
Jeremy Allison [Thu, 5 Jul 2007 18:28:18 +0000 (18:28 +0000)]
r23728: First part of bugfix for #4763. Limit notify responses
to client max buf size.
Jeremy.
Volker Lendecke [Thu, 5 Jul 2007 16:36:15 +0000 (16:36 +0000)]
r23727: Explicitly pass down FLAGS2 to srvstr_get_path.
Next step is to remove the bug that in the trans2 code we use the inbuf
as the base pointer to decide whether we need ucs2 alignment where we
need to use the beginning of the params buffer
Jeremy, last one for today to reviw :-)
Volker Lendecke [Thu, 5 Jul 2007 16:33:37 +0000 (16:33 +0000)]
r23726: Explicitly pass down the FLAGS2 field to srvstr_pull_buf. The next
checkin will pull this up to srvstr_get_path. At that point we can get more
independent of the inbuf, the base_ptr in pull_string will only be used
to satisfy UCS2 alignment constraints.
Volker Lendecke [Thu, 5 Jul 2007 16:27:47 +0000 (16:27 +0000)]
r23725: Remove get_current_mid()
Jeremy, next one to review :-)
Volker Lendecke [Thu, 5 Jul 2007 16:26:27 +0000 (16:26 +0000)]
r23724: Reduce access to the global inbuf a tiny bit. Add a struct smb_request
that contains some of the fields from the SMB header, removing the need
to access inbuf directly. This right now is used only in the open file
code & friends, and creating that header is only done when needed. This
needs more work, but it is a start.
Jeremy, I'm only checking this into 3_0, please review before I merge it
to _26.
Volker
Simo Sorce [Thu, 5 Jul 2007 13:46:47 +0000 (13:46 +0000)]
r23723: Alexander Larsson pointed me at a missing mapping in clierror.c
When renaming a file across 2 filesystem a samba server returns
NT_STATUS_NOT_SAME_DEVICE but thius is not translated to EXDEV,
and the generic EINVAL is returned instead.
This should fix it, Jeremy or Derrel please check if this is ok.
Volker Lendecke [Thu, 5 Jul 2007 10:32:51 +0000 (10:32 +0000)]
r23722: Fix the build of the catia module
Michael Adam [Thu, 5 Jul 2007 00:12:24 +0000 (00:12 +0000)]
r23714: but now:
This script allows for adding lists of users (or other objects)
to lists of groups (or aliases). Useful for creating large test
scenarios.
Michael
Michael Adam [Thu, 5 Jul 2007 00:11:07 +0000 (00:11 +0000)]
r23713: Oops accidentially checked in the wrong file - sorry!
Michael
Michael Adam [Thu, 5 Jul 2007 00:07:40 +0000 (00:07 +0000)]
r23712: This script allows for adding lists of users (or other objects)
to lists of groups (or aliases). Useful for creating large test
scenarios.
Michael
Michael Adam [Wed, 4 Jul 2007 23:21:51 +0000 (23:21 +0000)]
r23711: Refactor the actual creation of object into its own small function.
Michael
Volker Lendecke [Wed, 4 Jul 2007 22:30:25 +0000 (22:30 +0000)]
r23710: Remove some code duplication, we do have a random number generator
Volker Lendecke [Wed, 4 Jul 2007 22:28:04 +0000 (22:28 +0000)]
r23709: C++ warnings
Lars Müller [Wed, 4 Jul 2007 20:25:29 +0000 (20:25 +0000)]
r23708: - Add define for WINBIND_WARN_PWD_EXPIRE.
- Add parameter config_flag to get_config_item_int() and do the same
check as in get_conf_item_string.
Lars Müller [Wed, 4 Jul 2007 19:52:51 +0000 (19:52 +0000)]
r23707: - Move the asprintf() call to create the key even in
get_conf_item_string() to the later if statement.
- Also move the key definition to the later if statement in
get_conf_item_string() and get_conf_item_int().
Michael Adam [Wed, 4 Jul 2007 16:17:48 +0000 (16:17 +0000)]
r23706: Add a script to create domainusers,-groups and -aliases.
This is done via rpc client. The main purpose is to
be able to fill a domain controller with a large number
of users / groups easily. A the object names are
built as <prefix><num> where number ranges from a given
start number counting up until a given number of objects
has been created.
In a next step, I will submit scripts to add (many) users to
a group and to add a user to (many) groups.
Michael
Lars Müller [Wed, 4 Jul 2007 14:15:26 +0000 (14:15 +0000)]
r23705: Add suggestion for vim from Andreas 'GlaDiaC' Schneider to show tabs,
trailing whitespace, and continued lines visually.
Lars Müller [Wed, 4 Jul 2007 14:03:10 +0000 (14:03 +0000)]
r23704: Add pam_pwd_expire feature as discussed on samba-technical.
This is a slightly modified version to set warn_pwd_expire to the
default value if 0, no, or a broken value is set.
This version also has one if statement less in get_config_item_int().
Thanks a lot to Andreas 'GlaDiaC' Schneider for this feature!
Gerald Carter [Wed, 4 Jul 2007 00:41:58 +0000 (00:41 +0000)]
r23694: Make sure that when builddir != srcdir, we can still find the exports
files and library-versions file.
Also move the "-o $@" from the individual targets and into the SHLD_DSO
command.
Jeremy Allison [Tue, 3 Jul 2007 23:48:02 +0000 (23:48 +0000)]
r23692: Couldn't wait, sorry :-). Did the style change.
Jeremy.
Simo Sorce [Tue, 3 Jul 2007 23:34:01 +0000 (23:34 +0000)]
r23691: fix for bug on touching files as described here:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=243897
Gerald Carter [Tue, 3 Jul 2007 19:55:02 +0000 (19:55 +0000)]
r23689: Squashed commit of the following:
commit
0d4bbd197198a94bf4e29e0ccd175a40a60097f3
Author: Gerald (Jerry) Carter <jerry@samba.org>
Date: Mon Jul 2 20:08:19 2007 -0500
Introduce GNU ld linker export-script for hiding non-public symbols
in shared libraries.
Based on initial patch from Julien Cristau <jcristau@debian.org>
and suggestions from James Peach <jpeach@samba.org>. Currently
the libsmbsharemodes libraries still exports *. Signed off on
my Derrell as well.
Jeremy Allison [Tue, 3 Jul 2007 18:00:54 +0000 (18:00 +0000)]
r23688: Fix bug #4759 reported by Raul <ismell@ismell.org>.
"N" is not a valid format entry for ber_printf, should be "n"
Jeremy.
Stefan Metzmacher [Tue, 3 Jul 2007 14:46:06 +0000 (14:46 +0000)]
r23685: merge from SAMBA_4_0:
Only use the bzr and git information when there's
a .bzr or .git in the top branch directory
I use bzr for my home directory and
bzr version-info in ~/devel/samba/4.0/samba4-git
gives the info about the ~/.bzr branch
metze
Simo Sorce [Tue, 3 Jul 2007 13:11:56 +0000 (13:11 +0000)]
r23683: Check ports are in the correct range (1-65535)
Simo Sorce [Tue, 3 Jul 2007 13:07:56 +0000 (13:07 +0000)]
r23682: Old patch I forgot in one of my 3.0.25 trees.
Make sure we honour the directive not to allow machine password changes.
Jeremy Allison [Mon, 2 Jul 2007 20:51:09 +0000 (20:51 +0000)]
r23673: Check for integer wrap on incoming data.
Jeremy.
Günther Deschner [Mon, 2 Jul 2007 09:46:18 +0000 (09:46 +0000)]
r23672: Allow msrpc_name_to_sid() to be called without a domain_name and just a name.
Guenther
Volker Lendecke [Sun, 1 Jul 2007 19:40:04 +0000 (19:40 +0000)]
r23671: Remove unused code -- 16416 bytes of bss space...
Volker Lendecke [Sun, 1 Jul 2007 19:11:40 +0000 (19:11 +0000)]
r23670: Fix mkversion.sh for the git case: Only use the first line where
"commit" occurs
Michael Adam [Sun, 1 Jul 2007 00:09:20 +0000 (00:09 +0000)]
r23669: Move a variable into the only block where it is used.
Michael Adam [Sat, 30 Jun 2007 23:52:23 +0000 (23:52 +0000)]
r23668: When creating a new string value, win2k regedit delivers
one byte of data despite characters being two-byte.
This modifies registry_pull_value, to change the data
to the correct two-byte version of the empty string,
(as delivered by winxp), when only one byte of data is
received.
Michael
Michael Adam [Sat, 30 Jun 2007 22:31:13 +0000 (22:31 +0000)]
r23667: Prevent storing of forbidden parameter names in registry
configuration as values. I would really like to check whether
the valuename is a valid parameter name (with lp_parameter_is_valid)
here, but unfortunately, regedit cereates new values as
"New Value #1" (and so on) first, before dropping into the
rename box. So this is impossible here.
Michael
Michael Adam [Sat, 30 Jun 2007 21:35:39 +0000 (21:35 +0000)]
r23666: Rename lp_parameter_valid -> lp_parameter_is_valid.
Michael
Volker Lendecke [Sat, 30 Jun 2007 09:15:33 +0000 (09:15 +0000)]
r23665: Remove two unneeded global variables
Jeremy Allison [Sat, 30 Jun 2007 00:22:59 +0000 (00:22 +0000)]
r23664: Fix incorrect index - should be j not i. How did we ever
live without valgrind :-).
Jeremy.
Jeremy Allison [Fri, 29 Jun 2007 17:57:05 +0000 (17:57 +0000)]
r23663: Fix bug #4308 - Excel save operation corrupts file ACLs.
You don't want to know what I discovered about Windows
ACLs to make this work :-(. See :
http://www.codeproject.com/win32/accessctrl2.asp
Search for "Q. How does Inheritance come into this?"
for details.
Jeremy.
Volker Lendecke [Fri, 29 Jun 2007 17:51:31 +0000 (17:51 +0000)]
r23662: According to simo, check_dos_char is needed
Volker Lendecke [Fri, 29 Jun 2007 17:40:37 +0000 (17:40 +0000)]
r23661: Another static pstring
Volker Lendecke [Fri, 29 Jun 2007 17:27:59 +0000 (17:27 +0000)]
r23660: Anybody know what check_dos_char() was used for? It wasn't called at
all, so it's gone. With it 8k bss went away.
Volker Lendecke [Fri, 29 Jun 2007 17:09:39 +0000 (17:09 +0000)]
r23659: file_pload is not used outside of util_file.c
Volker Lendecke [Fri, 29 Jun 2007 16:04:26 +0000 (16:04 +0000)]
r23658: One pstring a day....
This one was particularly tasty, it was a static one. So 1k less
footprint per process.
Michael Adam [Fri, 29 Jun 2007 13:07:54 +0000 (13:07 +0000)]
r23657: Prevent setting of a global option in a share definition
in "net conf setparm".
Michael
Michael Adam [Fri, 29 Jun 2007 12:30:41 +0000 (12:30 +0000)]
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
Michael Adam [Fri, 29 Jun 2007 12:15:41 +0000 (12:15 +0000)]
r23655: Fix a comment and adjust some code formatting.
Michael
Günther Deschner [Fri, 29 Jun 2007 11:54:29 +0000 (11:54 +0000)]
r23654: Remove misleading inline comment.
Guenther
Michael Adam [Fri, 29 Jun 2007 10:22:18 +0000 (10:22 +0000)]
r23652: Use the recursive delete function instead of the original one
when deleting a share. Just to be sure...
Michael
Günther Deschner [Fri, 29 Jun 2007 09:58:11 +0000 (09:58 +0000)]
r23651: Always, always, always compile before commit...
Guenther
Günther Deschner [Fri, 29 Jun 2007 09:54:39 +0000 (09:54 +0000)]
r23650: Fix remaining callers of krb5_kt_default().
Guenther
Günther Deschner [Fri, 29 Jun 2007 09:42:14 +0000 (09:42 +0000)]
r23649: Fix the build (by moving smb_krb5_open_keytab() to clikrb5.c).
Guenther
Günther Deschner [Fri, 29 Jun 2007 09:01:29 +0000 (09:01 +0000)]
r23648: Allow to list a custom krb5 keytab file with:
net ads keytab list /path/to/krb5.keytab
Guenther
Günther Deschner [Fri, 29 Jun 2007 08:58:03 +0000 (08:58 +0000)]
r23647: Use smb_krb5_open_keytab() in smbd as well.
Guenther
Günther Deschner [Fri, 29 Jun 2007 08:56:35 +0000 (08:56 +0000)]
r23646: Generalize our internal keytab handling to support a broader range of default
keytabnames (like "ANY:FILE:/etc/krb5.keytab,krb4:/etc/srvtab"). This also
fixes keytab support with Heimdal (which supports the WRFILE pragma as well
now).
Guenther
Gerald Carter [Thu, 28 Jun 2007 19:27:30 +0000 (19:27 +0000)]
r23645: add examples and try to answer some common questions in the coding style guide
Michael Adam [Thu, 28 Jun 2007 10:32:52 +0000 (10:32 +0000)]
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
Jeremy Allison [Wed, 27 Jun 2007 22:45:08 +0000 (22:45 +0000)]
r23640: When we support the SeSecurity privilage, this is where
we'll check it.
Jeremy.
Michael Adam [Wed, 27 Jun 2007 22:10:25 +0000 (22:10 +0000)]
r23639: Eliminate trailing whitespaces in the new tdb_validate functions...
Michael
Gerald Carter [Wed, 27 Jun 2007 18:28:18 +0000 (18:28 +0000)]
r23636: Adding coding style guide for Samba 3.0 branches (no differences from Tridge's prog_guide.txt so we should have a similar style throughout the project)
Gerald Carter [Wed, 27 Jun 2007 16:52:36 +0000 (16:52 +0000)]
r23633: Fix a couple of crash bugs pointed out by Volker caused by an old
change from a pstring to a char* and still trying use pstrcpy().
Gerald Carter [Wed, 27 Jun 2007 16:52:34 +0000 (16:52 +0000)]
r23632: Correctly return the new_group list pointer from expand_groups
or else getgrnam() always acts like 'winbind expand groups = 1'
Günther Deschner [Wed, 27 Jun 2007 12:35:12 +0000 (12:35 +0000)]
r23630: Found out what LSA_LOOKUP_NAMES level 5 means:
only query transitive forest trusts.
Guenther
Günther Deschner [Wed, 27 Jun 2007 12:27:00 +0000 (12:27 +0000)]
r23628: Add LSA lookupnames_level to rpcclient.
Guenther
Günther Deschner [Wed, 27 Jun 2007 11:42:17 +0000 (11:42 +0000)]
r23627: Allow to pass down the lookup-level to rpccli_lsa_lookup_names().
Guenther
Günther Deschner [Wed, 27 Jun 2007 09:38:07 +0000 (09:38 +0000)]
r23625: Reformating WBFLAGs, just a cosmetic change.
Guenther
Günther Deschner [Wed, 27 Jun 2007 09:36:00 +0000 (09:36 +0000)]
r23624: Merge dos error code from samba4 (returned from dfs_Enum against w2k3 as soon
as a one DFS_VOLUME_FLAVOR_AD_BLOB dfsroot exists).
Guenther
Günther Deschner [Wed, 27 Jun 2007 09:23:50 +0000 (09:23 +0000)]
r23623: Fix rpcclient and rpc_server with new DFS idl.
Guenther
Günther Deschner [Wed, 27 Jun 2007 09:17:52 +0000 (09:17 +0000)]
r23622: regenerate dfs rpc gen_ndr.
Guenther
Günther Deschner [Wed, 27 Jun 2007 09:13:28 +0000 (09:13 +0000)]
r23621: Merge samba4 dfs rpc idl.
Guenther
Jeremy Allison [Tue, 26 Jun 2007 22:49:10 +0000 (22:49 +0000)]
r23620: Convert set_nt_acl to return NTSTATUS. Also fix the chown
return to correctly return NT_STATUS_INVALID_OWNER if it
should be disallowed. Matches better what W2K3R3 does.
NFSv4 ACL module owners, please examine these changes.
Jeremy.
Gerald Carter [Tue, 26 Jun 2007 21:22:01 +0000 (21:22 +0000)]
r23619: Fix compile warning in fill_grent_mem() caused by mismatched counter size.
Jim McDonough [Tue, 26 Jun 2007 20:09:41 +0000 (20:09 +0000)]
r23616: Fix bugzilla #4719: must change password is not set from usrmgr.exe.
This was only affecting the newer versions of usrmgr.exe, because they
use a user_info_25 struct. The password is getting set separately
inside that code, so the password last set time was getting set from the
password change logic.
We also were not parsing a number of fields (like logon hours) from the
user_info_25. That should also be fixed.
Volker Lendecke [Tue, 26 Jun 2007 19:15:26 +0000 (19:15 +0000)]
r23612: Revert 'net idmap dump' to the 3.0.24 behaviour.
James Peach [Tue, 26 Jun 2007 18:18:44 +0000 (18:18 +0000)]
r23611: Fix typo in error message.
Michael Adam [Tue, 26 Jun 2007 13:45:07 +0000 (13:45 +0000)]
r23610: Move some winbindd_cache specific flags and actions
back to winbindd_cache.c. The generic mechanism
should open the cache tdb readonly and with default
flags.
Michael
Günther Deschner [Tue, 26 Jun 2007 10:19:06 +0000 (10:19 +0000)]
r23609: Removing more redundant codepaths out of smb_krb5_renew_ticket().
Thanks Volker for the pointer hint :)
Guenther
Günther Deschner [Tue, 26 Jun 2007 09:41:14 +0000 (09:41 +0000)]
r23608: Just inline comment cosmetics.
Guenther
Günther Deschner [Tue, 26 Jun 2007 09:15:37 +0000 (09:15 +0000)]
r23607: Add legacy support for Services for Unix (SFU) 2.0.
Guenther
Kai Blin [Tue, 26 Jun 2007 09:10:30 +0000 (09:10 +0000)]
r23606: Merge Samba4 mkversion.sh to Samba3.
Gerald Carter [Tue, 26 Jun 2007 00:52:19 +0000 (00:52 +0000)]
r23601: BUG 4579: Don't mark the SAM domain on a Samba DC as an internal domain or else all network connections from the local winbindd will fail
Michael Adam [Mon, 25 Jun 2007 20:17:04 +0000 (20:17 +0000)]
r23600: First step in abstracting the winbindd cache validation
code into a generic tdb validation code.
In lib/util_tdb.c for a start.
Michael
Gerald Carter [Mon, 25 Jun 2007 15:23:19 +0000 (15:23 +0000)]
r23599: Add new version of indent script copied from the the Linux
kernel tree.
Gerald Carter [Mon, 25 Jun 2007 15:18:41 +0000 (15:18 +0000)]
r23598: Add script for running indent and remove .indent.pro file
Gerald Carter [Mon, 25 Jun 2007 14:40:59 +0000 (14:40 +0000)]
r23597: add a few utility scripts for code formatting
Volker Lendecke [Mon, 25 Jun 2007 11:45:54 +0000 (11:45 +0000)]
r23596: Add notes about smbfs/cifs to usage() in smb[u]mount
Volker Lendecke [Sun, 24 Jun 2007 13:40:58 +0000 (13:40 +0000)]
r23595: One pstring a day...
Volker Lendecke [Sun, 24 Jun 2007 13:24:20 +0000 (13:24 +0000)]
r23594: Fix parsing of local pids if cluster support is compiled in but no
cluster is used
Michael Adam [Fri, 22 Jun 2007 22:37:07 +0000 (22:37 +0000)]
r23593: Mention "net conf" in top level net usage.
Michael
Michael Adam [Fri, 22 Jun 2007 22:30:01 +0000 (22:30 +0000)]
r23592: Change a debuglevel to not clutter output when calling
net as a non-root user, e.g.
Michael