1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-01 04:58:35 +03:00

3008 Commits

Author SHA1 Message Date
Andrew Tridgell
3040cd6515 r4139: 2nd attempt at fixing the null ptr in size_is() problem. 2007-10-10 13:06:30 -05:00
Andrew Tridgell
952a26c561 r4138: initialise 'type' in RPC-WINREG EnumValue test 2007-10-10 13:06:30 -05:00
Jelmer Vernooij
ddf7a331c5 r4137: Make *_open_key take a registry_key instead of a hive (more efficient
in some cases)
2007-10-10 13:06:30 -05:00
Andrew Tridgell
8cbd3f47a9 r4136: when we have a size or switch variable that is a pointer we need to check that the server
hasn't given us a null pointer, otherwise we can segv when we dereference it. For example:

  [size_is(*size)] *x;
  uint32 *size;

if a broken server gave us x != NULL and size == NULL then we would crash. I've added
a check_null_pointer() call in pidl to catch this.
2007-10-10 13:06:29 -05:00
Andrew Tridgell
4b45d3d2e8 r4135: improve a debug message 2007-10-10 13:06:29 -05:00
Jelmer Vernooij
1e12971137 r4133: Cache results of subkey and value queries 2007-10-10 13:06:29 -05:00
Jelmer Vernooij
c169e86c1f r4132: - Bunch of rather large fixes in the registry
- Added some README files

Not everything works yet, e.g. the EnumValue test appears to be broken.
2007-10-10 13:06:29 -05:00
Andrew Tridgell
573230ea99 r4124: include locale.h to get LC_ALL in include/system/iconv.h 2007-10-10 13:06:28 -05:00
Andrew Tridgell
53c4d0a7d8 r4123: set locale to C to ensure ascii string functions work
thanks to Bjoern JACKE <samba@j3e.de> for pointing this out
2007-10-10 13:06:28 -05:00
Andrew Tridgell
1ddab01d2a r4118: don't assume that "unsigned int" is the same type as uint32_t 2007-10-10 13:06:28 -05:00
Andrew Tridgell
f2f21033b6 r4117: fixed EnumValue in winreg server 2007-10-10 13:06:28 -05:00
Andrew Tridgell
2b67f18bdb r4116: fixed compilation of EnumValue code in winreg rpc backend
thanks to volker for pointing this out
2007-10-10 13:06:28 -05:00
Andrew Tridgell
76285b3390 r4115: check for gensec errors before calling memcpy on a set of credentials,
otherwise the creds structure might be invalid
2007-10-10 13:06:28 -05:00
Andrew Tridgell
0c58b254ca r4114: added have_features bits to gensec schannel code. This fixes our
schannel code.

I would also like to give a gentle reminder to everyone to please run
the appropriate test scripts when you change a subsystem. It's a shame
to have this test code and not use it, and it takes much longer for
another developer to track down a bug in your new code than it would
take for you fix to it at the time you first add it.

 - for rpc changes run test_rpc.sh
 - for CIFS changes run test_posix.sh
 - for ldb changes run test-tdb in lib/ldb/
2007-10-10 13:06:28 -05:00
Andrew Tridgell
b47e203a05 r4113: modified EnumValue in winreg to take advantage of the new pidl handling
of arrays.
2007-10-10 13:06:27 -05:00
Andrew Tridgell
83221a0da0 r4112: when a pointer is NULL on the wire ensure it is null in the structure 2007-10-10 13:06:27 -05:00
Andrew Tridgell
659d029531 r4111: fixed winreg to use much simpler (and I believe correct) IDL for QueryValue 2007-10-10 13:06:27 -05:00
Andrew Tridgell
e839b19ec5 r4110: fixed pidl to allow arrays to have size_is() and length_is() elements
that depend on variables that come after the array in the structure or function.

This has been something that has been problematic for a while, but the
winreg QueryValue problem finally prompted me to fix it properly. We
should now go back and fix up all the ugly workarounds we have used to
avoid this problem in other calls.

Unfortunately the solution is fairly complex, and involves the use of
the internal ndr token lists (similar to the solution for relative
pointers). I wonder if anyone else will be able to follow the logic if
I get run over by a bus :-)
2007-10-10 13:06:27 -05:00
Andrew Tridgell
30c58b046d r4109: fixed an uninitialised socket write found by kukks 2007-10-10 13:06:27 -05:00
Jelmer Vernooij
c1023db5e8 r4106: Add full name of two more hives 2007-10-10 13:06:27 -05:00
Jelmer Vernooij
0fa6d84743 r4105: Fix IDL for QueryValue() and add a torture test for it.
Thanks to Michael Allen for some hints on what was wrong with the previous IDL.
2007-10-10 13:06:27 -05:00
Stefan Metzmacher
717454eb2f r4102: more uint64 vs HYPER_T fixes
NOTE:
 [u]int64 uses 4 Byte alignment
 and HYPER_T uses 8 Byte alignment

