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

7234 Commits

Author SHA1 Message Date
Tim Potter
03c7da27a0 r11626: Fix unhandled enum in case statement warnings by noting appropriately
that some values aren't handled.  The remaining warnings I think are
actual bugs or required functionality that is missing (mostly lack of
server side Unix extensions).
2007-10-10 13:46:01 -05:00
Tim Potter
12c77bb2e1 r11625: NULL terminate list of strings. For some reason this wasn't causing a
crash on i386 but was on ia64.
2007-10-10 13:46:00 -05:00
Tim Potter
f177c223e6 r11624: Use enum names instead of magic numbers. 2007-10-10 13:46:00 -05:00
Andrew Tridgell
4ea66e6e80 r11623: convert the dcerpc socket layer to the generic packet code 2007-10-10 13:46:00 -05:00
Andrew Tridgell
6ef4ba0c81 r11622: convert the ldap server to the generic packet code 2007-10-10 13:46:00 -05:00
Andrew Tridgell
6ab8082234 r11621: some minor fixes from comments by metze 2007-10-10 13:45:59 -05:00
Andrew Tridgell
1d29ad2a27 r11620: switch the ldap client code over to using the generic packet code 2007-10-10 13:45:59 -05:00
Andrew Tridgell
24f20eed0e r11619: use the 32 bit length helper in the kdc. 2007-10-10 13:45:59 -05:00
Andrew Tridgell
b4dbe55105 r11618: added a generic '32 bit length prefix' full packet helper to the packet code 2007-10-10 13:45:59 -05:00
Jeremy Allison
d42644927d r11616: Replace old crc32 code with one from the FreeBSD tree.
*  COPYRIGHT (C) 1986 Gary S. Brown.  You may use this program, or
 *  code or tables extracted from it, as desired without restriction.
Jeremy.
2007-10-10 13:45:58 -05:00
Stefan Metzmacher
5cc44994fb r11611: don't use unions without a instance name, not all compilers support that...
fix the build with cc on IRIX 6.5 us4

tridge: we should post this to the appweb maintainers, also with my
        hex constant fix from a few weeks ago!

metze
2007-10-10 13:45:58 -05:00
Andrew Tridgell
d2b568a111 r11609: fixed handling of one way requests with new send code 2007-10-10 13:45:58 -05:00
Andrew Tridgell
2cbcc8a919 r11608: switched the kdc to use the generic packet send code 2007-10-10 13:45:58 -05:00
Andrew Tridgell
9eee7bafa1 r11607: switched the smb server to use the generic packet send code 2007-10-10 13:45:58 -05:00
Andrew Tridgell
0bcea45b15 r11606: use the generic packet send code in libcli/raw/ 2007-10-10 13:45:57 -05:00
Andrew Tridgell
f98d499b2e r11605: added handling of the send queue to the generic packet handling code 2007-10-10 13:45:57 -05:00
Andrew Tridgell
0a797712fb r11604: converted the kdc code to use the new packet lib. Andrew, I'm not sure
how to test this, can you have a look and see if it works for you? Is
there some hidden switch to kinit to use tcp?
2007-10-10 13:45:57 -05:00
Andrew Tridgell
0fc496bb6f r11603: converted the smb server to use the new generic packet code 2007-10-10 13:45:57 -05:00
Andrew Tridgell
d860eb7956 r11602: added packet_set_serialise() to allow the generic packet layer to
handle optional request serialisation (this is something that is
commonly needed on stream connections)
2007-10-10 13:45:57 -05:00
Stefan Metzmacher
b2b4969bdc r11601: try to fix the build on IRIX 6.5 us4
abartlet, tridge, lha: is there a better way?

metze
2007-10-10 13:45:57 -05:00
Stefan Metzmacher
06ccbc3fa9 r11600: remove unused code
metze
2007-10-10 13:45:56 -05:00
Stefan Metzmacher
35e17abb87 r11599: remove local (and broken) version of strhaslower() strhasupper()
metze
2007-10-10 13:45:56 -05:00
Andrew Tridgell
74fb317f2a r11598: fixed strhaslower() and strhasupper() to not falsely recognise
caseless characters as lower/upper
2007-10-10 13:45:56 -05:00
Simo Sorce
09e6f494b4 r11597: revert a commit by mistake 2007-10-10 13:45:56 -05:00
Andrew Tridgell
f8d43f1f67 r11596: switched the libcli/raw/ code over to using the lib/stream/ generic
packet parsing code. This simplifies the logic in the raw client
library a fair bit
2007-10-10 13:45:56 -05:00
Andrew Tridgell
e6c47b954a r11595: added a helper layer to parse streams into individual packets. This is
something that Andrew Bartlett has been asking for for a while, and
when I started having to re-invent this packet parsing code yet again
for SMB2 I decided it was time to do it generically

you use it by providing a "is this a full packet yet?" helper function
to the packet_*() functions, which then handle all the logic of
partial packet buffering.

