1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
Commit Graph

7167 Commits

Author SHA1 Message Date
Andrew Tridgell
7e963eb6e7 r11603: converted the smb server to use the new generic packet code
(This used to be commit 0fc496bb6f)
2007-10-10 13:45:57 -05:00
Andrew Tridgell
a3fcb93df1 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)
(This used to be commit d860eb7956)
2007-10-10 13:45:57 -05:00
Stefan Metzmacher
1fb2397913 r11601: try to fix the build on IRIX 6.5 us4
abartlet, tridge, lha: is there a better way?

metze
(This used to be commit b2b4969bdc)
2007-10-10 13:45:57 -05:00
Stefan Metzmacher
b4bc46feb9 r11600: remove unused code
metze
(This used to be commit 06ccbc3fa9)
2007-10-10 13:45:56 -05:00
Stefan Metzmacher
5b28800103 r11599: remove local (and broken) version of strhaslower() strhasupper()
metze
(This used to be commit 35e17abb87)
2007-10-10 13:45:56 -05:00
Andrew Tridgell
177a098731 r11598: fixed strhaslower() and strhasupper() to not falsely recognise
caseless characters as lower/upper
(This used to be commit 74fb317f2a)
2007-10-10 13:45:56 -05:00
Simo Sorce
56415ccacb r11597: revert a commit by mistake
(This used to be commit 09e6f494b4)
2007-10-10 13:45:56 -05:00
Andrew Tridgell
1c07c25322 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
(This used to be commit f8d43f1f67)
2007-10-10 13:45:56 -05:00
Andrew Tridgell
8752e38c05 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.
(This used to be commit e6c47b954a)
2007-10-10 13:45:55 -05:00
Andrew Tridgell
f613e18d1e r11594: ensure ldb_search() sets *res to NULL on failure (some of the updated
ldb_result code coud rely on that)
(This used to be commit cd567bcb24)
2007-10-10 13:45:55 -05:00
Andrew Tridgell
7659107738 r11593: added a data_blob_realloc() function
(This used to be commit e04262d391)
2007-10-10 13:45:55 -05:00
Andrew Tridgell
9a52d1a467 r11592: fixed a crash bug from the ldb_result changes (res was being used after being freed)
(This used to be commit 5c7f3fef3e)
2007-10-10 13:45:55 -05:00
Rafal Szczesniak
8aae0d3d63 r11588: Remove unused (at the moment) variable and quiet compiler warning.
rafal
(This used to be commit 90db7f13bc)
2007-10-10 13:45:55 -05:00
Rafal Szczesniak
6d3fac3fdc r11587: Trivial testing code giving an idea of how could using
subcontexts look like.

rafal
(This used to be commit 5a338b04f3)
2007-10-10 13:45:54 -05:00
Rafal Szczesniak
2a006a7e6b 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
(This used to be commit 25310d0592)
2007-10-10 13:45:54 -05:00
Andrew Bartlett
9a9604b26c r11572: Add support for accountExpires and password expiry (should cause the
ticket to be reduced in validity).

Andrew Bartlett
(This used to be commit 5575a1443b)
2007-10-10 13:45:54 -05:00
Andrew Bartlett
30d164d9f0 r11568: Debuging aids: Let the administrator know when a key/entry expired,
rather than just the fact of the expiry.

Andrew Bartlett
(This used to be commit 31c4ab26d7)
2007-10-10 13:45:54 -05:00
Simo Sorce
5c95905871 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.
(This used to be commit 22c8c97e6f)
2007-10-10 13:45:53 -05:00
Stefan Metzmacher
14b59bcbec 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
(This used to be commit dbd01110d1)
2007-10-10 13:45:53 -05:00
Stefan Metzmacher
a8d741b4f7 r11554: make us able to run without depending on 127.0.0.1
metze
(This used to be commit 6bae17d279)
2007-10-10 13:45:53 -05:00
Stefan Metzmacher
57b98a7436 r11553: give an error when the lookup failed
metze
(This used to be commit 363c000944)
2007-10-10 13:45:53 -05:00
Stefan Metzmacher
0c33769399 r11552: fix indent
metze
(This used to be commit 021060b429)
2007-10-10 13:45:53 -05:00
Stefan Metzmacher
c643b10d09 r11547: - don't do pull replication when pullIntervall is 0
- don't do push replication when pushChangeCount is 0

metze
(This used to be commit 4122e9ec3a)
2007-10-10 13:45:52 -05:00
Stefan Metzmacher
c4a0e36143 r11546: add more errno ntstatus mappings, to get more usefull errors from socket_wrapper
metze
(This used to be commit 6375a9a95d)
2007-10-10 13:45:52 -05:00
Andrew Bartlett
f7183342c8 r11545: Remove old #define.
Andrew Bartlett
(This used to be commit 5adaf00e44)
2007-10-10 13:45:52 -05:00
Andrew Bartlett
9e302b6f7c r11544: Allow delegation in a Samba4 realm.
Andrew Bartlett
(This used to be commit c4a9d025d6)
2007-10-10 13:45:52 -05:00
Andrew Bartlett
918c7634c2 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
(This used to be commit 36973b1eef)
2007-10-10 13:45:52 -05:00
Andrew Bartlett
f7ca730849 r11542: Add the netbios name type. We will need it when we start to handle
allowedWorkstations on Krb5.

