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
Andrew Bartlett
4315836cd8 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
2007-10-10 13:45:50 -05:00
Jelmer Vernooij
e8926a4e17 r11535: Support void functions when generating templates. 2007-10-10 13:45:50 -05:00
Jelmer Vernooij
f9bbc83f53 r11534: Consider ntvfs as a library 2007-10-10 13:45:50 -05:00
Volker Lendecke
f341c8b4c8 r11533: Be a bit less intrusive 2007-10-10 13:45:50 -05:00
Volker Lendecke
f0e4075db5 r11532: Enable kerberos session setup for winbind smb connections 2007-10-10 13:45:50 -05:00
Andrew Bartlett
da0ff19856 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
2007-10-10 13:45:49 -05:00
Volker Lendecke
d14948fdf6 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
2007-10-10 13:45:49 -05:00
Volker Lendecke
419b28d02d r11527: Has this ever been run? 2007-10-10 13:45:49 -05:00
Volker Lendecke
16467008c6 r11526: And another warning... 2007-10-10 13:45:48 -05:00
Andrew Bartlett
da38bcefa7 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
2007-10-10 13:45:48 -05:00
Andrew Bartlett
4395d087e1 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
2007-10-10 13:45:48 -05:00
Andrew Bartlett
eba652ecc8 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
2007-10-10 13:45:48 -05:00
Andrew Bartlett
84e16e4ea7 r11522: Add support for delegated credentials and machine account credentials
to ldb, based on the sessionInfo we now pass around.

Andrew Bartlett
2007-10-10 13:45:48 -05:00
Andrew Bartlett
130eb9bb9a 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
2007-10-10 13:45:48 -05:00
Andrew Bartlett
ce611eb5f3 r11520: indent 2007-10-10 13:45:47 -05:00
Volker Lendecke
dc0e9f8d1a r11519: And an uninitialized variable... 2007-10-10 13:45:47 -05:00
Volker Lendecke
4a32df49e6 r11518: Fix a warning 2007-10-10 13:45:47 -05:00
Volker Lendecke
848522d1b6 r11517: Cleanup time, this looks larger than it is. This mainly gets rid of
wb_domain_request, now that we have queued rpc requests.

Volker
2007-10-10 13:45:47 -05:00
Volker Lendecke
3e4ab756f4 r11516: Fix a valgrind bug I introduce with queued requests 2007-10-10 13:45:47 -05:00
Volker Lendecke
558c29971d r11515: Add some talloc_get_type 2007-10-10 13:45:46 -05:00
Andrew Bartlett
b2372cad36 r11514: Fixup debug message 2007-10-10 13:45:46 -05:00
Andrew Bartlett
a7e946bc37 r11513: Add the ability to use the local machine account instead of a static
password or delegation.

Add the ability to delegate for RPC pipes on the RPC proxy backend
(the backend itself seems be having problems however).

Andrew Bartlett
2007-10-10 13:45:46 -05:00
Andrew Bartlett
4143c22e30 r11512: fix typo 2007-10-10 13:45:46 -05:00
Stefan Metzmacher
e992119bf3 r11503: be quite...
metze
2007-10-10 13:45:46 -05:00
Stefan Metzmacher
e60d491864 r11502: make sure we always use the 7 chars for the unix socket name.
this is to test if that works on irix 6.4 where we can only use 16 chars for the sun_path
of the unix sockets.

the plan is to make multiple interfaces possible with socket wrapper,
and the format will change to ("%c%02X%04X", type, iface, port),
which is also 7 char to the file name

metze
2007-10-10 13:45:46 -05:00
Andrew Tridgell
696fa87a21 r11501: change provision code to use the new display specifiers 2007-10-10 13:45:45 -05:00
Andrew Tridgell
25131efea8 r11500: fixed a bug in the variable substition code using the new limit argument to split() 2007-10-10 13:45:45 -05:00
Andrew Tridgell
bee45531ea r11499: added a minimal set of display specifiers for mmc to use to display
the core elements of a Samba4 domain
2007-10-10 13:45:45 -05:00
Andrew Tridgell
be06785d48 r11498: added an optional extra argument to split to limit the number of
pieces a string is split into. This allows for a fix in the variable
substitution used in provisioning
2007-10-10 13:45:45 -05:00
Andrew Bartlett
8787eb982f r11497: Don't name parameters 'floor'. Rename fl and floor to epm_floor for
consistancy.

