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
metze
Stefan Metzmacher [Tue, 21 Dec 2004 15:01:53 +0000 (15:01 +0000)]
r4326: fix memory leak
metze
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
metze
Stefan Metzmacher [Tue, 21 Dec 2004 12:26:12 +0000 (12:26 +0000)]
r4324: add some more ads constants before I forget them
metze
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
metze
Stefan Metzmacher [Tue, 21 Dec 2004 12:00:30 +0000 (12:00 +0000)]
r4322: use a nicer name
metze
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.
metze
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
metze
Andrew Tridgell [Tue, 21 Dec 2004 11:49:01 +0000 (11:49 +0000)]
r4319: make it easy to use valgrind in the test_posix.sh test suite
Stefan Metzmacher [Tue, 21 Dec 2004 11:48:32 +0000 (11:48 +0000)]
r4318: add missing template for trusting domains
metze
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
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
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
Andrew Tridgell [Tue, 21 Dec 2004 11:44:32 +0000 (11:44 +0000)]
r4314: added ACL checking on unlink
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
Andrew Tridgell [Tue, 21 Dec 2004 10:05:02 +0000 (10:05 +0000)]
r4310: fixed the authority_name field in 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
and returns NT_STATUS_INVALID_PARAMETER
metze
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)
metze
PS: <tridge> "silly tridge forgot a out [ref] var" :-)
Andrew Tridgell [Tue, 21 Dec 2004 03:29:09 +0000 (03:29 +0000)]
r4303: a bit more consistent help on privileges commands in smbclient
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.
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.
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
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
metze
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.
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
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
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
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.
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()
Andrew Tridgell [Sun, 19 Dec 2004 06:41:27 +0000 (06:41 +0000)]
r4278: - added server support for lsa_EnumPrivsAccount()
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()
Andrew Tridgell [Sun, 19 Dec 2004 05:01:52 +0000 (05:01 +0000)]
r4276: added server side support for lsa_OpenAccount()
Andrew Tridgell [Sun, 19 Dec 2004 04:23:29 +0000 (04:23 +0000)]
r4275: improve the share type info
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.
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
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.
Andrew Tridgell [Sat, 18 Dec 2004 23:31:17 +0000 (23:31 +0000)]
r4264: fix acl handling on systems without xattr support
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
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.
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.
Andrew Tridgell [Fri, 17 Dec 2004 06:35:11 +0000 (06:35 +0000)]
r4247: two more places that need the unlink hook
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.
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.
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
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.
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
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
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
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
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
Andrew Tridgell [Thu, 16 Dec 2004 12:24:25 +0000 (12:24 +0000)]
r4227: index the privilege attribute to make lsa privilege calls efficient
Andrew Tridgell [Wed, 15 Dec 2004 03:53:05 +0000 (03:53 +0000)]
r4214: possibly fix the "no-EAs" bug from OS/2
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.
Jelmer Vernooij [Wed, 15 Dec 2004 00:39:39 +0000 (00:39 +0000)]
r4210: Add simple example of a registry hive LDIF file
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.
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)
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
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
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
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
metze
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
Tim Potter [Tue, 14 Dec 2004 06:25:19 +0000 (06:25 +0000)]
r4201: Remove duplicate const.
Tim Potter [Tue, 14 Dec 2004 06:23:01 +0000 (06:23 +0000)]
r4200: Fix some more warnings.
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)
Andrew Tridgell [Tue, 14 Dec 2004 06:10:45 +0000 (06:10 +0000)]
r4198: - added server side code for lsa_AddAccountRights
Tim Potter [Tue, 14 Dec 2004 06:09:04 +0000 (06:09 +0000)]
r4197: Remove silly extra const.
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.
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
Andrew Tridgell [Tue, 14 Dec 2004 05:20:38 +0000 (05:20 +0000)]
r4194: added server side implementation of lsa_EnumPrivs
Andrew Tridgell [Tue, 14 Dec 2004 05:07:29 +0000 (05:07 +0000)]
r4193: added server side implementation of lsa_EnumAccountsWithUserRight
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
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
Andrew Tridgell [Mon, 13 Dec 2004 23:57:59 +0000 (23:57 +0000)]
r4182: fixed trans2 mkdir, allowing mkdir with an initial EA list
Stefan Metzmacher [Mon, 13 Dec 2004 12:34:43 +0000 (12:34 +0000)]
r4181: use int32 for level
metze
Stefan Metzmacher [Mon, 13 Dec 2004 12:28:47 +0000 (12:28 +0000)]
r4180: use the same syntax as the other torture tests
metze
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
metze
Stefan Metzmacher [Mon, 13 Dec 2004 12:01:43 +0000 (12:01 +0000)]
r4178: the level is mostly singed not unsigned
metze
Stefan Metzmacher [Mon, 13 Dec 2004 11:37:47 +0000 (11:37 +0000)]
r4177: add some more error codes
metze
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()
metze
Jelmer Vernooij [Mon, 13 Dec 2004 11:00:24 +0000 (11:00 +0000)]
r4175: InitiateSystemShutdownEx IDL and torture test
Stefan Metzmacher [Mon, 13 Dec 2004 10:48:35 +0000 (10:48 +0000)]
r4174: nicer debug output
metze
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
Stefan Metzmacher [Mon, 13 Dec 2004 10:29:44 +0000 (10:29 +0000)]
r4172: commit a DsReplicaSync() torture test
this not make much sense as we don't send the correct nc_name
but it shows that doesn't get a NDR_FAULT anymore,
we just need handle the conformant strings in pidl
metze
Andrew Tridgell [Mon, 13 Dec 2004 09:32:57 +0000 (09:32 +0000)]
r4171: an attempt at better IDL for DsReplicaSync
Andrew Tridgell [Mon, 13 Dec 2004 09:32:02 +0000 (09:32 +0000)]
r4170: don't check array size for conformant arrays (they are checked separately)
Stefan Metzmacher [Mon, 13 Dec 2004 09:26:13 +0000 (09:26 +0000)]
r4169: add descriptions about binding and unc strings to the
smbtorture --usage --help output
metze
Jelmer Vernooij [Mon, 13 Dec 2004 02:04:34 +0000 (02:04 +0000)]
r4168: Implement QueryValue in the server
IDL for NotifyChangeKeyValue
Jelmer Vernooij [Mon, 13 Dec 2004 01:37:18 +0000 (01:37 +0000)]
r4167: Fix CreateKey
Support CreateKey in the RPC registry backend
Jelmer Vernooij [Mon, 13 Dec 2004 00:45:29 +0000 (00:45 +0000)]
r4166: More small API fixes, keep registry structs as small as possible.
Implement DelValue in the RPC server
Andrew Tridgell [Sun, 12 Dec 2004 11:30:30 +0000 (11:30 +0000)]
r4165: added a 100 element name cache to cope with some amount of seeking
back to filenames that have been deleted. This fixes the new os/2
delete test.
Andrew Tridgell [Sun, 12 Dec 2004 11:29:35 +0000 (11:29 +0000)]
r4164: added a test that simulates a OS/2 file delete. This includes seek by
name back into a directory for files that no longer exist.
Andrew Tridgell [Sun, 12 Dec 2004 09:11:39 +0000 (09:11 +0000)]
r4163: 2nd attempt at fixing the OS/2 "del *" problem
Andrew Tridgell [Sun, 12 Dec 2004 09:02:18 +0000 (09:02 +0000)]
r4162: this should fix the delete/findnext problem from OS/2 clients. Thanks
again to kukks for the excellent and detailed bug report
Andrew Tridgell [Sun, 12 Dec 2004 08:35:11 +0000 (08:35 +0000)]
r4161: two more fixes for NT4 clients. Bugs found by kukks.
- nt4 doesn't setup the pfc flags correctly for rpc packet types
other than normal requests, so don't check for fragmented packets
unless they are of type request
- ensure we give STATUS_BUFFER_OVERFLOW when we return a partial
fragment in SMBtrans requests on ncacn_np
Andrew Tridgell [Sun, 12 Dec 2004 08:33:08 +0000 (08:33 +0000)]
r4160: fixed the file_type in ntcreatex reply on a named pipe. NT4 requires this to be right.
Andrew Tridgell [Sun, 12 Dec 2004 07:22:59 +0000 (07:22 +0000)]
r4159: fixed error return for writebraw
Jelmer Vernooij [Sun, 12 Dec 2004 00:35:50 +0000 (00:35 +0000)]
r4158: Fix IDL for InitiateShutdown and AbortShutdown and run both only
when dangerous tests are enabled.
Jelmer Vernooij [Sun, 12 Dec 2004 00:22:30 +0000 (00:22 +0000)]
r4157: QueryMultipleValues IDL and torture test
Initialisation data pointer in QueryValue torture test
Jelmer Vernooij [Sat, 11 Dec 2004 23:28:48 +0000 (23:28 +0000)]
r4156: GetKeySecurity() IDL and torture test
Jelmer Vernooij [Sat, 11 Dec 2004 20:06:40 +0000 (20:06 +0000)]
r4155: More destinction between hives and predefined keys