Andrew Bartlett
(This used to be commit dbf73a82fc)
2007-10-10 13:45:51 -05:00
Andrew Bartlett
7bfbe8af7e r11541: More logical (I think...) delegation semantics.
Andrew Bartlett
(This used to be commit 6bb1b24428)
2007-10-10 13:45:51 -05:00
Andrew Bartlett
f9c2f271e8 r11540: Some notes to myself on RFC complience.
Andrew Bartlett
(This used to be commit 6d439cae98)
2007-10-10 13:45:51 -05:00
Jelmer Vernooij
cca42c611a r11539: Fix indentation in templates. Always generate lower-case
UUID strings as GUID_from_string seems to have trouble with
uppercased ones.
(This used to be commit 16ea96c81e)
2007-10-10 13:45:51 -05:00
Andrew Bartlett
4c57d08c52 r11538: More notes on things we need.
Andrew Bartlett
(This used to be commit 890ad0412b)
2007-10-10 13:45:51 -05:00
Andrew Bartlett
cc99c7bbeb r11537: Make the authsam_account_ok routine callable by external users (the KDC).
Andrew Bartlett
(This used to be commit 1643ad169c)
2007-10-10 13:45:51 -05:00
Andrew Bartlett
fb2394d309 r11536: Add a hook for client-principal access control to hdb-ldb, re-using
the code in auth/auth_sam.c for consistancy.  This will also allow us
to have one place for a backend directory hook.

I will use a very similar hook to add the PAC.

Andrew Bartlett
(This used to be commit 4315836cd8)
2007-10-10 13:45:50 -05:00
Jelmer Vernooij
df5b70db2c r11535: Support void functions when generating templates.
(This used to be commit e8926a4e17)
2007-10-10 13:45:50 -05:00
Jelmer Vernooij
72c28b3c1e r11534: Consider ntvfs as a library
(This used to be commit f9bbc83f53)
2007-10-10 13:45:50 -05:00
Volker Lendecke
0ed6a35f00 r11533: Be a bit less intrusive
(This used to be commit f341c8b4c8)
2007-10-10 13:45:50 -05:00
Volker Lendecke
08964b9de8 r11532: Enable kerberos session setup for winbind smb connections
(This used to be commit f0e4075db5)
2007-10-10 13:45:50 -05:00
Andrew Bartlett
512f5ae881 r11529: Disable DNS lookups for forwarded credentials, unless really, really
wanted.  There is nothing that suggests that the host we forward
credentials to will not have other interfaces, unassoicated with their
service name.  Likewise, the name may be a netbios, not DNS name.

This should avoid some nasty DNS lookups.

Andrew Bartlett
(This used to be commit da0ff19856)
2007-10-10 13:45:49 -05:00
Volker Lendecke
69307693dc r11528: Separate finding dcs from initializing a domain. Makes it easier to possibly
support cldap and other stuff in the future.

This temporarily disables wbinfo -t, but that will come back soon.

Try an ldap bind using gss-spnego. This got me krb5 binds against "our" w2k3
and a trusted w2k, although with some memleaks from krb5 and a BAD_OPTION
tgs-rep error.

Volker
(This used to be commit d14948fdf6)
2007-10-10 13:45:49 -05:00
Volker Lendecke
f792c4f8f2 r11527: Has this ever been run?
(This used to be commit 419b28d02d)
2007-10-10 13:45:49 -05:00
Volker Lendecke
51597d8780 r11526: And another warning...
(This used to be commit 16467008c6)
2007-10-10 13:45:48 -05:00
Andrew Bartlett
2dcb73aed8 r11525: Move lookups (including the attribute search) for users from
kdc/hdb-ldb.c to share the routines used for auth/

This will require keeping the attribute list in sync, but I think it
is worth it for the next steps (sharing the server_info generation).

Andrew Bartlett
(This used to be commit da38bcefa7)
2007-10-10 13:45:48 -05:00
Andrew Bartlett
b5ae5ac69c r11524: More work on our hdb backend in the KDC.
The aim here is to restructure the queries to match the queries we do
in auth, then to share the code that does the actual query (at least
for user logins).

Then we can generate the PAC from that shared query, rather than a
seperate query.

Andrew Bartlett
(This used to be commit 4395d087e1)
2007-10-10 13:45:48 -05:00
Andrew Bartlett
75ec65597c r11523: Working towards having Samba3 join Samba4, this allows the SASL
credentials to be NULL, where the client is requesting a CIFS style
server-first negTokenInit.

Andrew Bartlett
(This used to be commit eba652ecc8)
2007-10-10 13:45:48 -05:00
Andrew Bartlett
df9af34876 r11522: Add support for delegated credentials and machine account credentials
to ldb, based on the sessionInfo we now pass around.

Andrew Bartlett
(This used to be commit 84e16e4ea7)
2007-10-10 13:45:48 -05:00
Andrew Bartlett
72820aaf92 r11521: Add in client support for checking supportedSASLmechanisms, and then
determining a mechanism to use.

Currently it doesn't to fallbacks like SPNEGO does, but this could be
added (to GENSEC, not to here).

This also adds a new function to GENSEC, which returns a list of SASL
names in our preference order (currently determined by the build
system of all things...).

Also make the similar function used for OIDs in SPNEGO do the same.

This is all a very long-winded way of moving from a hard-coded NTLM to
GSS-SPNEGO in our SASL client...

Andrew Bartlett
(This used to be commit 130eb9bb9a)
2007-10-10 13:45:48 -05:00
Andrew Bartlett
6ac2585e87 r11520: indent
(This used to be commit ce611eb5f3)
2007-10-10 13:45:47 -05:00
Volker Lendecke
892e1a60a8 r11519: And an uninitialized variable...
(This used to be commit dc0e9f8d1a)
2007-10-10 13:45:47 -05:00
Volker Lendecke
f7d8ba6279 r11518: Fix a warning
(This used to be commit 4a32df49e6)
2007-10-10 13:45:47 -05:00