Jelmer Vernooij [Fri, 24 Oct 2008 02:39:09 +0000 (04:39 +0200)]
Avoid retrieving iconv convenience during loops.
Jelmer Vernooij [Fri, 24 Oct 2008 02:38:31 +0000 (04:38 +0200)]
Remove const so return value can be freed.
Jelmer Vernooij [Fri, 24 Oct 2008 02:19:08 +0000 (04:19 +0200)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba
Jelmer Vernooij [Fri, 24 Oct 2008 02:18:47 +0000 (04:18 +0200)]
Fix merged build paths.
Jelmer Vernooij [Fri, 24 Oct 2008 02:00:07 +0000 (04:00 +0200)]
Just hardcode workgroup to empty string, to avoid use of
global_loadparm.
Jelmer Vernooij [Fri, 24 Oct 2008 01:40:09 +0000 (03:40 +0200)]
Remove iconv_convenience parameter from simple string push/pull
functions.
Jelmer Vernooij [Fri, 24 Oct 2008 00:58:12 +0000 (02:58 +0200)]
Fix include path to pytalloc.
Jelmer Vernooij [Fri, 24 Oct 2008 00:52:51 +0000 (02:52 +0200)]
Move pytalloc to talloc directory.
Jelmer Vernooij [Fri, 24 Oct 2008 00:51:03 +0000 (02:51 +0200)]
Split up codepoints code, use consistent _m suffix.
Tim Prouty [Thu, 23 Oct 2008 23:35:53 +0000 (16:35 -0700)]
s3: fix simple "incompatible pointer type" build warning
Jelmer Vernooij [Thu, 23 Oct 2008 23:19:33 +0000 (01:19 +0200)]
Rename string_replace_w to string_replace_m, which is more correct.
Jelmer Vernooij [Thu, 23 Oct 2008 23:18:56 +0000 (01:18 +0200)]
Remove unnecessary include, improve function name.
Tim Prouty [Thu, 23 Oct 2008 20:41:44 +0000 (13:41 -0700)]
Fix "ndr_size_PAC_LOGON_INFO defined but not used" build warning
This patch removes the gensize option from krb5pac.idl because it
generates an unused function that has been causing warnings during the
s3 build. I re-ran 'make samba3-idl' to update the generated files
for s3. For s4 I ran a full build with no problems.
Günther Deschner [Thu, 23 Oct 2008 22:05:05 +0000 (00:05 +0200)]
netapi: make sure to always cleanup after testing NetUser calls.
Guenther
Jelmer Vernooij [Thu, 23 Oct 2008 22:06:35 +0000 (00:06 +0200)]
Move charset library to top level.
Günther Deschner [Thu, 23 Oct 2008 21:13:09 +0000 (23:13 +0200)]
netapi: add more group tests to netapitest.
Guenther
Günther Deschner [Thu, 23 Oct 2008 21:11:50 +0000 (23:11 +0200)]
s3-samr-server: return NT_STATUS_NOT_SUPPORTED for group rename.
Guenther
Günther Deschner [Thu, 23 Oct 2008 20:26:21 +0000 (22:26 +0200)]
s3-samr-server: remove unused historic code.
Guenther
Günther Deschner [Thu, 23 Oct 2008 18:43:11 +0000 (20:43 +0200)]
svcctl: move some non-rpc related bits out of rpc_svcctl.h.
Guenther
Jelmer Vernooij [Thu, 23 Oct 2008 21:21:16 +0000 (23:21 +0200)]
Merge branch 'master' of git://git.samba.org/samba
Jelmer Vernooij [Thu, 23 Oct 2008 21:20:50 +0000 (23:20 +0200)]
Fix prototype for set_sockaddr_port.
Jelmer Vernooij [Thu, 23 Oct 2008 20:10:08 +0000 (22:10 +0200)]
Fix function parameters.
Jelmer Vernooij [Thu, 23 Oct 2008 19:59:15 +0000 (21:59 +0200)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba
Jelmer Vernooij [Thu, 23 Oct 2008 19:49:40 +0000 (21:49 +0200)]
Make lp_tls_* return absolute paths.
Jelmer Vernooij [Thu, 23 Oct 2008 19:30:41 +0000 (21:30 +0200)]
Move subunit ui ops out of smbtorture to the torture library.
Tim Prouty [Thu, 23 Oct 2008 18:15:13 +0000 (11:15 -0700)]
Fix "parameter has incomplete type" build warning.
When libcli-util was moved to the top level
(
3be0f6ea56ed8e43cd287ed020e942efb675b87b) it introduced a build
warning. Since ndr_map_error2ntstatus depends on the definition of
enum ndr_err_code and libndr.h can't be easily included in error.h, I
moved the definition of enum ndr_err_code to libndr.h.
This also eliminates the need for the duplicate definition in proto.h
Jelmer Vernooij [Thu, 23 Oct 2008 19:08:13 +0000 (21:08 +0200)]
Move set_sockaddr_port to libutil.
Jelmer Vernooij [Thu, 23 Oct 2008 18:50:59 +0000 (20:50 +0200)]
Merge branch 'master' of git://git.samba.org/samba
Jelmer Vernooij [Thu, 23 Oct 2008 18:42:30 +0000 (20:42 +0200)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba
Jelmer Vernooij [Thu, 23 Oct 2008 18:41:15 +0000 (20:41 +0200)]
Use common net utility code (address and sockaddr manipulation).
Günther Deschner [Thu, 23 Oct 2008 17:26:44 +0000 (19:26 +0200)]
s3-build: add missing generated svcctl changes.
Guenther
Jelmer Vernooij [Thu, 23 Oct 2008 17:56:09 +0000 (19:56 +0200)]
Rename same_net to same_net_v4 for consistency with Samba 3.
Jelmer Vernooij [Thu, 23 Oct 2008 17:53:15 +0000 (19:53 +0200)]
Use sockaddr_storage only where we rely on the size, use sockaddr
otherwise (to clarify we can also pass in structs smaller than
sockaddr_storage, such as sockaddr_in).
Jelmer Vernooij [Thu, 23 Oct 2008 16:56:37 +0000 (18:56 +0200)]
Remove support for obsolete data type "ipv4address"
Jelmer Vernooij [Thu, 23 Oct 2008 16:50:34 +0000 (18:50 +0200)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba
Jelmer Vernooij [Thu, 23 Oct 2008 16:46:35 +0000 (18:46 +0200)]
Use libutil genrand.
Günther Deschner [Thu, 23 Oct 2008 16:34:28 +0000 (18:34 +0200)]
s3-build: remove duplicate svcctl bits and re-run make samba3-idl.
Guenther
Günther Deschner [Thu, 23 Oct 2008 16:33:49 +0000 (18:33 +0200)]
idl: add svcctl specific access bits.
Guenther
Jelmer Vernooij [Thu, 23 Oct 2008 16:13:25 +0000 (18:13 +0200)]
Remove unused constants from local.h.
Jelmer Vernooij [Thu, 23 Oct 2008 16:04:16 +0000 (18:04 +0200)]
Merge branch 'master' of git://git.samba.org/samba
Conflicts:
lib/util/asn1_proto.h
Jelmer Vernooij [Thu, 23 Oct 2008 16:03:20 +0000 (18:03 +0200)]
Inline asn1_proto.h since the API is stable and public.
Jelmer Vernooij [Thu, 23 Oct 2008 15:51:30 +0000 (17:51 +0200)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba
Volker Lendecke [Thu, 23 Oct 2008 15:42:45 +0000 (17:42 +0200)]
Make use of a large buffer for smbclient put command
Volker Lendecke [Thu, 23 Oct 2008 13:43:36 +0000 (15:43 +0200)]
Optimize x_fread to speed up the smbclient put command
Jelmer Vernooij [Thu, 23 Oct 2008 15:27:30 +0000 (17:27 +0200)]
Import talloc_stack into util library.
Jelmer Vernooij [Thu, 23 Oct 2008 15:12:16 +0000 (17:12 +0200)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba
Jelmer Vernooij [Thu, 23 Oct 2008 15:04:16 +0000 (17:04 +0200)]
Merge branch 'master' of git://git.samba.org/samba
Jelmer Vernooij [Thu, 23 Oct 2008 14:58:11 +0000 (16:58 +0200)]
Share codepages.
Günther Deschner [Thu, 23 Oct 2008 14:44:29 +0000 (16:44 +0200)]
s3-docs: fix typos in locator manpage found by metze.
Guenther
Jelmer Vernooij [Thu, 23 Oct 2008 14:42:45 +0000 (16:42 +0200)]
selftest.pl: Silence verbose tdbsam output.
Günther Deschner [Thu, 23 Oct 2008 14:40:23 +0000 (16:40 +0200)]
s3-docs: add very basic winbind_krb5_locator.7 manpage.
Guenther
Jelmer Vernooij [Thu, 23 Oct 2008 13:37:39 +0000 (15:37 +0200)]
Use WERR_FILE_EXISTS which is the equivalent of WERR_ALREADY_EXISTS
previously present in Samba 3.
Jelmer Vernooij [Thu, 23 Oct 2008 13:35:21 +0000 (15:35 +0200)]
Use common error definitions.
Günther Deschner [Thu, 23 Oct 2008 09:45:41 +0000 (11:45 +0200)]
s3-build: fix another build warning with the new ASN1 code.
Guenther
Günther Deschner [Thu, 23 Oct 2008 01:32:38 +0000 (03:32 +0200)]
netapi: fix add_GROUP_USERS_INFO_X_buffer.
Guenther
Günther Deschner [Thu, 23 Oct 2008 01:32:15 +0000 (03:32 +0200)]
netapi: fix NetUserGetGroups_r returning partial results.
Guenther
Günther Deschner [Thu, 23 Oct 2008 01:31:32 +0000 (03:31 +0200)]
s3-samr-server: unify callback convention: _samr_UserSetInfo.
Guenther
Günther Deschner [Thu, 23 Oct 2008 01:30:58 +0000 (03:30 +0200)]
s3-samr-server: unify callback convention: _samr_QueryDomainInfo.
Guenther
Günther Deschner [Thu, 23 Oct 2008 01:30:14 +0000 (03:30 +0200)]
s3-samr-server: fix return code in _samr_QueryDisplayInformation.
Guenther
Jelmer Vernooij [Thu, 23 Oct 2008 02:58:08 +0000 (04:58 +0200)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba
Jelmer Vernooij [Thu, 23 Oct 2008 02:57:44 +0000 (04:57 +0200)]
Fix header file installation.
Andrew Bartlett [Thu, 23 Oct 2008 01:56:30 +0000 (12:56 +1100)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba into master-devel
Andrew Bartlett [Thu, 23 Oct 2008 01:50:22 +0000 (12:50 +1100)]
Clarify the linked attribute module behaviour with comments
Jelmer Vernooij [Thu, 23 Oct 2008 01:29:20 +0000 (03:29 +0200)]
Import NTSTATUS defines from Samba 3.
Jelmer Vernooij [Thu, 23 Oct 2008 01:25:00 +0000 (03:25 +0200)]
Import WERROR defines from Samba 3.
Jelmer Vernooij [Thu, 23 Oct 2008 01:13:08 +0000 (03:13 +0200)]
Import new DOS error codes from Samba 3.
Jelmer Vernooij [Thu, 23 Oct 2008 01:11:19 +0000 (03:11 +0200)]
Move libcli-util error code to top-level.
Jelmer Vernooij [Thu, 23 Oct 2008 01:07:27 +0000 (03:07 +0200)]
Remove unused copy of tables.pl
Jelmer Vernooij [Thu, 23 Oct 2008 01:04:48 +0000 (03:04 +0200)]
Remove unused copy of ndrdump.c.
Günther Deschner [Thu, 23 Oct 2008 00:18:09 +0000 (02:18 +0200)]
s4-smbtorture: fix build warning.
Guenther
Günther Deschner [Wed, 22 Oct 2008 23:43:41 +0000 (01:43 +0200)]
s3-build: fix some const build warnings.
Guenther
Günther Deschner [Wed, 22 Oct 2008 23:43:06 +0000 (01:43 +0200)]
netapi: NetGroupEnum_r needs to handle servers with no groups.
Guenther
Günther Deschner [Wed, 22 Oct 2008 23:42:27 +0000 (01:42 +0200)]
s3-samr-server: _samr_DeleteUser needs to wipe out the user_handle on success.
Guenther
Günther Deschner [Wed, 22 Oct 2008 21:16:19 +0000 (23:16 +0200)]
s3-samr-server: fix access check in _samr_QuerySecurity().
Guenther
Günther Deschner [Wed, 22 Oct 2008 20:44:04 +0000 (22:44 +0200)]
s3-build: fix the build.
Guenther
Jeremy Allison [Wed, 22 Oct 2008 20:21:23 +0000 (13:21 -0700)]
Fix net rpc vampire, based on an *amazing* piece of debugging work by "Cooper S. Blake" <the_analogkid@yahoo.com>.
"I believe I have found two bugs in the 3.2 code and one bug that
carried on to the 3.3 branch. In the 3.2 code, everything is
located in the utils/net_rpc_samsync.c file. What I believe is the
first problem is that fetch_database() is calling
samsync_fix_delta_array() with rid_crypt set to true, which means
the password hashes are unencrypted from the RID encryption.
However, I believe this call is redundant, and the corresponding
call for samdump has rid_crypt set to false. So I think the
rid_crypt param should be false in fetch_database().
If you follow the code, it makes its way to sam_account_from_delta()
where the password hashes are decrypted a second time by calling
sam_pwd_hash(). I believe this is what is scrambling my passwords.
These methods were refactored somewhere in the 3.3 branch. Now the
net_rpc_samsync.c class calls rpc_vampire_internals, which calls
libnet/libnet_samsync.c, which calls samsync_fix_delta_array() with
rid_crypt always set to false. I think that's correct. But the
second bug has carried through in the sam_account_from_delta()
function:
208 if (memcmp(r->ntpassword.hash, zero_buf, 16) != 0) {
209 sam_pwd_hash(r->rid, r->ntpassword.hash, lm_passwd, 0);
210 pdb_set_lanman_passwd(account, lm_passwd, PDB_CHANGED);
211 }
212
213 if (memcmp(r->lmpassword.hash, zero_buf, 16) != 0) {
214 sam_pwd_hash(r->rid, r->lmpassword.hash, nt_passwd, 0);
215 pdb_set_nt_passwd(account, nt_passwd, PDB_CHANGED);
If you look closely you'll see that the nt hash is going into the
lm_passwd variable and the decrypted value is being set in the lanman
hash, and the lanman hash is being decrypted and put into the nt hash
field. So the LanMan and NT hashes look like they're being put in
the opposite fields."
Fix this by removing the rid_crypt parameter.
Jeremy.
Günther Deschner [Wed, 22 Oct 2008 19:57:26 +0000 (21:57 +0200)]
s3-build: temporarily add asn1_proto file.
Jelmer, how can we get this autogenerated from samba3 in the non merged-build
case ?
Guenther
Günther Deschner [Wed, 22 Oct 2008 17:23:49 +0000 (19:23 +0200)]
s3-asn1: make all of s3 asn1 code do a proper asn1_init() first.
Guenther
Günther Deschner [Wed, 22 Oct 2008 16:57:59 +0000 (18:57 +0200)]
s3-asn1/spnego: use OIDs including dots.
Guenther
Günther Deschner [Wed, 22 Oct 2008 12:06:08 +0000 (14:06 +0200)]
s3: use shared asn1 code.
Guenther
Günther Deschner [Wed, 22 Oct 2008 12:01:53 +0000 (14:01 +0200)]
s3-spnego: move spnego defines to spnego.h
Guenther
Günther Deschner [Wed, 22 Oct 2008 12:03:43 +0000 (14:03 +0200)]
lib-util: merge from s3 asn1.
Guenther
Günther Deschner [Wed, 22 Oct 2008 12:02:31 +0000 (14:02 +0200)]
lib-util: fix c++ compile warning.
Guenther
Volker Lendecke [Wed, 22 Oct 2008 15:01:28 +0000 (17:01 +0200)]
Slightly simplify reply_sesssetup_blob(): Remove an else branch
Volker Lendecke [Wed, 22 Oct 2008 14:59:08 +0000 (16:59 +0200)]
Don't push the data out to the client in reply_sesssetup_blob()
Sending the data at this level breaks the assumption at higher levels that
req->outbuf == NULL means this request is deferred. It also breaks potential
chaining (Kerberos session setup and tcon X in one request)
Jelmer Vernooij [Wed, 22 Oct 2008 15:00:49 +0000 (17:00 +0200)]
Remove unused header file.
Jelmer Vernooij [Wed, 22 Oct 2008 14:57:46 +0000 (16:57 +0200)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba
Jelmer Vernooij [Wed, 22 Oct 2008 14:56:06 +0000 (16:56 +0200)]
masktest: Avoid creating new memory context, use dynamic allocation.
Jelmer Vernooij [Wed, 22 Oct 2008 14:49:56 +0000 (16:49 +0200)]
Change some dynamic allocations back to static buffers to fix build.
Volker Lendecke [Wed, 22 Oct 2008 14:14:26 +0000 (16:14 +0200)]
Fix a debug message in send_nt_replies()
Volker Lendecke [Wed, 22 Oct 2008 12:26:05 +0000 (14:26 +0200)]
Fix bug 5840: Segfault in "rpcclient lsaaddacctrights"
Jelmer Vernooij [Wed, 22 Oct 2008 03:24:00 +0000 (05:24 +0200)]
Change buffer size back to 256, just to be sure.
Jelmer Vernooij [Wed, 22 Oct 2008 03:14:14 +0000 (05:14 +0200)]
Repel pstring to nsswitch/.
Jelmer Vernooij [Wed, 22 Oct 2008 02:30:54 +0000 (04:30 +0200)]
Remove pstring usage.
Jelmer Vernooij [Wed, 22 Oct 2008 02:25:00 +0000 (04:25 +0200)]
Remove pstring usages.
Jelmer Vernooij [Wed, 22 Oct 2008 02:09:17 +0000 (04:09 +0200)]
Require separate option for quicktest include list rather than making
assumptions about it.
Jelmer Vernooij [Wed, 22 Oct 2008 02:05:22 +0000 (04:05 +0200)]
Fix path for quicktest.
Jelmer Vernooij [Wed, 22 Oct 2008 01:41:24 +0000 (03:41 +0200)]
Use standard types.
Jeremy Allison [Wed, 22 Oct 2008 01:05:48 +0000 (18:05 -0700)]
Cope with MAXIMUM_ALLOWED_ACCESS requests when opening handles.
Jeremy.
Jelmer Vernooij [Tue, 21 Oct 2008 16:49:43 +0000 (18:49 +0200)]
Don't include a (relative path) srcdir in samba4-data.mk.