1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-10 13:57:47 +03:00

16641 Commits

Author SHA1 Message Date
Andrew Tridgell
53ecaf4a42 fixed the DomainDNS searches in the netlogon code
(This used to be commit 7dce38f9897df02073132f18b1021e0d0636590c)
2008-08-22 20:50:07 +10:00
Andrew Tridgell
e80876ef9e Merge commit 'origin/v4-0-test' into v4-0-test
(This used to be commit 93cf0b3c7e6d8a4758c44519de51e51be89f76c7)
2008-08-22 18:39:52 +10:00
Andrew Tridgell
0521ed1ddf fixed the GUID and objectSID canonicalisation functions
(This used to be commit 115053ea7e70b067e7873668ed83f1f10908287d)
2008-08-22 18:37:34 +10:00
Andrew Tridgell
c50d361e07 fixed a speellling erra
(This used to be commit 3c058f50cc3b91d540feb51fb698d90565b2b7c9)
2008-08-22 18:37:11 +10:00
Andrew Tridgell
0a27ff953e Merge branch 'abartlet-4-0-local' into v4-0-test
(This used to be commit 469fac2669991b130dec219e1a109a8b2ce224be)
2008-08-22 17:37:43 +10:00
Andrew Tridgell
cc43037f19 fixed a problem with length limited ldap values
The core ldb code for string matching assumed NULL terminated strings,
whereas the anr module used data_blob_const() to effectively truncate
a ldb_val by changing its length. The ldb code is supposed to be based
around length limited blobs, not NULL terminated strings, so the
correct fix was to change the string comparison functions to be length
limited
(This used to be commit 26c6aa5a80ffaf06fc33f30a6533f8f16ef538bc)
2008-08-22 17:36:56 +10:00
Andrew Tridgell
a83bb07016 fixed error handling in ANR code
when we can't process an ANR request we need to continue with the
parse tree we were given, not a NULL tree
(This used to be commit ed66feb80aac7432049fe9fd86a9232984587e17)
2008-08-22 14:32:27 +10:00
Stefan Metzmacher
9d3add9b9f ndr_compression: implement mszip compression based on deflate()
The output doesn't match the output from windows servers,
but it's a start...

metze
(This used to be commit 8a2f9688275aa150b739b5525e738df15c5e25cc)
2008-08-21 12:50:43 +02:00
Stefan Metzmacher
e3319bf849 drsuapi.idl: use hand written push functions for the compressed blobs
This isn't really the final solution, as we compress the data twice,
but it works.

metze
(This used to be commit 6da1d41173a7b82412fcebdd751eade51cf82b2a)
2008-08-21 12:48:48 +02:00
Stefan Metzmacher
2d2e7f6c48 ndr_compression: add common parts of ndr compression
metze
(This used to be commit 9fe466f84afcbd64c9bbfe0f9ea6c1933acb07fe)
2008-08-21 11:47:40 +02:00
Andrew Bartlett
4ad97a1d05 Don't walk past the end of ldb values.
This is a partial fix towards bugs due to us walking past the end of
what we think are strings in ldb.  There is much more work to do in
this area.

Andrew Bartlett
(This used to be commit 5805a9a8f35fd90fa4f718f73534817fa3bbdfd2)
2008-08-21 19:24:58 +10:00
Andrew Bartlett
38f7405298 Push loading the objectGUID and objectSID handlers earlier.
Andrew Bartlett
(This used to be commit 0b6e53f80b063d8702718c84409d7b069aee9c05)
2008-08-21 17:29:47 +10:00
Andrew Bartlett
3d3fc7bdaa Stop every ldb startup doing a write to the database.
Something in the search stack adds a distinguisedName record, which
isn't in the message we generate.  So we compare, fail and rewrite the
record - every time ldb starts up...

Andrew Bartlett
(This used to be commit 44775d1ed4a4b8edc66a06e2b3710aba6a0dd019)
2008-08-21 16:42:03 +10:00
Andrew Bartlett
53a35b2655 Validate input in the CLDAP and DGRAM 'netlogon' responder.
(This used to be commit 682ca3cae1d5e796bc58142f79c99d43742ac85c)
2008-08-21 16:09:42 +10:00
Andrew Bartlett
c36c42af29 Handle error cases in attribute handlers better.
We don't need to just bail, for all these error cases there is still
real result that can be made - just fall back to binary copy/compare.

Andrew Bartlett
(This used to be commit 6aa5dde2aa9a5f070871ecc117e44bfcad363459)
2008-08-21 15:10:40 +10:00
Andrew Bartlett
8237c0ba83 The index handling is now configured from the schema load, not by a
template.

