15 years agor4360: destroy the gensec context
Stefan Metzmacher [Sat, 25 Dec 2004 14:06:55 +0000 (14:06 +0000)]
r4360: destroy the gensec context

(This used to be commit a25770983b34bac5bd7dcce69241716386dc8509)

15 years agor4359: using talloc_free() of a child struct in a talloc_destructor is useless
Stefan Metzmacher [Sat, 25 Dec 2004 14:01:19 +0000 (14:01 +0000)]
r4359: using talloc_free() of a child struct in a talloc_destructor is useless

(This used to be commit e51f2cf43f2cbcf3c3bbb00abc99f1bddb9f7f35)

15 years agor4358: At metze's request, the Christmas elves have removed gensec_end in
Andrew Bartlett [Fri, 24 Dec 2004 23:02:39 +0000 (23:02 +0000)]
r4358: At metze's request, the Christmas elves have removed gensec_end in
favor of talloc_free().

Andrew Bartlett
(This used to be commit 1933cd12fbaed56e13f2386b19de6ade99bf9478)

15 years agor4357: Return a more sensible error code if a NULL (as opposed to the valid
Andrew Bartlett [Fri, 24 Dec 2004 10:56:23 +0000 (10:56 +0000)]
r4357: Return a more sensible error code if a NULL (as opposed to the valid
"") username is asked for.

Andrew Bartlett
(This used to be commit 9c9055603e1171e204f67b019900339f88414841)

15 years agor4356: Allow anonymous connections to use NTLMSSP. The silly bugs that
Andrew Bartlett [Fri, 24 Dec 2004 09:57:44 +0000 (09:57 +0000)]
r4356: Allow anonymous connections to use NTLMSSP.  The silly bugs that
prevented this are gone.

Andrew Bartlett
(This used to be commit 87dad5ec538abad93d621078a82f162675847f9f)

15 years agor4355: More work from the elves on Christmas eve:
Andrew Bartlett [Fri, 24 Dec 2004 09:54:23 +0000 (09:54 +0000)]
r4355: More work from the elves on Christmas eve:

 - Update Samba4's kerberos code to match the 'salting' changes in
   Samba3 (and many other cleanups by jra).

 - Move GENSEC into the modern era of talloc destructors.  This avoids
   many of the memory leaks in this code, as we now can't somehow
   'forget' to call the end routine.
  - This required fixing some of the talloc hierarchies.

 - The new krb5 seems more sensitive to getting the service name
   right, so start actually setting the service name on the krb5 context.

Andrew Bartlett
(This used to be commit 278bf1a61a6da6ef955a12c13d7b1a0357cebf1f)

15 years agor4354: The ldb databases do not go in lib/private, but in private/ under PREFIX
Andrew Bartlett [Fri, 24 Dec 2004 06:39:18 +0000 (06:39 +0000)]
r4354: The ldb databases do not go in lib/private, but in private/ under PREFIX

Andrew Bartlett
(This used to be commit 9ccb2a39c34766d620059a56a925cb749a0ad6f4)

15 years agor4349: Start to fix the long-standing pain that --with-krb5 would be ignored if krb5...
Andrew Bartlett [Thu, 23 Dec 2004 21:48:32 +0000 (21:48 +0000)]
r4349: Start to fix the long-standing pain that --with-krb5 would be ignored if krb5-config was in the path.

I'll merge this to Samba3, before trying to merge all of the Samba3
changes to Samba4.

Andrew Bartlett
(This used to be commit 906ba7cb8af02d44c868805e0b108b966f3221af)

15 years agor4345: Unify the representation of grouptype and samaccounttype to hex. Without any
Volker Lendecke [Thu, 23 Dec 2004 12:14:12 +0000 (12:14 +0000)]
r4345: Unify the representation of grouptype and samaccounttype to hex. Without any
kind of schema support we only have string comparisons (Hmm. Is this true?)
and must agree upon a common representation for integers. I suspect that we
might sooner or later need a search filter for "This bit in this integer
attrib is being set".

(This used to be commit 5f2d93b66bc89d499c91638f9b71394768d135af)

15 years agor4344: Unify memory handling in dcerpc_samr.c a bit
Volker Lendecke [Thu, 23 Dec 2004 12:02:55 +0000 (12:02 +0000)]
r4344: Unify memory handling in dcerpc_samr.c a bit
(This used to be commit 79ec28ade826c6a36e129abbe1e0a207074c676f)

15 years agor4342: Fix a memory leak in init_globals().
Andrew Bartlett [Thu, 23 Dec 2004 06:39:58 +0000 (06:39 +0000)]
r4342: Fix a memory leak in init_globals().

Andrew Bartlett
(This used to be commit cc47b4c6fc932f8257506276eaa1a98a41055f8b)

15 years agor4341: Fix const warning.
Tim Potter [Thu, 23 Dec 2004 04:09:25 +0000 (04:09 +0000)]
r4341: Fix const warning.
(This used to be commit d8b1ba93a8ed0d5d01cb05b1c14353a0eca4de3e)

15 years agor4340: - simplify lsa_GetUserName() server code,
Stefan Metzmacher [Thu, 23 Dec 2004 03:02:57 +0000 (03:02 +0000)]
r4340: - simplify lsa_GetUserName() server code,
  we don't need to do db lookups as we already known who the user is

(This used to be commit cef0d1eb29c6c5d41591a5c0beaed1dc26961211)

15 years agor4339: - rename auth_guest to auth_anonymous
Stefan Metzmacher [Thu, 23 Dec 2004 03:00:55 +0000 (03:00 +0000)]
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

(This used to be commit 7fcbd483d4977cf6483f34ddd28e6c0182897ba2)

15 years agor4338: reuse netlogon structs in the krb5 PAC
Stefan Metzmacher [Thu, 23 Dec 2004 02:23:42 +0000 (02:23 +0000)]
r4338: reuse netlogon structs in the krb5 PAC
that simplifies the code a lot...

also add a note: we should fail the krb5 auth if there's no
PAC present (when heimdal is ready for that:-)

(This used to be commit 532641a7003d23b034a253d166482f18c2de6191)

15 years agor4335: Fix some potential memleaks, implement CreateDomAlias. Hmmmm. Isn't there
Volker Lendecke [Wed, 22 Dec 2004 22:19:54 +0000 (22:19 +0000)]
r4335: Fix some potential memleaks, implement CreateDomAlias. Hmmmm. Isn't there
enough stuff to do in 3_0??? ;-)

