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

1370 Commits

Author SHA1 Message Date
Stefan Metzmacher
31d6d8c457 r21501: ugly but the windows 2000 mmc deturns decoding error without this
metze
(This used to be commit f17da75754f8cc79b60e04b54a4bc99191e71ff3)
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 8c26e04900da02bdf440f1d48b512e2550e89c34)
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 1fdc71918a430c35af91fa7788e191d381f76d56)
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 07652f65ce7a5b19130f1a27cbf0e1e5fae13454)
2007-10-10 14:48:04 -05:00
Stefan Metzmacher
10c928a94f r21291: add two more error codes
metze
(This used to be commit dd04c5dec58b18048ca5029f7bfe513242cbe4e9)
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 fa3c9b29ae1c7c6a9bc97484cc386aeec9b5d266)
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 f2d364ebe69fc5d624e456cc7d941071811a5567)
2007-10-10 14:44:43 -05:00
Stefan Metzmacher
a9a3e4eafc r21072: fix compiler warning
metze
(This used to be commit e788709835fa13b512fbf38951c9d0ca9bc3df18)
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 0f34c67fff53d5bd3c1b5a5618190ad7154e8d07)
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 18cc56be6a7c21e5b19d0826aca6ae2416c116b8)
2007-10-10 14:43:31 -05:00
Stefan Metzmacher
d6fafdb237 r20800: fix compiler warnings
metze
(This used to be commit 6ce994720cdd8b7dd0b789460b5ae7da19261696)
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 a67bb4365958f4bfadbf47b2231992e2aadd26a1)
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 532395a18db84affa8a743b995e9fae2e3c312f2)
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 75f5a88f2229fa604726ecb0ebb2b5a4589d5b86)
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 b3e2d4908781781a487eaeb683d22eb967e5597d)
2007-10-10 14:37:26 -05:00
Andrew Tridgell
f6274959ba r20647: add cluster code
(This used to be commit 5870830b99a8d76bda1ff5af3fcf8dda9aba50ec)
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 2365abaa991d57d68c6ebe9be608e01c907102eb)
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 769ce9799b0e9d1ccc5f2155440e5dedf655d40c)
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 e769029f42f848db8121c7dcfe5be261861776c8)
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 9bdc19b6d5fe3dff57a07f4b760840d0043a53ad)
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 14b3b9861ae47498c74a6643e6979b3d85260a61)
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 7e7d1a1da2d64d28915a06c399072de1caf108c4)
2007-10-10 14:29:30 -05:00
Stefan Metzmacher
bfa5a5a441 r20276: remove unneeded talloc_strdup()
metze
(This used to be commit c4733b20c7c113dc1abfb2219a899b80bbcc2875)
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 ea70f6ff07930951d98a952b03963d0ba358fec4)
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 576d4c54cca844164b90e5d6ec71fe44b59607b7)
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 dd5df84cccd10e9880648eecbff6faf7252d5e73)
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 b69471866c2a6c61002147938f233f2f63963ba4)
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 cb5c2e9dc6838145fe9f6f2e727a1df26e688467)
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 e5dbbe177c13b2788b4b4765b3b37cc918b3405c)
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 417f64184e734ab4ce5c78dc3d268c5c4a2cd18d)
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 f4a6fade3a3113732ef66433c5739657f0bfdbee)
2007-10-10 14:28:16 -05:00
Stefan Metzmacher
c7367e873e r19734: display LDAP error code nicer
metze
(This used to be commit a0a45c3326560b9b31d0e17f1439d2638e91aee0)
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 0a1ecb911656f8170708ce13e1183557fe118794)
2007-10-10 14:28:14 -05:00
Jelmer Vernooij
c81f2930a2 r19676: Fix some more dependencies.
(This used to be commit 8768bec81f57131a0c9754e8121b345c0be4a5d0)
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 643a38bc30a0df1582035b8d264e0dbbc2d2e152)
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 a5d36a6ddefb8c24e748b839391241da41e31440)
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 800999733eb2f35486a62fb8fa9d179c8ca312fa)
2007-10-10 14:25:23 -05:00
Stefan Metzmacher
d5314b9f3f r19638: convert resolve.c to the new composite api
metze
(This used to be commit 617f9c70c1b61e0fd4338048bbd94e7a4722ad9d)
2007-10-10 14:25:23 -05:00
Andrew Bartlett
13dbee3ffe r19598: Ahead of a merge to current lorikeet-heimdal:
Break up auth/auth.h not to include the world.

