1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00
Commit Graph

1283 Commits

Author SHA1 Message Date
Andrew Tridgell
4685a42eaf r22090: fix error handling in cldap client library to cope with bad host names
(This used to be commit 99c51b104d)
2007-10-10 14:49:51 -05:00
James Peach
c61db93c7e r21949: After discussion with the Apple and Linux client maintainers,
changing the FindFirst response for the UNIX_INFO2 level to include
a length field before the name. The name is not required to be null
terminated. the lenght field does not count any null.
(This used to be commit eef672bfff)
2007-10-10 14:49:39 -05:00
Andrew Bartlett
9b03286b32 r21806: I've been working over the last week to fix up the LDAP backend for
Samba4.  This only broke on global catalog queries, which turned out to
be due to changes in the partitions module that metze needed for his
DRSUAPI work.

I've reworked partitions.c to always include the 'problematic' control,
and therefore demonstrated that this is the issue.  This ensures
consistency, and should help with finding issues like this in future.

As this control (DSDB_CONTROL_CURRENT_PARTITION_OID) is not intended to
be linearised, I've added logic to allow it to be skipped when creating
network packets.

I've likewise make our LDAP server skip unknown controls, when marked
'not critical' on it's input, rather than just dropping the entire
request.  I need some help to generate a correct error packet when it is
marked critical.

Further work could perhaps be to have the ldap_encode routine return a
textual description of what failed to encode, as that would have saved
me a lot of time...

Andrew Bartlett
(This used to be commit eef710668f)
2007-10-10 14:49:29 -05:00
Andrew Bartlett
3370f2f2d7 r21761: - Give more detail on LDAP client library failures (make it clear
where the error is from)

- Make default error string more consistant

Andrew Bartlett
(This used to be commit 7f115579d2)
2007-10-10 14:49:24 -05:00
James Peach
754d416ea5 r21710: Add client support for the UNIX_INFO2 info level in the QueryFile,
QueryPath and FindFirst calls. Add a new torture test to verify the
server side.
(This used to be commit 7f56da2d1f)
2007-10-10 14:49:16 -05:00
James Peach
fcaeedeff3 r21668: Add SMB_QFS_POSIX_WHOAMI to trans2.h so it's easy to find. Add
convenience API to create an anonymous credential. Don't clobber
cmdline_credentials in the UNIX-WHOAMI test.
(This used to be commit 73cea4e0c6)
2007-10-10 14:49:07 -05:00
Stefan Metzmacher
c6b66db2b2 r21594: give the same error in all resolve backends
metze
(This used to be commit 5534ba591d)
2007-10-10 14:49:03 -05:00
Stefan Metzmacher
e31d922592 r21593: give a more useful error, when we can't resolve a long name
via broadcast of wins

metze
(This used to be commit 49591d6996)
2007-10-10 14:49:02 -05:00
Stefan Metzmacher
7f13043d7e r21592: compress_name() returns NULL for names longer than 15 chars
giving NO_MEMORY back is ugly, so give a useful error

metze
(This used to be commit fbc1e16331)
2007-10-10 14:49:02 -05:00
Stefan Metzmacher
505fd4eb99 r21591: add new error code
metze
(This used to be commit 04da3db29d)
2007-10-10 14:49:02 -05:00
Andrew Tridgell
60fd088c48 r21535: - fixed a crash in the RAW-ACLS test. When a dcerpc_pipe is created
using the pattern in the clilsa code, it didn't fill in the p->binding
structure. This affects nearly all users of dcerpc_pipe_open_smb(), so
the simplest fix is to ensure that dcerpc_pipe_open_smb() initialises
the binding if its not already there.

- re-enable the RAW-ACLS test
(This used to be commit d8875c286d)
2007-10-10 14:48:54 -05:00
Stefan Metzmacher
bf772399bf r21511: this seems to be the nicer fix for the problem with
the windows 2000 LDAP client

