1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-29 21:47:30 +03:00

7254 Commits

Author SHA1 Message Date
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
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