This also goes to great lengths to operate efficiently, minimising the
number of recv system calls.
2007-10-10 13:45:55 -05:00
Andrew Tridgell
cd567bcb24 r11594: ensure ldb_search() sets *res to NULL on failure (some of the updated
ldb_result code coud rely on that)
2007-10-10 13:45:55 -05:00
Andrew Tridgell
e04262d391 r11593: added a data_blob_realloc() function 2007-10-10 13:45:55 -05:00
Andrew Tridgell
5c7f3fef3e r11592: fixed a crash bug from the ldb_result changes (res was being used after being freed) 2007-10-10 13:45:55 -05:00
Rafal Szczesniak
90db7f13bc r11588: Remove unused (at the moment) variable and quiet compiler warning.
rafal
2007-10-10 13:45:55 -05:00
Rafal Szczesniak
5a338b04f3 r11587: Trivial testing code giving an idea of how could using
subcontexts look like.

rafal
2007-10-10 13:45:54 -05:00
Rafal Szczesniak
25310d0592 r11586: Further work on ejs interface for libnet. The idea is to split libnet
functionalities into groups of subcontexts of net subcontext just the
way it's done in net tool. This way we can pass common arguments when
creating subcontext. Also, this may allow easier writing net tool
completely as a script.

At the moment there's a name resolve code segfault to be fixed.

rafal
2007-10-10 13:45:54 -05:00
Andrew Bartlett
5575a1443b r11572: Add support for accountExpires and password expiry (should cause the
ticket to be reduced in validity).

Andrew Bartlett
2007-10-10 13:45:54 -05:00
Andrew Bartlett
31c4ab26d7 r11568: Debuging aids: Let the administrator know when a key/entry expired,
rather than just the fact of the expiry.

Andrew Bartlett
2007-10-10 13:45:54 -05:00
Simo Sorce
22c8c97e6f r11567: Ldb API change patch.
This patch changes the way lsb_search is called and the meaning of the returned integer.
The last argument of ldb_search is changed from struct ldb_message to struct ldb_result
which contains a pointer to a struct ldb_message list and a count of the number of messages.
The return is not the count of messages anymore but instead it is an ldb error value.

I tryed to keep the patch as tiny as possible bu as you can guess I had to change a good
amount of places. I also tried to double check all my changes being sure that the calling
functions would still behave as before. But this patch is big enough that I fear some bug
may have been introduced anyway even if it passes the test suite. So if you are currently
working on any file being touched please give it a deep look and blame me for any error.

Simo.
2007-10-10 13:45:53 -05:00
Stefan Metzmacher
dbd01110d1 r11555: - change socket_wrapper to support multiple IP's
- SOCKET_WRAPPER_DEFAULT_IFACE=X specifies the default interface
  for 127.0.0.X
- we now use multiple interfaces for smbtorture in make test
  127.0.0.26-127.0.0.31
- and 127.0.0.1 only for smbd

the are more work needed for better support for broacast messages...
but this is enough for the winsrepl tests

metze
2007-10-10 13:45:53 -05:00
Stefan Metzmacher
6bae17d279 r11554: make us able to run without depending on 127.0.0.1
metze
2007-10-10 13:45:53 -05:00
Stefan Metzmacher
363c000944 r11553: give an error when the lookup failed
metze
2007-10-10 13:45:53 -05:00
Stefan Metzmacher
021060b429 r11552: fix indent
metze
2007-10-10 13:45:53 -05:00
Stefan Metzmacher
4122e9ec3a r11547: - don't do pull replication when pullIntervall is 0
- don't do push replication when pushChangeCount is 0

metze
2007-10-10 13:45:52 -05:00
Stefan Metzmacher
6375a9a95d r11546: add more errno ntstatus mappings, to get more usefull errors from socket_wrapper
metze
2007-10-10 13:45:52 -05:00
Andrew Bartlett
5adaf00e44 r11545: Remove old #define.
Andrew Bartlett
2007-10-10 13:45:52 -05:00
Andrew Bartlett
c4a9d025d6 r11544: Allow delegation in a Samba4 realm.
Andrew Bartlett
2007-10-10 13:45:52 -05:00
Andrew Bartlett
36973b1eef r11543: A major upgrade to our KDC and PAC handling.
We now put the PAC in the AS-REP, so that the client has it in the
TGT.  We then validate it (and re-sign it) on a TGS-REQ, ie when the
client wants a ticket.

This should also allow us to interop with windows KDCs.

If we get an invalid PAC at the TGS stage, we just drop it.

I'm slowly trying to move the application logic out of hdb-ldb.c, and
back in with the rest of Samba's auth system, for consistancy.  This
continues that trend.

Andrew Bartlett
2007-10-10 13:45:52 -05:00
Andrew Bartlett
dbf73a82fc r11542: Add the netbios name type. We will need it when we start to handle
allowedWorkstations on Krb5.

Andrew Bartlett
2007-10-10 13:45:51 -05:00
Andrew Bartlett
6bb1b24428 r11541: More logical (I think...) delegation semantics.
Andrew Bartlett
2007-10-10 13:45:51 -05:00
Andrew Bartlett
6d439cae98 r11540: Some notes to myself on RFC complience.
Andrew Bartlett
2007-10-10 13:45:51 -05:00
Jelmer Vernooij
16ea96c81e r11539: Fix indentation in templates. Always generate lower-case
UUID strings as GUID_from_string seems to have trouble with
uppercased ones.
2007-10-10 13:45:51 -05:00
Andrew Bartlett
890ad0412b r11538: More notes on things we need.
Andrew Bartlett
2007-10-10 13:45:51 -05:00
Andrew Bartlett
1643ad169c r11537: Make the authsam_account_ok routine callable by external users (the KDC).
Andrew Bartlett
2007-10-10 13:45:51 -05:00