metze
2007-10-10 13:06:26 -05:00
Andrew Tridgell
49c8df5648 r4101: ignore secondary session requests to cope with a OS/2 bug reported by
Guenter Kukkukk
2007-10-10 13:06:26 -05:00
Stefan Metzmacher
74b9ef4de5 r4100: fix drsuapi_DsReplicaObjMetaData2() idl
(many thanks to tridge for telling me that HYPER_T isn't the same as uint64!)

metze
2007-10-10 13:06:26 -05:00
Tim Potter
24d9f97bd6 r4099: Spelling fixes. 2007-10-10 13:06:26 -05:00
Andrew Tridgell
c4c83f04f5 r4098: catch null guid string so RPC-DRSUAPI works against my server 2007-10-10 13:06:26 -05:00
Stefan Metzmacher
c2495d60a1 r4097: add missing file from last commit
sorry!:-)

metze
2007-10-10 13:06:26 -05:00
Stefan Metzmacher
893a8b8bca r4096: move the samdb code to source/dsdb/
the idea is to have a directory service db layer
which will be used by the ldap server, samr server, drsuapi server
authentification...

I plan to make different implementations of this interface possible
- current default will be the current samdb code with sam.ldb
- a compat implementation for samba3 (if someone wants to write one)
- a new dsdb implementation which:
  - understands naming contexts (directory parrtitions)
  - do schema and acl checking checking
  - maintain objectGUID, timestamps and USN number,
    maybe linked attributes ('member' and 'memberOf' attributes)
  - store metadata on a attribute=value combination...

metze
2007-10-10 13:06:26 -05:00
Andrew Tridgell
33e4cee17d r4095: smbsrv_terminate_connection() doesn't exit() in single processor mode, so after we
call it we need to return, and not continue processing packets
2007-10-10 13:06:25 -05:00
Stefan Metzmacher
4fd57d5e7c r4087: - add idl and torture tests for drsuapi_DsReplicaGetInfo()
(NOTE: that the drsuapi_DsReplicaObjMetaData2 struct is not corrently parsed yet
 and there're some unknown fields left in someother infotypes)

metze
2007-10-10 13:06:25 -05:00
Stefan Metzmacher
a7a6cea112 r4086: - make dcerpc_ndr_request_table_send() the default and rename it to just
dcerpc_ndr_request_send()
- this allows us to call dcerpc_log_packet() when we receive a packet we
  can't parse correctly

metze
2007-10-10 13:06:25 -05:00
Stefan Metzmacher
979c453c4d r4085: print out dcerpc_fault's as names
metze
2007-10-10 13:06:25 -05:00
Stefan Metzmacher
e5db585268 r4084: add some more error codes
metze
2007-10-10 13:06:25 -05:00
Stefan Metzmacher
ab6ec6b5f4 r4082: support alter_context requests
metze
2007-10-10 13:06:25 -05:00
Stefan Metzmacher
5d7d6f02cf r4081: use clearer names
metze
2007-10-10 13:06:24 -05:00
Stefan Metzmacher
ea7b496995 r4080: missing file from the last commit
metze
2007-10-10 13:06:24 -05:00
Stefan Metzmacher
6f3eb7bc03 r4079: implement the gensec_have_feature() correctly by asking
the backend what is actually in use

metze
2007-10-10 13:06:23 -05:00
Stefan Metzmacher
717f7c3555 r4078: use clearer names
metze
2007-10-10 13:06:23 -05:00
Stefan Metzmacher
e6d83d019d r4077: don't add wrapping to empty blobs
metze
2007-10-10 13:06:23 -05:00
Stefan Metzmacher
2647b47557 r4076: fix compiler warning
metze
2007-10-10 13:06:23 -05:00
Stefan Metzmacher
0c6d4246a4 r4075: implement RemoteTOD server function
metze
2007-10-10 13:06:23 -05:00
Andrew Tridgell
dcf6c297d3 r4074: make the RAW-ACLS test use the new lsa helper functions to determine
the privileges of the user running the test. This allows the test to
work out what the expected access masks are.
2007-10-10 13:06:23 -05:00
Andrew Tridgell
8780c40f05 r4073: - added a set of lsa helper routines to make lsa lookups that are
related to filesharing. For example, in order to manipulate ACLs
  properly its important to be able to call LookupSids, and to be able
  to lookup what privileges a SID has.

- added 3 new commands to smbclient "lookupname", "lookupsid" and
  "privileges"
2007-10-10 13:06:23 -05:00
Andrew Tridgell
d5bc706140 r4072: - changed the names of some of the well known sids to be more consistent
- added string constants for the important privileges.
2007-10-10 13:06:22 -05:00
Andrew Tridgell
29225d0bec r4071: - ldap does allow adding additional attribute values with a modify
operation, but not if the value already exists

- fixed syntax of test.ldif for ldap backend
2007-10-10 13:06:22 -05:00
Stefan Metzmacher
ab2c2f27e1 r4070: move some defines from asn_1.h to the places they belong to
metze
2007-10-10 13:06:22 -05:00
Andrew Tridgell
eef066175f r4069: better error code for SMBwriteBMPX 2007-10-10 13:06:22 -05:00
Andrew Tridgell
06e48d1276 r4068: added LANMAN2.1 to list of supported protocols (for OS/2) 2007-10-10 13:06:22 -05:00
Andrew Tridgell
6da058a28b r4067: no matches in findnext is not an error 2007-10-10 13:06:22 -05:00
Andrew Tridgell
335b1c6a52 r4066: add a mapping for NT_STATUS_NO_MORE_ENTRIES 2007-10-10 13:06:22 -05:00