(This used to be commit c0fa7a92d9f602dc50801a9827e121c2b095a336)

15 years agor4332: Fix a potential memleak.
Volker Lendecke [Wed, 22 Dec 2004 21:20:12 +0000 (21:20 +0000)]
r4332: Fix a potential memleak.

(This used to be commit 8f2b9c9d320dbea197808081528477d7e4c816d1)

15 years agor4328: mark the talloc data as DATA_BLOB
Stefan Metzmacher [Tue, 21 Dec 2004 15:23:33 +0000 (15:23 +0000)]
r4328: mark the talloc data as DATA_BLOB

(This used to be commit ad84e3b2e3b48406576a8ba2ebfd218cddae135d)

15 years agor4327: add usefull function if you don't want that the data will talloc_memdup()'ed
Stefan Metzmacher [Tue, 21 Dec 2004 15:15:49 +0000 (15:15 +0000)]
r4327: add usefull function if you don't want that the data will talloc_memdup()'ed

(This used to be commit 1f01e370b192fc8fa51eb3a46e7b45c993aa9b80)

15 years agor4326: fix memory leak
Stefan Metzmacher [Tue, 21 Dec 2004 15:01:53 +0000 (15:01 +0000)]
r4326: fix memory leak

(This used to be commit 1ceeb77fc716729c69f2dba4a84579c366eefa1c)

15 years agor4325: add the GENSEC_FEATURE_DCE_STYLE flag
Stefan Metzmacher [Tue, 21 Dec 2004 12:39:39 +0000 (12:39 +0000)]
r4325: add the GENSEC_FEATURE_DCE_STYLE flag
this will be used by krb5 dcerpc auth

(This used to be commit 04dc7fb9b24a1e38f31559ec6032701a176209ae)

15 years agor4324: add some more ads constants before I forget them
Stefan Metzmacher [Tue, 21 Dec 2004 12:26:12 +0000 (12:26 +0000)]
r4324: add some more ads constants before I forget them

(This used to be commit 705af52cb163de780c4ba5a1d84acd6c53909918)

15 years agor4323: - implement the lsa_GetUserName() server call
Stefan Metzmacher [Tue, 21 Dec 2004 12:22:57 +0000 (12:22 +0000)]
r4323: - implement the lsa_GetUserName() server call

- give lsa_lookup_sid() a chance with foreign SIDS
  returning NT_STATUS_NO_MEMORY makes no sense here
  as the ldb_msg_find_string() doesn't allocate the string

(This used to be commit b43f34e87354c82a3392a0ba99b38b4c7185e47c)

15 years agor4322: use a nicer name
Stefan Metzmacher [Tue, 21 Dec 2004 12:00:30 +0000 (12:00 +0000)]
r4322: use a nicer name

(This used to be commit f8ea82cbd1856f589132e2a96b8d658745036b3e)

15 years agor4321: objectClass trustedDomain uses "securityIdentifier" for the sid
Stefan Metzmacher [Tue, 21 Dec 2004 11:52:53 +0000 (11:52 +0000)]
r4321: objectClass trustedDomain uses "securityIdentifier" for the sid

also explicit tell the fill_info code what kind of object the current
result is.

(This used to be commit 6d74d31e50cd8f9d37fca53ef32bd50952a3a759)