metze
(This used to be commit d40465470f)
2007-10-10 14:48:47 -05:00
Stefan Metzmacher
7f9d949bd3 r21510: make it possible to push tags with length > 0xFFFFFF
metze
(This used to be commit 8e604107da)
2007-10-10 14:48:47 -05:00
Stefan Metzmacher
31d6d8c457 r21501: ugly but the windows 2000 mmc deturns decoding error without this
metze
(This used to be commit f17da75754)
2007-10-10 14:48:45 -05:00
Stefan Metzmacher
aa5677040c r21316: if we got an unexpected nbt packet that most times mean
we got a 2nd answer to a broadcast message and have already remove
the packet id from out list while getting the first response

metze
(This used to be commit 8c26e04900)
2007-10-10 14:48:09 -05:00
Stefan Metzmacher
08de05ce5a r21307: make it possible to pass in NULL for domain or rid,
if someone isn't interessted in one of it

metze
(This used to be commit 1fdc71918a)
2007-10-10 14:48:08 -05:00
Jelmer Vernooij
97416e6b01 r21297: Remove the GTK+ tools and library from the main repository. They are now maintained separately in bzr at http://people.samba.org/bzr/jelmer/samba-gtk
This also adds some more headers to the list that is installed and a couple of extra #include lines so these
headers can be used externally without problems.
(This used to be commit 07652f65ce)
2007-10-10 14:48:04 -05:00
Stefan Metzmacher
10c928a94f r21291: add two more error codes
metze
(This used to be commit dd04c5dec5)
2007-10-10 14:48:02 -05:00
Andrew Tridgell
21650cf377 r21206: - a couple more nttrans places were a memcpy() should be used
- changed the setup array in nttrans to be a uint8 array, instead of a
  uint16 array. This makes it clearer that it is the job of the caller
  to do any byte swapping within that data
(This used to be commit fa3c9b29ae)
2007-10-10 14:44:45 -05:00
Volker Lendecke
2342219d69 r21183: Commit the big/little endian fix for nttrans setup[] handling.
Please check!

For code symmetry reasons, trans2 might also see this fix, but this is left to
the interested reader :-)

Volker
(This used to be commit f2d364ebe6)
2007-10-10 14:44:43 -05:00
Stefan Metzmacher
a9a3e4eafc r21072: fix compiler warning
metze
(This used to be commit e788709835)
2007-10-10 14:44:28 -05:00
Jelmer Vernooij
c471abbcfe r20963: remove unused functions, run LOCAL-TDR by default
(This used to be commit 0f34c67fff)
2007-10-10 14:44:04 -05:00
Stefan Metzmacher
d363192d64 r20801: try to always fix up the acl revision when we add or remove
an ace

metze
(This used to be commit 18cc56be6a)
2007-10-10 14:43:31 -05:00
Stefan Metzmacher
d6fafdb237 r20800: fix compiler warnings
metze
(This used to be commit 6ce994720c)
2007-10-10 14:43:31 -05:00
Stefan Metzmacher
e754ec1d8a r20799: if any ace has the optional sub object, the acl revision needs
to be SECURITY_ACL_REVISION_ADS (4)

metze
(This used to be commit a67bb43659)
2007-10-10 14:43:31 -05:00
Stefan Metzmacher
2246d32e70 r20795: dom_sid_parse_talloc() gets an null terminated string as input,
the SDDL string has the sid strings embedded, so we need to create
a null terminated string...

metze
(This used to be commit 532395a18d)
2007-10-10 14:43:30 -05:00
Stefan Metzmacher
15f6cf2449 r20765: add two more schema related error codes
metze
(This used to be commit 75f5a88f22)
2007-10-10 14:40:48 -05:00
Andrew Tridgell
1c211a2e43 r20650: revert a bunch of code I didn't mean to commit yet
(This used to be commit b3e2d49087)
2007-10-10 14:37:26 -05:00
Andrew Tridgell
f6274959ba r20647: add cluster code
(This used to be commit 5870830b99)
2007-10-10 14:37:24 -05:00
Andrew Tridgell
1cd4339b9a r20646: first preparations for cluster enablement. This changes "
uint32_t server_id
to
  struct server_id server_id;