Andrew Bartlett
(This used to be commit b36c6a21ad12fdc1b53efdc3f29cde7614b4fa9e)
2008-08-21 12:59:16 +10:00
Andrew Bartlett
fa3f3bee83 Set both attributes and indexes into the database on schema load.
This ensures that a rudementary schema is always present (for
bootstrapping), and that the indexes are maintained equal to the
schema (rather than hard-coded).

Andrew Bartlett
(This used to be commit 747d683b0d92c3b1cde67245d514977a2c87dc44)
2008-08-21 12:58:00 +10:00
Andrew Bartlett
64293ca4af All these syntaxes are now handled by the schema.
(This used to be commit 94d5e69190f34d66d4defd4a7de7ce24bee77bc3)
2008-08-21 12:56:34 +10:00
Andrew Bartlett
473540d4a5 Don't hardcode attributes to be treated as a DN
This is now handled by reading the schema into the attributes.

Also, when we do set something here, mark it as FIXED, so the schema
and any reload from @ATTRIBUTES won't touch it.

Andrew Bartlett
(This used to be commit 7b24701335398ece3d1b3a20cf5f1174500b16ce)
2008-08-21 12:56:04 +10:00
Andrew Bartlett
0d89adcd4b Correct anr search commants and error messages in ldap.js
(This used to be commit 233dd885c2a2b4ee7cc2287efe7d6e03625d4981)
2008-08-21 12:51:55 +10:00
Andrew Bartlett
4016cfcab7 Don't allow a NULL syntax
(This used to be commit 505a0c2b702b696b91dab683626bb25b14a49c38)
2008-08-21 12:51:06 +10:00
Andrew Bartlett
c06e928580 Don't maniplate control entries in samldb
(This used to be commit 8003ee9abf474de534677283fc499f9a3d992b20)
2008-08-21 12:50:22 +10:00
Stefan Metzmacher
8acc7f7da7 krb5pac.idl: make use of subcontext(0xFFFFFC01) to handle the type Serialization header
Now we should be able to handle bigendian PAC_LOGON_INFO buffers.

metze
(This used to be commit adbff0b0f92aa0742a8293071776b388879cbd8e)
2008-08-20 15:23:25 +02:00
Stefan Metzmacher
d0a8c05cb2 kdc/pac-glue: pull/push the logon_info via the PAC_INFO union
This prepares the next commit...

metze
(This used to be commit 7d297f7fb7a3ac388390429db7cb16fa60d3f8c0)
2008-08-20 15:23:02 +02:00
Stefan Metzmacher
75f594b285 drsuapi: fix samba4 callers after drsuapi.idl changes
metze
(This used to be commit 4b054cee51c39c5430bcadd5c06a94dc3e6b0d8f)
2008-08-20 15:22:05 +02:00
Stefan Metzmacher
9d0db64d24 drsuapi.idl: readd type serialization headers to compressed DsGetNCChangesCtr*
metze
(This used to be commit 4e6937816f1563686d04da4ab00a46d4461401b9)
2008-08-20 15:22:05 +02:00
Stefan Metzmacher
fbeb6d7801 ndr_compression: remove the type serialization handling from the compression layer
metze
(This used to be commit 70a7b1f6c2e359102467ea270c2bb1efe736f64a)
2008-08-20 15:22:05 +02:00
Stefan Metzmacher
17fcc4118f ndr_compression: unify the common handling of mszip and xpress compression
metze
(This used to be commit 925a2066ffa18a86704a8ee1a7a6908e0cd65a2a)
2008-08-20 15:22:04 +02:00
Stefan Metzmacher
f4e2f3f14c librpc/ndr: add support for Type Serialization Version 1 to subcontext
We use the header size 0xFFFFFC01 as magic for constructed types.

See [MS-RPCE] 2.2.6 Type Serialization Version 1 for more details.

metze
(This used to be commit 98d3568f079ea143214bcf5271b636313d6491c3)
2008-08-20 15:22:04 +02:00
Stefan Metzmacher
9f2468af15 pidl/NDR::Parser: pass typedefs through the ParseElement*Level() functions
metze
(This used to be commit e51c0cf62c91f79f703b17bcf37c4a6fa8107ae0)
2008-08-20 15:22:04 +02:00
Stefan Metzmacher
397b007df9 pidl/NDR: generate a LEVELS array for typedefs
metze
(This used to be commit 6785684db3446c03d8061c8bb3d94889b443d7d5)
2008-08-20 15:22:03 +02:00
Stefan Metzmacher
9941c1e7fc pidl/NDR: correctly check for valid properties
grep($str, @array) returns the number of elements in @array!
We need grep(/^$str$/, @array) to the only the amount of matches.

Also fix unitialized vars for the error case.