15 years agor4320: fix locations of new trusting domains and domsin controller
Stefan Metzmacher [Tue, 21 Dec 2004 11:49:36 +0000 (11:49 +0000)]
r4320: fix locations of new trusting domains and domsin controller
computer accounts

(This used to be commit f75c2004a0fc889ce5d96790f7d1d5031bce3992)

15 years agor4319: make it easy to use valgrind in the test suite
Andrew Tridgell [Tue, 21 Dec 2004 11:49:01 +0000 (11:49 +0000)]
r4319: make it easy to use valgrind in the test suite
(This used to be commit 7c09a3ea581e08bb34972d657d11d7e03b832b65)

15 years agor4318: add missing template for trusting domains
Stefan Metzmacher [Tue, 21 Dec 2004 11:48:32 +0000 (11:48 +0000)]
r4318: add missing template for trusting domains

(This used to be commit 32264c6c30c67372ce6f0b2f0914c43a1a6eb5ea)

15 years agor4317: check the count of replies in the os2 ea_list torture test
Andrew Tridgell [Tue, 21 Dec 2004 11:48:13 +0000 (11:48 +0000)]
r4317: check the count of replies in the os2 ea_list torture test
(This used to be commit 10861b3fa0cbba7f5e0ec3377431a85608a13a32)

15 years agor4316: - now that the trans2 code properly supports multi-part requests, we can set
Andrew Tridgell [Tue, 21 Dec 2004 11:47:08 +0000 (11:47 +0000)]
r4316: - now that the trans2 code properly supports multi-part requests, we can set
  a maximum sized max_data in libcli trans2 code

- fixed string termination in the EA_LIST trans2 findfirst level
(This used to be commit a2a5f147f4faac8a48ff8f1b3e5f1334c92575bb)

15 years agor4315: use the remote hosts max_xmit, not the local hosts, in calculating max trans2...
Andrew Tridgell [Tue, 21 Dec 2004 11:45:37 +0000 (11:45 +0000)]
r4315: use the remote hosts max_xmit, not the local hosts, in calculating max trans2 data sizes
(This used to be commit 827008cfebf29d081b457ba7162d89c8150cb24b)

15 years agor4314: added ACL checking on unlink
Andrew Tridgell [Tue, 21 Dec 2004 11:44:32 +0000 (11:44 +0000)]
r4314: added ACL checking on unlink
(This used to be commit f25c469693517ed993e0379d8b07cd7eb235a669)

15 years agor4313: fixed a bug in handling new xattrs in the tdb xattr backend
Andrew Tridgell [Tue, 21 Dec 2004 11:43:46 +0000 (11:43 +0000)]
r4313: fixed a bug in handling new xattrs in the tdb xattr backend
(This used to be commit c66b5a100c1b83adf034087fe2ce49fc77d84161)

15 years agor4310: fixed the authority_name field in lsa_GetUserName()
Andrew Tridgell [Tue, 21 Dec 2004 10:05:02 +0000 (10:05 +0000)]
r4310: fixed the authority_name field in lsa_GetUserName()
(This used to be commit f78506697ad23456fcac6e8916d0dad05b0df6cc)

15 years agor4309: idl and torture test for lsa_GetUserName()
Stefan Metzmacher [Tue, 21 Dec 2004 09:41:21 +0000 (09:41 +0000)]
r4309: idl and torture test for lsa_GetUserName()

why does samba3 return domain_name as in the unknown_name field in the code
and on the wire it returns DCERPC_FAULT_OP_RNG_ERROR?

all of my test machines NT4,W2K,W2K3,XP returned NULL

and if I file the string in the .in.* the server echos the strings back

(This used to be commit 67e765b7e984d7aac2a7786b5bd0c80d10d6de5d)