which allows a server ID to have an node number. The node number will
be zero in non-clustered case. This is the most basic hook needed for
clustering, and ctdb.
(This used to be commit 2365abaa99)
2007-10-10 14:37:23 -05:00
Stefan Metzmacher
a2f568f000 r20404: add error code for missing attribute syntax
metze
(This used to be commit 769ce9799b)
2007-10-10 14:30:23 -05:00
Stefan Metzmacher
11018b0e13 r20378: add new error code that says the schema mismatches between DC's
metze
(This used to be commit e769029f42)
2007-10-10 14:30:19 -05:00
Volker Lendecke
84e7faf6cd r20308: ContextSimple can be zero length -- seen in a multi-step gssapi ldap bind. Did
not find that in Samba3 code, so there's nothing to port.

Volker
(This used to be commit 9bdc19b6d5)
2007-10-10 14:29:37 -05:00
Simo Sorce
52455cb922 r20284: Simplify OID primitive BER parsing.
Do not require an artificial ASN.1 context to be setup.

Simo.
(This used to be commit 14b3b9861a)
2007-10-10 14:29:31 -05:00
Stefan Metzmacher
06c58a3dbb r20277: make sure the asn1 structure has a welldefined state after a asn1_free()
metze
(This used to be commit 7e7d1a1da2)
2007-10-10 14:29:30 -05:00
Stefan Metzmacher
bfa5a5a441 r20276: remove unneeded talloc_strdup()
metze
(This used to be commit c4733b20c7)
2007-10-10 14:29:29 -05:00
Stefan Metzmacher
3853f820e6 r20259: add function to start a fake tag so that asn1_read_OID_String()
can work alone

metze
(This used to be commit ea70f6ff07)
2007-10-10 14:29:28 -05:00
Stefan Metzmacher
b55a68b368 r20258: add functions to read and write asn1 encoded OID strings without leading tag
metze
(This used to be commit 576d4c54cc)
2007-10-10 14:29:28 -05:00
Stefan Metzmacher
f37b7b8582 r20213: add 2 error codes related to the msDs-IntId attribute
metze
(This used to be commit dd5df84ccc)
2007-10-10 14:29:23 -05:00
Stefan Metzmacher
b236d54c42 r20141: use the gensec_features of the cli_credentials for ildap connections,
instead of hardcoded GENSEC_FEATURE_SEAL.

That means plain LDAP is now the default.

metze
(This used to be commit b69471866c)
2007-10-10 14:29:13 -05:00
Stefan Metzmacher
f9609d779d r20080: add error code that maps to NT_STATUS_INVALID_NETWORD_RESPONSE
metze
(This used to be commit cb5c2e9dc6)
2007-10-10 14:29:01 -05:00
Andrew Tridgell
c72c3e9834 r20077: support large readx replies, as done by samba3 (and the snia spec),
but not done by windows servers
(This used to be commit e5dbbe177c)
2007-10-10 14:29:01 -05:00
Stefan Metzmacher
be69066736 r20072: make sure WERR_ACCESS_DENIED gets mapped to NT_STATUS_ACCESS_DENIED
metze
(This used to be commit 417f64184e)
2007-10-10 14:28:59 -05:00
Stefan Metzmacher
3826a6027f r19735: report the LDAP error code in the CLDAP replies to the caller
metze
(This used to be commit f4a6fade3a)
2007-10-10 14:28:16 -05:00
Stefan Metzmacher
c7367e873e r19734: display LDAP error code nicer
metze
(This used to be commit a0a45c3326)
2007-10-10 14:28:16 -05:00
Stefan Metzmacher
146a4ff13a r19724: add a helper functions to return an CLDAP error
metze
(This used to be commit 0a1ecb9116)
2007-10-10 14:28:14 -05:00
Jelmer Vernooij
c81f2930a2 r19676: Fix some more dependencies.
(This used to be commit 8768bec81f)
2007-10-10 14:25:29 -05:00
Stefan Metzmacher
fe2a5a8abf r19645: don't pass NULL as mem_ctx...
metze
(This used to be commit 643a38bc30)
2007-10-10 14:25:25 -05:00
Stefan Metzmacher
c71152180c r19642: convert host.c to new composite api
metze
(This used to be commit a5d36a6dde)
2007-10-10 14:25:24 -05:00
Stefan Metzmacher
3bc459f813 r19639: convert nbtlist.c to new composite api
metze
(This used to be commit 800999733e)
2007-10-10 14:25:23 -05:00