metze
(This used to be commit f002f147d8a8a0b49389e30e611ff8b33dd077e1)
2008-08-20 15:22:03 +02:00
Stefan Metzmacher
8e6161d1b2 pidl/NDR::Parser: pass $ndr to ->start_flags() and ->end_flags()
metze
(This used to be commit bdff9728cc1c8b5fe5a29040e092a8e48603725b)
2008-08-20 15:22:03 +02:00
Stefan Metzmacher
ecc1c3a27c pidl/NDR::Parser: pass $ndr to ParseMemCtxPull*()
metze
(This used to be commit c3921c7b4e7a3b51b97a2afb688271a8ae403105)
2008-08-20 15:22:03 +02:00
Stefan Metzmacher
98450a5a7c pidl/NDR::Parser: pass $ndr to ParsePtrPush()
metze
(This used to be commit 77571cd7c74dfaa93e58f047530df369ae293ffd)
2008-08-20 15:22:02 +02:00
Stefan Metzmacher
85fde41609 pidl/NDR::Parser: use my $ndr = "ndr" in the remaining top functions
metze
(This used to be commit ce83f4bb596fad23000acc1f6691669e2f2cfe1b)
2008-08-20 15:22:02 +02:00
Stefan Metzmacher
b999de0689 pidl/NDR::Parser: pass down $ndr from the top functions
metze
(This used to be commit b01d7457fa5b3572989b821f04e023fd9abd0d52)
2008-08-20 15:22:02 +02:00
Stefan Metzmacher
ef7e12b914 pidl/NDR::Parser: pass $ndr to ->PRINT_FN_BLOB()
metze
(This used to be commit a143806364051141604ebb40eb5a4ef72958b55f)
2008-08-20 15:22:02 +02:00
Stefan Metzmacher
c8ef2956c6 pidl/NDR::Parser: pass $ndr to ->PUSH_FN_BLOB()
metze
(This used to be commit 71b0d64866eb1a4f6dc73eeb57b5f0fe5d8a5780)
2008-08-20 15:22:02 +02:00
Stefan Metzmacher
8554fcbc03 pidl/NDR::Parser: pass $ndr to ->PULL_FN_BODY()
metze
(This used to be commit 38c4b2a3e9b316f390651297854de033ede0d128)
2008-08-20 15:22:01 +02:00
Stefan Metzmacher
47edb623f6 pidl/NDR::Parser: use $ndr instead of "ndr"
metze
(This used to be commit a1cf2289dd4ff9a3f9cf61da680223193235e35f)
2008-08-20 15:22:01 +02:00
Andrew Bartlett
b4ba27d7db Use the new SEARCH_FLAG_ANR define
(This used to be commit 07d122ce2c255124dfb3acf71a3afdf52f06e1b1)
2008-08-20 16:18:44 +10:00
Andrew Bartlett
e7db2325e9 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-abartlet
(This used to be commit ae502f9e3991209d70a745bef3a3e6e7484cdb5f)
2008-08-20 16:02:13 +10:00
Andrew Tridgell
9dffeab5a8 don't overwrite fixed attributes with @ATTRIBUTES
(This used to be commit e860fc171fd127d73df23336089c1479911953da)
2008-08-20 16:00:54 +10:00
Andrew Bartlett
4bfab3bedb Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-abartlet
(This used to be commit 9fa48b3572cb4e55cfaa48a8b516a91904048573)
2008-08-20 15:52:08 +10:00
Andrew Tridgell
f96f623854 Merge commit 'origin/v4-0-test' into v4-0-test
(This used to be commit 3bdc906eb63a494f0d8478c13f8330828aa2f725)
2008-08-20 15:50:58 +10:00
Andrew Tridgell
7e1c62f8b6 added a LDB_ATTR_FLAG_FIXED so the schema module can mark attributes
as never to be removed.
(This used to be commit 9dce558206a2ce70c69b9b6c5c3c9c58ee165b1d)
2008-08-20 15:46:58 +10:00
Andrew Bartlett
6e5f2454ac Apply attributes (and their syntax) from the schema into ldb
This changes the @ATTRIBUTES record to be for bootstrapping only,
before we find the schema.

Andrew Bartlett
(This used to be commit 358477fcc041d5fb2e6ac5641c2f899cc49cfb69)
2008-08-20 15:46:46 +10:00
Andrew Bartlett
add717dd0e Add schema search flags from MS-ADTS
(This used to be commit 731d9e569a474da27014737e0805ae712366357d)
2008-08-20 15:45:16 +10:00
Andrew Bartlett
18e86ccf86 Split schema_init.c into smaller bits.
This should make schema manipulation a little easier to follow.

Andrew Bartlett
(This used to be commit 300ed83526e75d834bd23ddd1c1c26ebe2555e0f)
2008-08-20 13:22:16 +10:00