Andrew Bartlett
2007-10-10 13:45:45 -05:00
Andrew Tridgell
cbbce4fe40 r11496: add a minimal ads-compatible schema into our sam.ldb setup. This is
needed for mmc management of Samba4.
2007-10-10 13:45:45 -05:00
Stefan Metzmacher
fc53eab2f1 r11489: add the one replication cycle test to NBT-WINSREPLICATION-QUICK
metze
2007-10-10 13:45:44 -05:00
Stefan Metzmacher
1b62959a3d r11488: handle the stupid name release demand a windows there send...
metze
2007-10-10 13:45:44 -05:00
Stefan Metzmacher
f04001f280 r11487: thanks to make test I noticed a dead lock bug, in the last change,
this only happens with socket_wrapper as socket_connect() returns NT_STATUS_OK
instead of NT_STATUS_MORE_PROCESSING_REQUIRED, and we missed to replace the
fde event handler...

metze
2007-10-10 13:45:44 -05:00
Stefan Metzmacher
bf0b96f057 r11485: prevent us from calling the request handler recursiv when
the handler calls talloc_free(wrepl_socket)

metze
2007-10-10 13:45:43 -05:00
Stefan Metzmacher
630f571934 r11484: test some multi homed record merging
metze
2007-10-10 13:45:43 -05:00
Jelmer Vernooij
2b3ad67b5d r11481: Disable pre-linking on VMS 2007-10-10 13:45:43 -05:00
Stefan Metzmacher
82e19d6808 r11480: demonstrate the only the positive name query response cares,
not the addresses that are returned in it

metze
2007-10-10 13:45:43 -05:00
Stefan Metzmacher
5f45d07020 r11479: fix compiler warning
metze
2007-10-10 13:45:42 -05:00
Stefan Metzmacher
0231926e0a r11478: add owned,active,multi homed vs. * section
metze
2007-10-10 13:45:42 -05:00
Andrew Bartlett
e60cdb63fb r11477: This seems really nasty, but as I understand it an attacker cannot
change this checksum, as it is inside the encrypted packets.

Where the client (such as Samba3) fakes up GSSAPI, allow it to
continue.  We can't rid the world of all Samba3 and similar clients...

Andrew Bartlett
2007-10-10 13:45:42 -05:00
Andrew Tridgell
9d6d03fd1d r11476: finally fixed the intermittent registry server bug! This has been
cropping up occasionally for ages. The problem was the generic reg
code setting up a backend_data value, which it has no business doing
(backend_data is for backends ...)
2007-10-10 13:45:42 -05:00
Andrew Tridgell
daa9dcd8f4 r11475: removed a extraneous ldb_delete() call (i had it there for debugging) 2007-10-10 13:45:42 -05:00
Andrew Tridgell
91dfe304cf r11474: - enable ldb transactions from ejs
- speed up provisioning a bit using a ldb transaction (also means you
  can't end up with a ldb being half done)
2007-10-10 13:45:41 -05:00
Volker Lendecke
b8f324e4f0 r11473: Based on work by Jelmer, implement the [async] flag for rpc requests. If it's
not there (it's not yet on *any* call... :-)), the rpc client strictly
sequences calls to an rpc pipe. Might need some more work on the exact
sequencing semantics when a pipe with both sync and async calls is actually
deployed, but I want it in for winbind simplification.

Volker
2007-10-10 13:45:41 -05:00
Andrew Tridgell
a56a3696cc r11472: use talloc_get_type() to try to catch an intermittent failure I'm seeing in the ldb winreg backend 2007-10-10 13:45:41 -05:00
Andrew Bartlett
66d7a51394 r11471: Describe how kerberos forwarding works with the ntvfs.
Andrew Bartlett
2007-10-10 13:45:41 -05:00
Andrew Bartlett
49d489c81d r11470: To a server trusted for delegation (checked for in the gss libs),
delegate by default.

Andrew Bartlett
2007-10-10 13:45:41 -05:00
Andrew Bartlett
d6928a3bf8 r11469: Fix typo, and use the correct (RFC4120) session key for delegating
credentials.  This means we now delegate to windows correctly.

Andrew Bartlett
2007-10-10 13:45:40 -05:00
Andrew Bartlett
fd5fd03570 r11468: Merge a bit more of init_sec_context from Heimdal CVS into our
DCE_STYLE modified version, and add parametric options to control
delegation.

It turns out the only remaining issue is sending delegated credentials
to a windows server, probably due to the bug lha mentions in his blog
(using the wrong key).

If I turn delgation on in smbclient, but off in smbd, I can proxy a
cifs session.

I can't wait till Heimdal 0.8, so I'll see if I can figure out the fix
myself :-)

Andrew Bartlett
2007-10-10 13:45:40 -05:00