15 years agor4308: [out,ref] pointer needs to set (don't corrupt the stack and segfault)
Stefan Metzmacher [Tue, 21 Dec 2004 09:33:12 +0000 (09:33 +0000)]
r4308: [out,ref] pointer needs to set (don't corrupt the stack and segfault)


PS: <tridge> "silly tridge forgot a out [ref] var" :-)
(This used to be commit a46c68a80001f5fe9d37cc4ce374071b6fe63076)

15 years agor4303: a bit more consistent help on privileges commands in smbclient
Andrew Tridgell [Tue, 21 Dec 2004 03:29:09 +0000 (03:29 +0000)]
r4303: a bit more consistent help on privileges commands in smbclient
(This used to be commit 2d2e9e6373be153f991ee899e9d66cd3979e309f)

15 years agor4302: fixed all of the annoying gtk warnings. The code all seems to still work, but
Andrew Tridgell [Tue, 21 Dec 2004 03:28:26 +0000 (03:28 +0000)]
r4302: fixed all of the annoying gtk warnings. The code all seems to still work, but
given my lack of gtk experience, there are no guarantees.
(This used to be commit 11277b38a473022eb59f896d5e23aa1e56786008)

15 years agor4299: Store REG_SZ, REG_EXPAND_SZ and REG_DWORD values in human-readable (and human...
Jelmer Vernooij [Tue, 21 Dec 2004 00:31:18 +0000 (00:31 +0000)]
r4299: Store REG_SZ, REG_EXPAND_SZ and REG_DWORD values in human-readable (and human-editable) format in
the ldb registry backend.
(This used to be commit 6eafd055d1a7d45734a0112228e18ee59d1f7867)

15 years agor4298: Update to credentials.h after feedback from Andrew Bartlett
Jelmer Vernooij [Tue, 21 Dec 2004 00:01:02 +0000 (00:01 +0000)]
r4298: Update to credentials.h after feedback from Andrew Bartlett
Move pack/unpack of values in ldb registry backend to seperate functions
(This used to be commit ceb4e92735f6dae96bb0b9d98211c9808159e56a)

15 years agor4288: don't use struct dcerpc_interface_table anymore in the
Stefan Metzmacher [Mon, 20 Dec 2004 14:37:54 +0000 (14:37 +0000)]
r4288: don't use struct dcerpc_interface_table anymore in the
main rpc server code. let the backends specify a ndr_push/ndr_pull function
like we already do with the dispatch() function.

this allows an interface implmentation to work as real proxy
without needing to know the idl for an interface that means
just the plain decrypted payload can be forwarded

If someone want to write such a backend, patches are wellcome

(This used to be commit a150bdf140d9165a05cbc7cac40b6e3c03a7bd3c)

15 years agor4284: fixed a problem with very large EA lists and OS/2 clients. These
Andrew Tridgell [Mon, 20 Dec 2004 03:12:09 +0000 (03:12 +0000)]
r4284: fixed a problem with very large EA lists and OS/2 clients. These
checks on allocations need to go in a lot more places, but at least
this is a start.
(This used to be commit 99b0dac2292d72e3a77f105e8f2ef5a3838d7e1b)

15 years agor4283: adding a privilege that an account already has is not an error
Andrew Tridgell [Sun, 19 Dec 2004 11:34:19 +0000 (11:34 +0000)]
r4283: adding a privilege that an account already has is not an error
(This used to be commit 2a4c562896aabe391d6f675433db2e519f0ce4b0)

15 years agor4282: removed a spurious error message now we remove index entries in the modify...
Andrew Tridgell [Sun, 19 Dec 2004 10:58:36 +0000 (10:58 +0000)]
r4282: removed a spurious error message now we remove index entries in the modify call
(This used to be commit 58fcc326241e73cc8a122e6130b5ff0d6a3b9232)

15 years agor4281: fixed an ldb indexing bug in ldb found by volker.
Andrew Tridgell [Sun, 19 Dec 2004 10:56:29 +0000 (10:56 +0000)]
r4281: fixed an ldb indexing bug in ldb found by volker.

index entries were not always being removed on modify
(This used to be commit 9c668e7b43dc2d82d3d639b64c53e887723ccba7)

15 years agor4280: added server side support for lsa_AddPrivilegesToAccount() and lsa_RemovePrivi...
Andrew Tridgell [Sun, 19 Dec 2004 07:50:19 +0000 (07:50 +0000)]
r4280: added server side support for lsa_AddPrivilegesToAccount() and lsa_RemovePrivilegesFromAccount()

these are the last of the server side privileges functions. We should
now have a complete privileges implementation.
(This used to be commit 76db300232f5557377dca059d17ea3c28a0a425c)

15 years agor4279: added IDL and test code for lsa_AddPrivilegesToAccount() and lsa_RemovePrivile...
Andrew Tridgell [Sun, 19 Dec 2004 07:20:55 +0000 (07:20 +0000)]
r4279: added IDL and test code for lsa_AddPrivilegesToAccount() and lsa_RemovePrivilegesFromAccount()
(This used to be commit 705b870c73995609c8d3ebb24418538bfe20c05b)

15 years agor4278: - added server support for lsa_EnumPrivsAccount()
Andrew Tridgell [Sun, 19 Dec 2004 06:41:27 +0000 (06:41 +0000)]
r4278: - added server support for lsa_EnumPrivsAccount()
(This used to be commit a80c82d2635fce42482982d904f265199a000e10)

15 years agor4277: - added server support for lsa_EnumAccounts()
Andrew Tridgell [Sun, 19 Dec 2004 05:53:13 +0000 (05:53 +0000)]
r4277: - added server support for lsa_EnumAccounts()

- expanded the lsa test suite to better test lsa_EnumAccounts()
(This used to be commit bafdb1772977d98fd57bb31a328af7cb1deee788)

15 years agor4276: added server side support for lsa_OpenAccount()
Andrew Tridgell [Sun, 19 Dec 2004 05:01:52 +0000 (05:01 +0000)]
r4276: added server side support for lsa_OpenAccount()
(This used to be commit 4716334502a245bc1ffafd3a8a00662cfbdf8ba8)

15 years agor4275: improve the share type info
Andrew Tridgell [Sun, 19 Dec 2004 04:23:29 +0000 (04:23 +0000)]
r4275: improve the share type info
(This used to be commit 750deb7f225b753f6c1547f7582f4edc4d817c58)

15 years agor4274: make the prototype RAP netshareenum call return something a bit more sensible.
Andrew Tridgell [Sun, 19 Dec 2004 03:31:57 +0000 (03:31 +0000)]
r4274: make the prototype RAP netshareenum call return something a bit more sensible.
(This used to be commit b2e29756c2084f11d841d027e7d32952daae18d0)

15 years agor4269: expanded the note about what you need on linux for xattr support
Andrew Tridgell [Sun, 19 Dec 2004 00:52:08 +0000 (00:52 +0000)]
r4269: expanded the note about what you need on linux for xattr support
(This used to be commit 57394f44e9fa2070a6cb9ce2fb31431ffae45cb9)

15 years agor4267: fixed the charset code to use the builtin_functions.
Andrew Tridgell [Sun, 19 Dec 2004 00:13:24 +0000 (00:13 +0000)]
r4267: fixed the charset code to use the builtin_functions.

Jelmer, please be more careful about testing new code. Your charsets
register change completely broke charset handling on systems without
iconv, and slowed every system down as the builtins were not being
used at all.
(This used to be commit 0022b4d24c7bb649fd69fffca04c022ea6b33634)

15 years agor4264: fix acl handling on systems without xattr support
Andrew Tridgell [Sat, 18 Dec 2004 23:31:17 +0000 (23:31 +0000)]
r4264: fix acl handling on systems without xattr support
(This used to be commit 89845388ea82d9bfbdc6ca8da40f47437a270400)

15 years agor4263: added support for the trans2 RAW_SEARCH_EA_LIST information
Andrew Tridgell [Sat, 18 Dec 2004 04:38:43 +0000 (04:38 +0000)]
r4263: added support for the trans2 RAW_SEARCH_EA_LIST information
level. This is quite a strange level that we've never seen before, but
is used by the os2 workplace shell.

note w2k screws up this level when unicode is negotiated, so it only
passes the RAW-SEARCH test when you force non-unicode
(This used to be commit 25189b8fbf6515d573e3398dc9fca56505dc37b9)

15 years agor4262: a sniff from kukks showed that the FILE_ATTRIBUTE_NORMAL handling in
Andrew Tridgell [Sat, 18 Dec 2004 01:16:04 +0000 (01:16 +0000)]
r4262: a sniff from kukks showed that the FILE_ATTRIBUTE_NORMAL handling in
pvfs was not correct. This should fix a xcopy bug on OS/2.
(This used to be commit 7251f1fcdd8980e9c49a58e665374025e07bb8d0)

15 years agor4261: added the RAW_FILEINFO_EA_LIST trans2 qfileinfo and qpathinfo
Andrew Tridgell [Fri, 17 Dec 2004 22:47:49 +0000 (22:47 +0000)]
r4261: added the RAW_FILEINFO_EA_LIST trans2 qfileinfo and qpathinfo
level. Interestingly, this level did now show up on our trans2 scanner
previously as we didn't have the FLAGS2_EXTENDED_ATTRIBUTES bit set in
the client code. Now that we set that bit, new levels appear in
windows servers.
(This used to be commit 0b76d405a73e924dc2706f28bbf1084a59c9b393)

15 years agor4247: two more places that need the unlink hook
Andrew Tridgell [Fri, 17 Dec 2004 06:35:11 +0000 (06:35 +0000)]
r4247: two more places that need the unlink hook
(This used to be commit 795897b64f3c63baaf53a36eb1611293c2fd8974)

15 years agor4246: some very brief notes to myself on solving the case insensitivity
Andrew Tridgell [Fri, 17 Dec 2004 06:34:13 +0000 (06:34 +0000)]
r4246: some very brief notes to myself on solving the case insensitivity
problem, and the del *.* mangling problem. I promised jra that I would
write a longer description of these soon.
(This used to be commit b6827a03e77fd1db4cbd16d7b7fb4328ccfe7a46)

15 years agor4245: add a note about using a tdb to store xattr information, so you can
Andrew Tridgell [Fri, 17 Dec 2004 06:32:04 +0000 (06:32 +0000)]
r4245: add a note about using a tdb to store xattr information, so you can
have all Samba4 features on a plain posix filesystem.
(This used to be commit a6c4f4b7c9b9a66bde02bd1b63258dbc14dd48c9)

15 years agor4244: add more calls to pvfs_xattr_unlink_hook() on file/dir create, to try to beat...
Andrew Tridgell [Fri, 17 Dec 2004 05:03:57 +0000 (05:03 +0000)]
r4244: add more calls to pvfs_xattr_unlink_hook() on file/dir create, to try to beat race
conditions in the tdb xattr backend
(This used to be commit 3ac840159881ce6eeac27ff0dc324e4d6ac0a70a)

15 years agor4243: a sniff from kukks showed that the ea_set interface in trans2 setfileinfo...
Andrew Tridgell [Fri, 17 Dec 2004 04:51:23 +0000 (04:51 +0000)]
r4243: a sniff from kukks showed that the ea_set interface in trans2 setfileinfo allows
for multiple EAs to be set at once. This fixes all the ea code to allow for that.
(This used to be commit b26828bef5d55e5eef0e34a164e76292df45e207)

15 years agor4242: added support for storing xattrs in a tdb. This allows all advanced NT
Andrew Tridgell [Fri, 17 Dec 2004 03:39:29 +0000 (03:39 +0000)]
r4242: added support for storing xattrs in a tdb. This allows all advanced NT
attributes (streams, EAs, NT ACLs, timestamps etc) to be used on
filesystems that don't support xattrs. It also allows for large
streams, although they are very inefficient.

I won't enable this by default, as I really wrote it as a way of
testing large stream support while still using ext3, but perhaps with
a bit more work this could be generally usable.

To enable this use:

   posix:eadb = /home/test/myeas.tdb
(This used to be commit 0c927d912cb65754351189d3a0442004a14aa5c6)

15 years agor4232: added server support for multi-part SMBtrans requests, while
Andrew Tridgell [Thu, 16 Dec 2004 12:31:34 +0000 (12:31 +0000)]
r4232: added server support for multi-part SMBtrans requests, while
maintaining the async nature of the server. This is done with a
SMBtrans request queue for partially completed requests.

The smb signing issues with this get a little tricky, but it now seems
to work fine
(This used to be commit bc0209058b76a947ad27673aeb096d11a168996b)

15 years agor4230: now that we set the FLAGS2_EXTENDED_ATTRIBUTES flag, we should mark
Andrew Tridgell [Thu, 16 Dec 2004 12:29:47 +0000 (12:29 +0000)]
r4230: now that we set the FLAGS2_EXTENDED_ATTRIBUTES flag, we should mark
empty EAs as being of size 4, not size 0
(This used to be commit 76bd6476785e4145437768caa702c01a7801590e)

15 years agor4229: - added support for multi-part SMBtrans and SMBtrans2 requests in the
Andrew Tridgell [Thu, 16 Dec 2004 12:29:04 +0000 (12:29 +0000)]
r4229: - added support for multi-part SMBtrans and SMBtrans2 requests in the
  client code. This was essential to test the multi-part server code
  (which I will commit soon)

- when the request state is an error, ensure that req->status is not NT_STATUS_OK
(This used to be commit ef502c403044b68ccdff15b1a94d447d0f53473d)

15 years agor4228: make sure the caller knows the packet is in error when a signing error occurs
Andrew Tridgell [Thu, 16 Dec 2004 12:25:23 +0000 (12:25 +0000)]
r4228: make sure the caller knows the packet is in error when a signing error occurs
(This used to be commit 5e13571e6b9f5eb35f710c2c8bd85b5569665613)

15 years agor4227: index the privilege attribute to make lsa privilege calls efficient
Andrew Tridgell [Thu, 16 Dec 2004 12:24:25 +0000 (12:24 +0000)]
r4227: index the privilege attribute to make lsa privilege calls efficient
(This used to be commit e9e603208d79dc69c75420a8e085f8ad6c8a7095)

15 years agor4214: possibly fix the "no-EAs" bug from OS/2
Andrew Tridgell [Wed, 15 Dec 2004 03:53:05 +0000 (03:53 +0000)]
r4214: possibly fix the "no-EAs" bug from OS/2
(This used to be commit c9871253485b1a663fc79649742d3a89e81eb6d4)

15 years agor4213: Store REG_SZ in UTF16, not the unix charset..
Jelmer Vernooij [Wed, 15 Dec 2004 02:27:22 +0000 (02:27 +0000)]
r4213: Store REG_SZ in UTF16, not the unix charset..

It is now possible to use the "Add..." button in the Security
tab of the File Properties Dialog box.
(This used to be commit 9fa25260d3f18dd0dd041477c48571b53d86f3c4)

15 years agor4210: Add simple example of a registry hive LDIF file
Jelmer Vernooij [Wed, 15 Dec 2004 00:39:39 +0000 (00:39 +0000)]
r4210: Add simple example of a registry hive LDIF file
(This used to be commit cd9572b72e8d282ec47d2d67f6daa00ff1aa621c)

15 years agor4209: Fix several smaller bugs
Jelmer Vernooij [Wed, 15 Dec 2004 00:16:54 +0000 (00:16 +0000)]
r4209: Fix several smaller bugs
Add "predef" and "set" commands in regshell

Some of the remote calls from a Windows box work now.
(This used to be commit f3e05782804fe4b4942fa966f1b9650c64bc234d)

15 years agor4207: remove "lookupname" and "lookupsid", and instead have a single "lookup" comman...
Andrew Tridgell [Tue, 14 Dec 2004 22:24:56 +0000 (22:24 +0000)]
r4207: remove "lookupname" and "lookupsid", and instead have a single "lookup" command that
takes a name or sid.

I think in general its better to make smbclient automatically work out the type from
the format (I did the same with the privileges commands)
(This used to be commit bbf482e13ab973a67e9b2c0e0e40c2afff073c63)

15 years agor4206: fixed a status code check in lsa_LookupNames2 that could cause a segv
Andrew Tridgell [Tue, 14 Dec 2004 22:18:33 +0000 (22:18 +0000)]
r4206: fixed a status code check in lsa_LookupNames2 that could cause a segv
(This used to be commit 31ab04f790ff4349dbc8a24c07fa35e10b831baf)

15 years agor4205: fixed the default acl mapping from posix permissions to use the mapped
Andrew Tridgell [Tue, 14 Dec 2004 22:17:41 +0000 (22:17 +0000)]
r4205: fixed the default acl mapping from posix permissions to use the mapped
uid->sid and gid->sid
(This used to be commit 590e1a91bfc719c2d84a9a066fb4e0308b6d9803)

15 years agor4204: Arguments to reg_del_key more like the RPC for more efficient usage
Jelmer Vernooij [Tue, 14 Dec 2004 20:49:18 +0000 (20:49 +0000)]
r4204: Arguments to reg_del_key more like the RPC for more efficient usage
Fix small bug in regpatch
Fix segfault in regshell cmdline completion
Implement set_value and del_value in ldb backend
(This used to be commit 8e2aa58abeafa78afe7dafb9723f5f365e756527)

15 years agor4203: the bind_info blob isn't a const.
Stefan Metzmacher [Tue, 14 Dec 2004 07:18:58 +0000 (07:18 +0000)]
r4203: the bind_info blob isn't a const.
here's the idl to parse it, because we don't want the
callers to manually de/encode this

(This used to be commit 983f74c3651759991378b0d7b13b0952d77b3544)

15 years agor4202: added smbclient commands "addprivileges" and "delprivileges" for
Andrew Tridgell [Tue, 14 Dec 2004 06:31:20 +0000 (06:31 +0000)]
r4202: added smbclient commands "addprivileges" and "delprivileges" for
easily adding/removing privileges from users
(This used to be commit 8764909c05c4829d1e4f7eaf8c18e8ef1e53645f)

15 years agor4201: Remove duplicate const.
Tim Potter [Tue, 14 Dec 2004 06:25:19 +0000 (06:25 +0000)]
r4201: Remove duplicate const.
(This used to be commit 1d96717843a9b60a757548a24967bbb553775fa3)

15 years agor4200: Fix some more warnings.
Tim Potter [Tue, 14 Dec 2004 06:23:01 +0000 (06:23 +0000)]
r4200: Fix some more warnings.
(This used to be commit 0359bc408f8b3a9f743553f98d0fa1f57021701c)

15 years agor4199: - added server side code for lsa_RemoveAccountRights (sharing code
Andrew Tridgell [Tue, 14 Dec 2004 06:17:33 +0000 (06:17 +0000)]
r4199: - added server side code for lsa_RemoveAccountRights (sharing code
  with lsa_AddAccountRights)
(This used to be commit 9bd806b7a29afe9db98048be0f8035c75bf8e1c7)

15 years agor4198: - added server side code for lsa_AddAccountRights
Andrew Tridgell [Tue, 14 Dec 2004 06:10:45 +0000 (06:10 +0000)]
r4198: - added server side code for lsa_AddAccountRights
(This used to be commit ba87142586672a1082200048e7d1ae865d266d6c)

15 years agor4197: Remove silly extra const.
Tim Potter [Tue, 14 Dec 2004 06:09:04 +0000 (06:09 +0000)]
r4197: Remove silly extra const.
(This used to be commit fcbfa888defe4f904e0c4b4f723d53a03422ad80)

15 years agor4196: - added server side code for lsa_LookupPrivDisplayName
Andrew Tridgell [Tue, 14 Dec 2004 05:51:01 +0000 (05:51 +0000)]
r4196: - added server side code for lsa_LookupPrivDisplayName

- added english descriptions of privileges. We should add other
  languages in the future.
(This used to be commit 3eee8b7c13de3ffe7c5a87d6f1ebdcc66ff391eb)

15 years agor4195: added IDL, test suite and server side code for lsa_LookupPrivValue
Andrew Tridgell [Tue, 14 Dec 2004 05:32:51 +0000 (05:32 +0000)]
r4195: added IDL, test suite and server side code for lsa_LookupPrivValue
(This used to be commit 7bddd4740332017bb5f4bddcc9ba0234d05378bd)

15 years agor4194: added server side implementation of lsa_EnumPrivs
Andrew Tridgell [Tue, 14 Dec 2004 05:20:38 +0000 (05:20 +0000)]
r4194: added server side implementation of lsa_EnumPrivs
(This used to be commit 710732033261f6355893b94b43e6c532baa105e0)

15 years agor4193: added server side implementation of lsa_EnumAccountsWithUserRight
Andrew Tridgell [Tue, 14 Dec 2004 05:07:29 +0000 (05:07 +0000)]
r4193: added server side implementation of lsa_EnumAccountsWithUserRight
(This used to be commit 5088a6cbf70fe6eff94f07e2f5874525539c46fa)

15 years agor4192: added server side implementation of lsa_EnumAccountRights
Andrew Tridgell [Tue, 14 Dec 2004 04:45:00 +0000 (04:45 +0000)]
r4192: added server side implementation of lsa_EnumAccountRights

the "privilege" command in smbclient now works against Samba4
(This used to be commit 8a3f2650500e11d1d38d76421f8373e5088d2dc5)

15 years agor4183: expanded the RAW-MKDIR torture test to test creation of EA lists
Andrew Tridgell [Mon, 13 Dec 2004 23:58:39 +0000 (23:58 +0000)]
r4183: expanded the RAW-MKDIR torture test to test creation of EA lists
(This used to be commit 0134d8e9cc5634441b1aa6841bcd332c5afcc0f3)

15 years agor4182: fixed trans2 mkdir, allowing mkdir with an initial EA list
Andrew Tridgell [Mon, 13 Dec 2004 23:57:59 +0000 (23:57 +0000)]
r4182: fixed trans2 mkdir, allowing mkdir with an initial EA list
(This used to be commit 7d981c29c28391813c7f93245f64b3ee108378a4)

15 years agor4181: use int32 for level
Stefan Metzmacher [Mon, 13 Dec 2004 12:34:43 +0000 (12:34 +0000)]
r4181: use int32 for level

(This used to be commit 3a6047bc47671bfab14272dfa81f80f4457b209c)

15 years agor4180: use the same syntax as the other torture tests
Stefan Metzmacher [Mon, 13 Dec 2004 12:28:47 +0000 (12:28 +0000)]
r4180: use the same syntax as the other torture tests

(This used to be commit 00395ffcc3cc94216619ca827ff6a09b0cc28de1)

15 years agor4179: - nicer code layout
Stefan Metzmacher [Mon, 13 Dec 2004 12:24:57 +0000 (12:24 +0000)]
r4179: - nicer code layout

- and disable DsReplicaSync by default it kill lsass.exe
  on my w2k box

(This used to be commit 8373b2d4c7decd49a361637e03b24b311aed302c)

15 years agor4178: the level is mostly singed not unsigned
Stefan Metzmacher [Mon, 13 Dec 2004 12:01:43 +0000 (12:01 +0000)]
r4178: the level is mostly singed not unsigned

(This used to be commit 6411c00b3c2c4e11da2b41bfa53e0d42368e3e76)

15 years agor4177: add some more error codes
Stefan Metzmacher [Mon, 13 Dec 2004 11:37:47 +0000 (11:37 +0000)]
r4177: add some more error codes

(This used to be commit e624bb52886db80a3600b79494ad1150592efebe)

15 years agor4176: I just remeber that I have already implement STR_CONFORMANT
Stefan Metzmacher [Mon, 13 Dec 2004 11:34:57 +0000 (11:34 +0000)]
r4176: I just remeber that I have already implement STR_CONFORMANT

so use it in DsReplicaSync()

(This used to be commit ca610da1fc3c059d35e17238e8cac5e5b38790c3)

15 years agor4175: InitiateSystemShutdownEx IDL and torture test
Jelmer Vernooij [Mon, 13 Dec 2004 11:00:24 +0000 (11:00 +0000)]
r4175: InitiateSystemShutdownEx IDL and torture test
(This used to be commit 3538130bf5d656ed4b0e2c84294e995814860e34)

15 years agor4174: nicer debug output
Stefan Metzmacher [Mon, 13 Dec 2004 10:48:35 +0000 (10:48 +0000)]
r4174: nicer debug output

(This used to be commit 79bdcabcc57da9f7d01b09d3b33fe22770c6e7e8)

15 years agor4173: - new t2open code, that can cope with "create with EAs". Many thanks
Andrew Tridgell [Mon, 13 Dec 2004 10:48:21 +0000 (10:48 +0000)]
r4173: - new t2open code, that can cope with "create with EAs". Many thanks
  to kukks on #samba-technical for the sniffs that allowed me to work
  this out

- much simpler ntvfs open generic mapping code

- added t2open create with EA torture test to RAW-OPEN test
(This used to be commit a56d95ad89b4f32a05974c4fe9a816d67aa369e3)