Andrew Tridgell [Thu, 30 Dec 2004 02:27:16 +0000 (02:27 +0000)]
r4404: check for SEC_ACE_FLAG_INHERIT_ONLY in the "maximum allowed" logic
Andrew Tridgell [Thu, 30 Dec 2004 02:25:20 +0000 (02:25 +0000)]
r4403: - added ACL inheritance in the pvfs backend. ACLs are now inherited on
file and directory creation via ntcreatex. pvfs now passes the
inheritance test in RAW-ACLS
- cleaned up the error handling a bit in pvfs_open()
Andrew Tridgell [Thu, 30 Dec 2004 02:22:29 +0000 (02:22 +0000)]
r4402: use __location__ instead of __LINE__ in the RAW-RENAME test
Andrew Tridgell [Thu, 30 Dec 2004 02:22:03 +0000 (02:22 +0000)]
r4401: stricter test for correct ACL inheritance in RAW-ACLS
Andrew Bartlett [Wed, 29 Dec 2004 22:59:28 +0000 (22:59 +0000)]
r4400: Pass rootdse.ldif past the subst code.
Andrew Bartlett
Volker Lendecke [Wed, 29 Dec 2004 22:57:20 +0000 (22:57 +0000)]
r4399: Implement samr_GetAliasMembership and samr_GetGroupsForUser. With these two,
usrmgr.exe seems to become usable. Some quirks, but it's worth a try.
Volker
Volker Lendecke [Wed, 29 Dec 2004 22:54:24 +0000 (22:54 +0000)]
r4398: Make usrmgr.exe believe we're a DC. Otherwise it will not show global groups.
Index on "key" attribute.
Volker
Volker Lendecke [Wed, 29 Dec 2004 22:25:46 +0000 (22:25 +0000)]
r4397: Fix a bug where '(&(objectclass=domain)(!(objectclass=builtindomain)))' fell
back to a full search.
Volker
Jelmer Vernooij [Wed, 29 Dec 2004 21:41:17 +0000 (21:41 +0000)]
r4396: Generate newrootdse.ldb in provision.pl as well
Jelmer Vernooij [Wed, 29 Dec 2004 21:21:14 +0000 (21:21 +0000)]
r4395: Generate "newhklm.ldb" using provision.pl
Jelmer Vernooij [Wed, 29 Dec 2004 15:36:45 +0000 (15:36 +0000)]
r4394: Use 'raw' protocol towers in the lists in the endpoint rather then
dcerpc_binding structs.
Volker Lendecke [Wed, 29 Dec 2004 13:22:00 +0000 (13:22 +0000)]
r4393: Trivial bugfix for a silly bug
Volker Lendecke [Wed, 29 Dec 2004 13:20:17 +0000 (13:20 +0000)]
r4392: Fix samr_GetAliasMembership idl
Andrew Tridgell [Wed, 29 Dec 2004 12:41:27 +0000 (12:41 +0000)]
r4391: bring the default ACL inline with what w2k3 uses
Jelmer Vernooij [Wed, 29 Dec 2004 12:28:35 +0000 (12:28 +0000)]
r4390: Registry value and key names are case-insensitive
Nicer menu layout in gregedit
Andrew Tridgell [Wed, 29 Dec 2004 07:28:03 +0000 (07:28 +0000)]
r4389: added checking for the default inherited ACL, which is used when no ACEs
are inheritable
Andrew Tridgell [Wed, 29 Dec 2004 06:53:15 +0000 (06:53 +0000)]
r4388: - allow ACE flags to be specified in security_descriptor_create()
- added a test for all combinations of the inheritance ACE flags and how
they are propogated to child directories and files
Andrew Tridgell [Wed, 29 Dec 2004 06:52:06 +0000 (06:52 +0000)]
r4387: added a TODO about the NTCREATEX_FLAGS_OPEN_DIRECTORY flag - it seems to open
the parent of the specified directory ?!
Andrew Bartlett [Wed, 29 Dec 2004 00:03:34 +0000 (00:03 +0000)]
r4386: Grr, fix copy-and-paste bug.
Andrew Bartlett
Andrew Bartlett [Tue, 28 Dec 2004 23:59:22 +0000 (23:59 +0000)]
r4385: Set the correct target service.
Andrew Bartlett
Andrew Bartlett [Tue, 28 Dec 2004 23:55:58 +0000 (23:55 +0000)]
r4384: Try again to fix compiling against a specified KRB5 library.
The strong feeling I get is that this is just not possible, if as
Fedora has, the MIT installation is in /usr/lib, but this is one step
closer anyway.
Andrew Bartlett
Andrew Tridgell [Tue, 28 Dec 2004 23:28:02 +0000 (23:28 +0000)]
r4383: in order to cope with overfilled buffers on trans2 findfirst we need to use 32 bit offsets and lengths
in trans2 fill code, even though the packets themselves can only use 16 bit lengths. This prevents
the overflow detection code from failing due to 16 bit length wrap.
Andrew Tridgell [Tue, 28 Dec 2004 23:26:29 +0000 (23:26 +0000)]
r4382: check for bad tid in SMBtdis
Volker Lendecke [Tue, 28 Dec 2004 23:05:48 +0000 (23:05 +0000)]
r4381: Add my copyright
Volker Lendecke [Tue, 28 Dec 2004 23:01:34 +0000 (23:01 +0000)]
r4380: Implement samr_QueryDisplayInfo. This probably needs some polishing (Do we
have to sort the entries?)
Volker
Andrew Bartlett [Tue, 28 Dec 2004 22:29:48 +0000 (22:29 +0000)]
r4379: Merge more Kerberos related configure checks (by jra, gd and Lars
Mueller <lmuelle@suse.de>) from 3.0 to Samba4.
Andrew Bartlett
Volker Lendecke [Tue, 28 Dec 2004 07:57:31 +0000 (07:57 +0000)]
r4378: Implement samr_EnumDomainGroups and samr_EnumDomainAliases.
Hmmm. How do I tell ldb not to descend into cn=Builtin?
Volker
Volker Lendecke [Tue, 28 Dec 2004 07:54:30 +0000 (07:54 +0000)]
r4377: Fix default groupType attributes.
Volker
Volker Lendecke [Mon, 27 Dec 2004 22:20:17 +0000 (22:20 +0000)]
r4376: Implement samr_AddAliasMember, samr_DeleteAliasMember and
samr_GetMembersInAlias.
Volker
Volker Lendecke [Mon, 27 Dec 2004 11:27:30 +0000 (11:27 +0000)]
r4375: Implement samr_OpenAlias, samr_QueryAliasInfo and samr_SetAliasInfo. Fix IDL
for samr_SetAliasInfo.
Volker
Volker Lendecke [Mon, 27 Dec 2004 09:48:49 +0000 (09:48 +0000)]
r4374: Follow metzes hint, change LookupRids a bit
Jelmer Vernooij [Mon, 27 Dec 2004 00:32:13 +0000 (00:32 +0000)]
r4373: Support setting values and fix a segfault
Volker Lendecke [Sun, 26 Dec 2004 23:31:19 +0000 (23:31 +0000)]
r4372: Implement samr_LookupRids
Jelmer Vernooij [Sun, 26 Dec 2004 22:41:38 +0000 (22:41 +0000)]
r4371: Add "Create Key", "Delete Key" and "Delete Value" buttons.
gregedit now can do the same things as regedt32 except for finding
data and setting values. (and a few segfaults...)
Volker Lendecke [Sun, 26 Dec 2004 18:02:18 +0000 (18:02 +0000)]
r4367: Implement samr_AddGroupMember, samr_DeleteGroupMember and
samr_QueryGroupMember.
Volker
Volker Lendecke [Sun, 26 Dec 2004 17:30:27 +0000 (17:30 +0000)]
r4366: Fix ldb_modify_internal: Adding values to an existing attribute you could end
up with a corrupt data structure on disk, namely with two attribute structures
for the same attribute name.
Volker
Andrew Tridgell [Sun, 26 Dec 2004 08:41:11 +0000 (08:41 +0000)]
r4365: added command 'eainfo' to smbclient for displaying binary EA contents
Andrew Tridgell [Sun, 26 Dec 2004 08:13:01 +0000 (08:13 +0000)]
r4364: - added support for testing of chained SMB operations in smbtorture
- added test for chained OpenX/ReadX, simulating the OS/2 workplace shell
- fixed a bug in handling chained fnum in openx and ntcreatex in the server
(yes, I'm on holiday, but this bug was annoying me ....)
Jelmer Vernooij [Sat, 25 Dec 2004 22:18:12 +0000 (22:18 +0000)]
r4363: value "none required" is set if no library is needed (autoconf does this the same way)
Jelmer Vernooij [Sat, 25 Dec 2004 21:49:21 +0000 (21:49 +0000)]
r4362: dlopen() doesn't imply -ldl
Should fix the build on several *BSD systems that have dlopen() in libc
Stefan Metzmacher [Sat, 25 Dec 2004 14:12:31 +0000 (14:12 +0000)]
r4361: fix the build
metze
Stefan Metzmacher [Sat, 25 Dec 2004 14:06:55 +0000 (14:06 +0000)]
r4360: destroy the gensec context
metze
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
metze
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
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
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
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
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
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
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".
Volker
Volker Lendecke [Thu, 23 Dec 2004 12:02:55 +0000 (12:02 +0000)]
r4344: Unify memory handling in dcerpc_samr.c a bit
Andrew Bartlett [Thu, 23 Dec 2004 06:39:58 +0000 (06:39 +0000)]
r4342: Fix a memory leak in init_globals().
Andrew Bartlett
Tim Potter [Thu, 23 Dec 2004 04:09:25 +0000 (04:09 +0000)]
r4341: Fix const warning.
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
metze
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
metze
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:-)
metze
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??? ;-)
Volker
Volker Lendecke [Wed, 22 Dec 2004 21:20:12 +0000 (21:20 +0000)]
r4332: Fix a potential memleak.
Volker
Stefan Metzmacher [Tue, 21 Dec 2004 15:23:33 +0000 (15:23 +0000)]
r4328: mark the talloc data as DATA_BLOB
metze
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