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

6944 Commits

Author SHA1 Message Date
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 31c4ab26d7ab1e550c2ecc7c3ae6c44b87140aa3)
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 22c8c97e6fb466b41859e090e959d7f1134be780)
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 dbd01110d1a3e0f5914ae8d156723d6d6edf160c)
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 6bae17d279205a0d75f609f6a026b5c99d73cea5)
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 363c000944ad40c3f8ba2b28f4cfed2bbd26fd65)
2007-10-10 13:45:53 -05:00
Stefan Metzmacher
0c33769399 r11552: fix indent
metze
(This used to be commit 021060b4292dfe2495bcea635f6ce6467ca731ad)
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 4122e9ec3a4394738fa3c261dc92938ea86c3822)
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 6375a9a95da1eb2d5fd60b265047d98b264ff93f)
2007-10-10 13:45:52 -05:00
Andrew Bartlett
f7183342c8 r11545: Remove old #define.
Andrew Bartlett
(This used to be commit 5adaf00e4486f5f4895fd816c9db45133db38f1a)
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 c4a9d025d6485c19bf1f2e98f83ac68b276247e4)
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 36973b1eef7db5983cce76ba241e54d5f925c69c)
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 dbf73a82fc7d1f82e2ad45e545cefdd9a5b24215)
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 6bb1b244284a209ebcb50c17ad59d4528658da0b)
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 6d439cae989efff7530d75e5dd21faa8e5230059)
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 16ea96c81ed88f197007335f442c9e62b4ccd6de)
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 890ad0412b9ee285fa25e8bab785a960a201057e)
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 1643ad169cff56f20ba03644dec12124139ac44a)
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 4315836cd8c94eb8340c4050804face4d0066810)
2007-10-10 13:45:50 -05:00
Jelmer Vernooij
df5b70db2c r11535: Support void functions when generating templates.
(This used to be commit e8926a4e171a7bf74c220fa825ef5fa9e297fa47)
2007-10-10 13:45:50 -05:00
Jelmer Vernooij
72c28b3c1e r11534: Consider ntvfs as a library
(This used to be commit f9bbc83f5316773520ce06c267ac9c0f1eb189e6)
2007-10-10 13:45:50 -05:00
Volker Lendecke
0ed6a35f00 r11533: Be a bit less intrusive
(This used to be commit f341c8b4c8e8b8096c604b5842b9b7f7c4c9653c)
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 f0e4075db5e913d2262058bb7234c446160823d9)
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 da0ff19856a8f41eb64787990d47d2961824711d)
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 d14948fdf687c8f70ef9ec35445b7eb04da84253)
2007-10-10 13:45:49 -05:00
Volker Lendecke
f792c4f8f2 r11527: Has this ever been run?
(This used to be commit 419b28d02d6c5a03bd33eaeabf1b42bfab9155dd)
2007-10-10 13:45:49 -05:00
Volker Lendecke
51597d8780 r11526: And another warning...
(This used to be commit 16467008c64d84f29bec0ea45767bb1050726b34)
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 da38bcefa752a508abd28e8ff6277b493d24c2dd)
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 4395d087e19286536dbb41fa5758491b302fa437)
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 eba652ecc89766304fdad14463072dc311693701)
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 84e16e4ea7240409f15efd9f64344f9e0cec8111)
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 130eb9bb9a37957614c87e0e6846a812abb51e00)
2007-10-10 13:45:48 -05:00
Andrew Bartlett
6ac2585e87 r11520: indent
(This used to be commit ce611eb5f31bc63fc23700e7a2c47e68b8f826aa)
2007-10-10 13:45:47 -05:00
Volker Lendecke
892e1a60a8 r11519: And an uninitialized variable...
(This used to be commit dc0e9f8d1a2285623e99dcccf055b4860ddd1294)
2007-10-10 13:45:47 -05:00
Volker Lendecke
f7d8ba6279 r11518: Fix a warning
(This used to be commit 4a32df49e66b49b20b78bf165869b7592bb626fd)
2007-10-10 13:45:47 -05:00
Volker Lendecke
6b6a739eca 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
(This used to be commit 848522d1b64c1c283ac1ea7ce7f1a7a1b014a2aa)
2007-10-10 13:45:47 -05:00
Volker Lendecke
687dea8de6 r11516: Fix a valgrind bug I introduce with queued requests
(This used to be commit 3e4ab756f421acd747e9ea4c48b0f61d48dfa8fd)
2007-10-10 13:45:47 -05:00
Volker Lendecke
baff088fed r11515: Add some talloc_get_type
(This used to be commit 558c29971d5855308a9d8dfd21e8ac7ec24abc01)
2007-10-10 13:45:46 -05:00
Andrew Bartlett
694a8e7402 r11514: Fixup debug message
(This used to be commit b2372cad367a29d7dca596dace703a349b381a09)
2007-10-10 13:45:46 -05:00
Andrew Bartlett
79cb46c1af 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
(This used to be commit a7e946bc37e4acfbe2c483b4f1ead0341f9b3d19)
2007-10-10 13:45:46 -05:00
Andrew Bartlett
d3b91ae169 r11512: fix typo
(This used to be commit 4143c22e3077bd5aecb3427ff0a8857dab799400)
2007-10-10 13:45:46 -05:00
Stefan Metzmacher
819744cab2 r11503: be quite...
metze
(This used to be commit e992119bf3a7004c095214b3279c78e59f2c5e2b)
2007-10-10 13:45:46 -05:00
Stefan Metzmacher
5f653c1456 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
(This used to be commit e60d491864ad7ea7f981bc1918ace4ee3fb2d77a)
2007-10-10 13:45:46 -05:00
Andrew Tridgell
b00252c5b8 r11501: change provision code to use the new display specifiers
(This used to be commit 696fa87a212e65d6337c39a84f682b64b52593a5)
2007-10-10 13:45:45 -05:00
Andrew Tridgell
318ac84440 r11500: fixed a bug in the variable substition code using the new limit argument to split()
(This used to be commit 25131efea8c1a2b0bfa7f999766ebcbab8fa8006)
2007-10-10 13:45:45 -05:00
Andrew Tridgell
40b1305996 r11499: added a minimal set of display specifiers for mmc to use to display
the core elements of a Samba4 domain
(This used to be commit bee45531eaa1f7b96f123c146af3bc30681ebdec)
2007-10-10 13:45:45 -05:00
Andrew Tridgell
218d306ece 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
(This used to be commit be06785d4835abcbc7d75c0176c85a8ecc0cc11d)
2007-10-10 13:45:45 -05:00
Andrew Bartlett
794386e5c4 r11497: Don't name parameters 'floor'. Rename fl and floor to epm_floor for
consistancy.

Andrew Bartlett
(This used to be commit 8787eb982f899c68a490fb9c71c21ec1d9ec0308)
2007-10-10 13:45:45 -05:00
Andrew Tridgell
4764eb7a93 r11496: add a minimal ads-compatible schema into our sam.ldb setup. This is
needed for mmc management of Samba4.
(This used to be commit cbbce4fe403efc0b9e63052c2aa1fbb5972f2abe)
2007-10-10 13:45:45 -05:00
Stefan Metzmacher
4f78115d6d r11489: add the one replication cycle test to NBT-WINSREPLICATION-QUICK
metze
(This used to be commit fc53eab2f1bdae471ee68c4b67f57b1eb0821f61)
2007-10-10 13:45:44 -05:00
Stefan Metzmacher
0a4de40a0b r11488: handle the stupid name release demand a windows there send...
metze
(This used to be commit 1b62959a3dd11fface6642e5843224752e188b4a)
2007-10-10 13:45:44 -05:00