Add credentials_krb5.h with the kerberos dependent prototypes.

Andrew Bartlett
(This used to be commit 2b569c42e0fbb596ea82484d0e1cb22e193037b9)
2007-10-10 14:25:00 -05:00
Jelmer Vernooij
4fa24df98d r19507: Merge my DSO fixes branch. Building Samba's libraries as shared libraries
works again now, by specifying --enable-dso to configure.
(This used to be commit 7a01235067a4800b07b8919a6a475954bfb0b04c)
2007-10-10 14:24:41 -05:00
Stefan Metzmacher
827d142e9d r19481: - reset the vuid before trying a new session setup
- only touch session->vuid when needed
- it make no sense to set an .spnego.out.vuid

metze
(This used to be commit 1940fbed154c89d29214ddf293128a70a97bf923)
2007-10-10 14:21:41 -05:00
Stefan Metzmacher
9b97c4d02e r19480: - clear the whole session struct (only let the pid untouched)
- zero state struct

metze
(This used to be commit 97fb407a4cfcf71e95663e437cb7f638ac4028fc)
2007-10-10 14:21:41 -05:00
Andrew Bartlett
9542481727 r19464: Reject passwords that cannot be converted into UCS2.
Andrew Bartlett
(This used to be commit c843fce7a0e9b91c4d2de44e7a9ad9599b33ec5c)
2007-10-10 14:21:37 -05:00
Volker Lendecke
5c46265048 r19200: Implement smbcli_rap_netservergetinfo. To be used in RPC-SAMBA3SPOOLSS and
others that might need the server name.

Volker
(This used to be commit 03eaf0edf9f8a6d70375f9f12810b4fbb860290a)
2007-10-10 14:20:52 -05:00
Günther Deschner
7c793e1bb7 r19162: Merge WERR code from Samba 3.
Guenther
(This used to be commit d9562e0f83d76043da7955e89b1fff8a1d921a36)
2007-10-10 14:20:46 -05:00
Andrew Bartlett
31454d2e8b r18989: Fixes found by these two LDAP testsuites:
- http://www.ee.oulu.fi/research/ouspg/protos/testing/c06/ldapv3/
- http://gleg.net/protover_ldap_sample.shtml

Also fixes found by a subsequent audit of the code for similar issues.
(This used to be commit 441a4f6262459dabfefd9bb12622ada9c007a60c)
2007-10-10 14:20:26 -05:00
Andrew Tridgell
318682b003 r18971: avoid strndup is a few places. Fixes a minor memory leak, and should
fix RPC-LSA on AIX.
(This used to be commit 6cce709d08579f4e00b44b692332a557b0ea3b86)
2007-10-10 14:20:25 -05:00
Andrew Tridgell
bbe3cffb4b r18968: EWOULDBLOCK should also be mapped to STATUS_MORE_ENTRIES
(This used to be commit 27114fe1752f20c58948b34264e38db263f7a0ea)
2007-10-10 14:20:25 -05:00
Andrew Tridgell
f3d684a48c r18965: fixed the bug with RPC-NETLOGON and solaris sparc machines. This bug
took a _LONG_ time to find.

The problem was that when encoding/decoding password buffers we use
the pull/push string functions, which by default align unicode
strings. But on solaris sparc the buffer is not aligned always (its a
stack variable, an array of uint8_t). That perfectly OK in C, so we
just tell the pull/push functions not to auto-align.
(This used to be commit bb7835eced00607eb6b1725be6d96a6dcb842049)
2007-10-10 14:20:24 -05:00
Andrew Tridgell
a0c614ede2 r18916: fixed the messaging layer on *BSD systems. When a socket was full we
were getting ENOBUFS, which mapped to NT_STATUS_NO_MEMORY, which in
turn caused the messaging code to loop trying until it gave up.

Now it correctly falls back to select. Messaging speed goes from 3
messages per second to over 7000 on my test vmware box. Not bad for a
one line change :)
(This used to be commit 6568f30adf980c572f9ffd6ff884336ebe652f90)
2007-10-10 14:20:21 -05:00