1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00
Commit Graph

1009 Commits

Author SHA1 Message Date
Stefan Metzmacher
a1c7b35bba netlogon.idl: make use of bitmap samr_GroupAttrs
metze
(This used to be commit 6d68161e67)
2008-01-24 10:24:41 +01:00
Jelmer Vernooij
9a3cbd276b python: Add bindings for cli_credentials_set_cmdline_callbacks().
(This used to be commit 557207f86b)
2008-01-24 01:05:19 +01:00
Jelmer Vernooij
7af1c83e45 Default to creating anonymous credentials.
(This used to be commit f93bd899f1)
2008-01-23 23:38:58 +01:00
Jelmer Vernooij
a259547786 build: Remove support for DESCRIPTION setting that is now unused.
(This used to be commit 91d7ba5202)
2008-01-22 18:49:51 +01:00
Jelmer Vernooij
2f98f4b24e gensec: Use manually written .pc file.
(This used to be commit 96a5ac9db2)
2008-01-22 18:39:54 +01:00
Jelmer Vernooij
939edd0eb7 util: Move asn1 to lib/util to trim down the number of subsystems.
(This used to be commit 44e1cfd2d0)
2008-01-15 01:04:38 +01:00
Jelmer Vernooij
3b16c532f2 pidl/python: Pass credentials and loadparm context when connecting using DCE/RPC.
(This used to be commit 4c87af9531)
2008-01-14 19:53:06 +01:00
Jelmer Vernooij
6f79af9d13 r26652: msrpc_parse/msrpc_gen: Add iconv_convenience argument.
(This used to be commit e886f1bc0d)
2008-01-03 12:33:36 -06:00
Jelmer Vernooij
771b347f9b r26644: Janitorial: Pass resolve_context explicitly to various SMB functions, should help fix the build for OpenChange.
(This used to be commit 385ffe4f4c)
2008-01-02 12:48:03 -06:00
Jelmer Vernooij
9d136bc0a3 r26640: Janitorial: Remove some more uses of global_loadparm.
(This used to be commit c863f4ebde)
2008-01-01 19:57:01 -06:00
Jelmer Vernooij
7d5f0e0893 r26639: librpc: Pass iconv convenience on from RPC connection to NDR library, so it can be overridden by OpenChange.
(This used to be commit 2f29f80e07)
2008-01-01 16:12:15 -06:00
Jelmer Vernooij
86dc05e99f r26638: libndr: Require explicitly specifying iconv_convenience for ndr_struct_push_blob().
(This used to be commit 61ad78ac98)
2008-01-01 16:12:11 -06:00
Jelmer Vernooij
c4a5c61a70 r26626: Install auth/session.h
(This used to be commit 57bf390068)
2007-12-29 12:21:03 -06:00
Jelmer Vernooij
c13ae70731 r26580: Include sentinel in build.h, in case the list is empty.
(This used to be commit f1997dabed)
2007-12-24 01:51:07 -06:00
Jelmer Vernooij
be33f4c611 r26576: Allow the static module loading code to be used for the Python modules.
Simplify the way module initialization functions are handled.
(This used to be commit ba8be2dfc0)
2007-12-24 01:51:06 -06:00
Jelmer Vernooij
d0ba9f0014 r26572: Fix warnings in the Python code.
(This used to be commit 15038d9586)
2007-12-24 01:51:04 -06:00
Jelmer Vernooij
aa0a06f13c r26570: - Trim size of the swig-generated Python bindings by removing a bunch of {}'s.
- Start working on Python equivalents for various EJS tests.
- Fix regression in argument order for reg_diff_apply() in EJS bindings.
(This used to be commit c550c03372)
2007-12-24 01:51:03 -06:00
Jelmer Vernooij
0500b87092 r26540: Revert my previous commit after concerns raised by Andrew.
(This used to be commit 6ac86f8be7)
2007-12-21 05:52:06 +01:00
Jelmer Vernooij
3e75f222bc r26539: Remove unnecessary statics.
(This used to be commit e53e79eebe)
2007-12-21 05:52:05 +01:00
Jelmer Vernooij
c260454229 r26504: Don't rely on system-provided kerberos headers.
(This used to be commit c4b1df0476)
2007-12-21 05:51:07 +01:00
Jelmer Vernooij
be99991267 r26484: Don't rely on removed header.
(This used to be commit 6ca2b35085)
2007-12-21 05:50:42 +01:00
Jelmer Vernooij
71e2cafe96 r26483: Merge ldb module dependency fixes, fix auth python module.
(This used to be commit 85eeecf997)
2007-12-21 05:50:41 +01:00
Jelmer Vernooij
440fd87961 r26477: Allow setting loadparm context for a ldb context in python, plus some other minor improvements.
(This used to be commit d88527a9d6)
2007-12-21 05:50:36 +01:00
Jelmer Vernooij
1afe054916 r26474: Move credentials-specific kerberos file to credentials subsystem. Fixes missing symbols in some of the python bindings.
(This used to be commit e26d0fff6d)
2007-12-21 05:50:34 +01:00
Jelmer Vernooij
1bc38f9fb3 r26464: Tighten dependencies.
(This used to be commit 2b7cfa5d9a)
2007-12-21 05:50:29 +01:00
Jelmer Vernooij
a21a484a01 r26460: Enable ldb python tests.
(This used to be commit 25e9824531)
2007-12-21 05:50:27 +01:00
Jelmer Vernooij
df8c7da800 r26454: Add simple SWIG macro for wrapping talloced types.
(This used to be commit 760fcc8bfa)
2007-12-21 05:50:22 +01:00
Jelmer Vernooij
bf6d40f271 r26449: Support configuration without a known configuration dir.
(This used to be commit d3643c2152)
2007-12-21 05:50:14 +01:00
Jelmer Vernooij
93b570616d r26445: Fix credentials python bindings.
(This used to be commit 7a78d4cbed)
2007-12-21 05:50:12 +01:00
Jelmer Vernooij
a2cea02584 r26430: require explicit specification of loadparm context.
(This used to be commit 1b947fe0e6)
2007-12-21 05:49:58 +01:00
Jelmer Vernooij
d891c0c74a r26429: Avoid use of global_smb_iconv_convenience.
(This used to be commit d37136b7ab)
2007-12-21 05:49:56 +01:00
Jelmer Vernooij
a5b8999f23 r26427: Avoid global_smb_iconv_convenience.
(This used to be commit bf072c6fb3)
2007-12-21 05:49:53 +01:00
Kai Blin
1efd92e64e r26418: Janitorial: Kill pstring in ntlmssp_parse.c
(This used to be commit 718a5a1f3c)
2007-12-21 05:49:47 +01:00
Kai Blin
5db23bce22 r26416: Janitorial: Fix warnings in auth/gensec/
As per metze's suggestion, the "unused variables" warning is left in to remind
us to fix the #else part of the #if 1
(This used to be commit e9ef98b064)
2007-12-21 05:49:46 +01:00
Stefan Metzmacher
5bddcf45f3 r26413: we should check the return value of talloc_reference()
metze
(This used to be commit 5f49c1b144)
2007-12-21 05:49:45 +01:00
Jelmer Vernooij
68dc2dc526 r26399: Use -O option for SWIG (less evil generated code).
(This used to be commit 3378b6a559)
2007-12-21 05:49:29 +01:00
Jelmer Vernooij
1ea47faa97 r26397: Fix circular dependency in samba-socket.
(This used to be commit 801c8c766c)
2007-12-21 05:49:26 +01:00
Günther Deschner
0b3de65ac6 r26393: Fix inline comment.
Guenther
(This used to be commit 55c60a3743)
2007-12-21 05:49:23 +01:00
Jelmer Vernooij
3da665e9ac r26385: Integrate gensec-socket into gensec.
(This used to be commit 78bb444b4b)
2007-12-21 05:49:19 +01:00
Jelmer Vernooij
f055893ca5 r26382: Remove more uses of global_loadparm.
(This used to be commit 6d4c598534)
2007-12-21 05:49:17 +01:00
Jelmer Vernooij
7f0e8252e7 r26379: Remove more global_loadparm instances.
(This used to be commit b6f66eb5e0)
2007-12-21 05:49:13 +01:00
Jelmer Vernooij
5f4842cf65 r26376: Add context for libcli_resolve.
(This used to be commit 459e1466a4)
2007-12-21 05:49:12 +01:00
Jelmer Vernooij
2e1f142ab0 r26360: Add some const.
(This used to be commit 3616ced29e)
2007-12-21 05:49:03 +01:00
Jelmer Vernooij
038c75c0cb r26357: Add separate subsystem for auth_sam_reply parsing.
(This used to be commit 2d61e7c96e)
2007-12-21 05:49:02 +01:00
Jelmer Vernooij
70116cdcac r26356: Remove prototype for nonexisting function.
(This used to be commit 2c93f8ec81)
2007-12-21 05:49:01 +01:00
Jelmer Vernooij
fd88c3ca24 r26348: Avoid use of autofree context.
(This used to be commit eebcf7e1b0)
2007-12-21 05:48:53 +01:00
Jelmer Vernooij
01d2acfdb4 r26335: Specify name_resolve_order to socket code.
(This used to be commit b03e5d0011)
2007-12-21 05:48:46 +01:00
Jelmer Vernooij
b4e6090d42 r26323: Regenerated credentials SWIG.
(This used to be commit 0bd01aca00)
2007-12-21 05:48:34 +01:00
Jelmer Vernooij
bd9e8e9ae1 r26321: Fix python tests.
(This used to be commit f9bf02fd5c)
2007-12-21 05:48:34 +01:00
Jelmer Vernooij
9976886710 r26320: Clean up properly after error.
(This used to be commit 9fdfe1ad8c)
2007-12-21 05:48:33 +01:00
Jelmer Vernooij
41db2ab12c r26319: Split encoding functions out of libcli_ldap.
(This used to be commit 95a6ef7fc8)
2007-12-21 05:48:33 +01:00
Jelmer Vernooij
39ee38d9c1 r26316: Use contexts for conversion functions.
(This used to be commit f6420d933b)
2007-12-21 05:48:30 +01:00
Jelmer Vernooij
fc2f06d31b r26274: Some syntax fixes, remove more global_loadparm instances.
(This used to be commit 3809113d86)
2007-12-21 05:47:58 +01:00
Jelmer Vernooij
509e82e402 r26272: Remove global_loadparm in some more places.
(This used to be commit 1ab76ecc53)
2007-12-21 05:47:55 +01:00
Jelmer Vernooij
da0f222f43 r26271: Remove some more uses of global_loadparm.
(This used to be commit e9875fcd56)
2007-12-21 05:47:53 +01:00
Jelmer Vernooij
5b357ca877 r26270: Require specifying the loadparm_context or NULL to cli_credentials_guess().
(This used to be commit e52710d679)
2007-12-21 05:47:50 +01:00
Jelmer Vernooij
0184e5ef2d r26269: Fix a couple more references to global_loadparm.
(This used to be commit 1cb849dfba)
2007-12-21 05:47:49 +01:00
Jelmer Vernooij
b83a7a135f r26268: Avoid more use of global_loadparm - put lp_ctx in smb_server and wbsrv_connection.
(This used to be commit 7c00866423)
2007-12-21 05:47:47 +01:00
Jelmer Vernooij
1fbdd6ef1d r26264: pass name resolve order explicitly, use torture context for settings in dssync tests.
(This used to be commit c7eae1c784)
2007-12-21 05:47:39 +01:00
Jelmer Vernooij
ecea5ce245 r26260: Store loadparm context in gensec context.
(This used to be commit b9e3a4862e)
2007-12-21 05:47:34 +01:00
Jelmer Vernooij
78416aff6c r26258: Use loadparm context in client_start function of gensec.
(This used to be commit bad1891cae)
2007-12-21 05:47:32 +01:00
Jelmer Vernooij
43696d2752 r26252: Specify loadparm_context explicitly when creating sessions.
(This used to be commit 7280c1e941)
2007-12-21 05:47:29 +01:00
Jelmer Vernooij
ab69eb8d89 r26250: Avoid global_loadparm in a couple more places.
(This used to be commit 2c6b755309)
2007-12-21 05:47:28 +01:00
Jelmer Vernooij
53ae9bc9f6 r26248: Check in SWIG output so SWIG is not required when running out of svn.
(This used to be commit 08501fbef3)
2007-12-21 05:47:26 +01:00
Jelmer Vernooij
6c999cd123 r26236: Remove more uses of global_loadparm or specify loadparm_context explicitly.
(This used to be commit 5b29ef7c03)
2007-12-21 05:47:15 +01:00
Jelmer Vernooij
934e932387 r26235: Avoid global_loadparm.
(This used to be commit e903978220)
2007-12-21 05:47:13 +01:00
Jelmer Vernooij
7e298580e0 r26234: More global_loadparm fixes.
(This used to be commit 84892d030d)
2007-12-21 05:47:12 +01:00
Jelmer Vernooij
120ecdb5cb r26233: Pass loadparm context when creating krb5 contexts.
(This used to be commit 7780bf285f)
2007-12-21 05:47:11 +01:00
Jelmer Vernooij
fface33dd7 r26231: Spell check: credentails -> credentials.
(This used to be commit 4b46888bd0)
2007-12-21 05:47:09 +01:00
Jelmer Vernooij
cc04f143dc r26229: Set loadparm context as opaque pointer in ldb, remove more uses of global_loadparm.
(This used to be commit 37d05fdc7b)
2007-12-21 05:47:06 +01:00
Jelmer Vernooij
51db4c3f3d r26228: Store loadparm context in auth context, move more loadparm_contexts up the call stack.
(This used to be commit ba75f1613a)
2007-12-21 05:47:05 +01:00
Jelmer Vernooij
f4a1083cf9 r26227: Make loadparm_context part of a server task, move loadparm_contexts further up the call stack.
(This used to be commit 0721a07aad)
2007-12-21 05:47:04 +01:00
Jelmer Vernooij
2fa338cdc9 r26226: Avoid more uses of global_loadparm.
(This used to be commit 6cbce47a3e)
2007-12-21 05:47:02 +01:00
Jelmer Vernooij
8d8ad81437 r26224: Remove another use of global_loadparm.
(This used to be commit bd12560432)
2007-12-21 05:47:00 +01:00
Jelmer Vernooij
3b281c3081 r26222: Avoid global_loadparm in a couple more places.
(This used to be commit 5bd053a570)
2007-12-21 05:46:58 +01:00
Jelmer Vernooij
181aab56d5 r26221: Add loadparm_context parameter to auth_context_create.
(This used to be commit a9a9634df8)
2007-12-21 05:46:58 +01:00
Jelmer Vernooij
991ee1aff0 r26205: Pass loadparm_context to secrets_db_connect() rather than using global context.
(This used to be commit 5718b6cfee)
2007-12-21 05:46:51 +01:00
Jelmer Vernooij
0e191fa26a r26204: Binsings for some more functions.
(This used to be commit ab6be3086f)
2007-12-21 05:46:50 +01:00
Jelmer Vernooij
cef98aaf27 r26203: Avoid using ldb_wrap for secrets database.
(This used to be commit b45093f01f)
2007-12-21 05:46:49 +01:00
Jelmer Vernooij
e22c7f1fe3 r26189: Add really trivial testsuite for the auth module.
(This used to be commit f0fcad0a75)
2007-12-21 05:46:41 +01:00
Jelmer Vernooij
0ac6bffdf4 r26136: Attempt to fix dependencies for auth.
(This used to be commit abf2600a04)
2007-12-21 05:46:18 +01:00
Jelmer Vernooij
55f333ae2d r26134: Avoid using samdb-dependent functions in auth_system_session.
(This used to be commit 29c1c96fe0)
2007-12-21 05:46:16 +01:00
Jelmer Vernooij
4340fc2d9e r26127: Move session code out of auth_util.c. No longer making it part of auth but making it usable independently will be the next step.
(This used to be commit b3fcb8e810)
2007-12-21 05:46:14 +01:00
Jelmer Vernooij
3950e76a2f r26099: Don't depend on nonexistant auth_util.h header.
(This used to be commit a827460d29)
2007-12-21 05:46:02 +01:00
Jelmer Vernooij
d1d958caa1 r26078: Import Python bindings for system_session functions (still needs tests).
(This used to be commit f1f7d2f98a)
2007-12-21 05:45:55 +01:00
Jelmer Vernooij
f6322e4b96 r26069: Import python bindings for credentials.
(This used to be commit 97bb235cc8)
2007-12-21 05:45:52 +01:00
Stefan Metzmacher
fdf30f9e96 r26016: remove unneeded include
metze
(This used to be commit 330b8dce85)
2007-12-21 05:45:42 +01:00
Jelmer Vernooij
dc2273ba37 r26006: Improve some dependencies.
(This used to be commit 28f05bb5ef)
2007-12-21 05:45:41 +01:00
Jelmer Vernooij
afafeca814 r26004: Add some simple credentials tests.
(This used to be commit e96c722cbf)
2007-12-21 05:45:40 +01:00
Jelmer Vernooij
ca0b72a1fd r26003: Split up DB_WRAP, as first step in an attempt to sanitize dependencies.
(This used to be commit 56dfcb4f2f)
2007-12-21 05:45:40 +01:00
Stefan Metzmacher
529763a9aa r25920: ndr: change NTSTAUS into enum ndr_err_code (samba4 callers)
lib/messaging/
lib/registry/
lib/ldb-samba/
librpc/rpc/
auth/auth_winbind.c
auth/gensec/
auth/kerberos/
dsdb/repl/
dsdb/samdb/
dsdb/schema/
torture/
cluster/ctdb/
kdc/
ntvfs/ipc/
torture/rap/
ntvfs/
utils/getntacl.c
ntptr/
smb_server/
libcli/wrepl/
wrepl_server/
libcli/cldap/
libcli/dgram/
libcli/ldap/
libcli/raw/
libcli/nbt/
libnet/
winbind/
rpc_server/

metze
(This used to be commit 6223c7fddc)
2007-12-21 05:45:02 +01:00
Stefan Metzmacher
6ce86941de r25839: use nss_wrapper code in samba4 if
--enable-nss-wrapper or --enable-developer is given

metze
(This used to be commit f8bc6b9ad0)
2007-12-21 05:44:20 +01:00
Andrew Bartlett
e85370e703 r25703: Use less entropy by using the pointer value as a process-unique token.
Andrew Bartlett
(This used to be commit 3480dc71a9)
2007-12-21 05:43:21 +01:00
Andrew Bartlett
6554433fc2 r25660: Add a new interface 'generate_secret_buffer()', to be used when we
require top-quality entropy.  We don't want to waste system enropy
generating challenges (which simply need to be unpredictable, not
secret) or when generating UUIDs.

Rework generate_random_buffer() to use /dev/urandom less often, only
to seed the existing RC4 based PRNG.  (With an exception to ensure we
don't waste this setup cost for very small entropy requests).

Perhaps we should be using heimdal's code for this instead?

This should drasticly reduce our entropy use, particularly in the
build farm (automated Samba build on hosts without much other source
of entropy).

Andrew Bartlett
(This used to be commit 6a5630d371)
2007-12-21 05:43:03 +01:00
Jelmer Vernooij
b09047b78e r25624: Remove ipv4_addr hack. Only causes 4 extra includes of system/network.h because we stripped down includes.
(This used to be commit 262c1c23a6)
2007-12-21 05:43:00 +01:00
Stefan Metzmacher
b3393247a2 r25576: BOOL -> bool
metze
(This used to be commit 9fd96e1989)
2007-10-10 15:07:58 -05:00
Jelmer Vernooij
0df01cee47 r25562: Use standard bool types in cyrus sasl code - patch by Julien.
(This used to be commit 4f664939af)
2007-10-10 15:07:56 -05:00
Jelmer Vernooij
3642f3b40d r25552: Convert to standard bool type.
(This used to be commit b8d6b82f12)
2007-10-10 15:07:54 -05:00
Jelmer Vernooij
e511090a43 r25543: Merge libreplace support for inet_pton, inet_ntop, getaddrinfo, getnameinfo
(and friends) from SAMBA_3_2, with some minor tweaks:

- avoid including network headers in replace.h unless absolutely required
- autoconf tests for getaddrinfo() in lib/replace

The heimdal-specific code also no longer looks for these functions anymore.
(This used to be commit b6d3fd84a5)
2007-10-10 15:07:51 -05:00
Jelmer Vernooij
2f3551ca7c r25446: Merge some changes I made on the way home from SFO:
2007-09-29 More higher-level passing around of lp_ctx.
2007-09-29 Fix warning.
2007-09-29 Pass loadparm contexts on a higher level.
2007-09-29 Avoid using global loadparm context.
(This used to be commit 3468952e77)
2007-10-10 15:07:34 -05:00
Jelmer Vernooij
60a1046c5c r25430: Add the loadparm context to all parametric options.
(This used to be commit fd697d77c9)
2007-10-10 15:07:31 -05:00
Stefan Metzmacher
98038f71a7 r25428: forward declarations of enums are not portable,
so pass struct cli_credentials *cred instead of
enum credentials_use_kerberos use_kerberos.

metze
(This used to be commit b945aaa9da)
2007-10-10 15:07:31 -05:00
Stefan Metzmacher
2b771cc5a6 r25404: fix the build
metze
(This used to be commit 7d58d0c0c1)
2007-10-10 15:07:27 -05:00
Jelmer Vernooij
37d53832a4 r25398: Parse loadparm context to all lp_*() functions.
(This used to be commit 3fcc960839)
2007-10-10 15:07:25 -05:00
Jelmer Vernooij
ffbb7e4060 r25193: Update headers to easy use by external apps.
(This used to be commit 20b70fbb7a)
2007-10-10 15:06:50 -05:00
Stefan Metzmacher
540caf7ea6 r25181: sync winbind client code with samba3
NOTE: wbinfo.c isn't fully merged here

metze
(This used to be commit eee5327dc2)
2007-10-10 15:06:46 -05:00
Jelmer Vernooij
7e297ecfa4 r25047: Fix more warnings.
(This used to be commit 69de86d2d2)
2007-10-10 15:05:49 -05:00
Jelmer Vernooij
98b57d5eb6 r25035: Fix some more warnings, use service pointer rather than service number in more places.
(This used to be commit df9cebcb97)
2007-10-10 15:05:43 -05:00
Jelmer Vernooij
dccf3f99e4 r25027: Fix more warnings.
(This used to be commit 5085c53fcf)
2007-10-10 15:05:41 -05:00
Jelmer Vernooij
ffeee68e4b r25026: Move param/param.h out of includes.h
(This used to be commit abe8349f9b)
2007-10-10 15:05:38 -05:00
Jelmer Vernooij
4a05c3406b r25005: Avoid pstring.
(This used to be commit 777959f862)
2007-10-10 15:05:31 -05:00
Jelmer Vernooij
959915a8cb r25001: Fix more C++ and other warnings, fix some of the indentation with ts=4 lines that I accidently added earlier.
(This used to be commit 0bcb21ed74)
2007-10-10 15:05:28 -05:00
Jelmer Vernooij
cd962355ab r25000: Fix some more C++ compatibility warnings.
(This used to be commit 08bb1ef643)
2007-10-10 15:05:27 -05:00
Jelmer Vernooij
6cf69fee18 r24994: Fix some C++ warnings.
(This used to be commit 925abf74fa)
2007-10-10 15:05:26 -05:00
Jelmer Vernooij
82037a75ea r24814: Fix headers, trim core.h even more.
(This used to be commit 9647f860bd)
2007-10-10 15:03:14 -05:00
Jelmer Vernooij
0b91f39164 r24780: More work allowing libutil to be used by external users.
(This used to be commit 31993cf67b)
2007-10-10 15:03:10 -05:00
Andrew Bartlett
362ff06690 r24730: Allow secrets entries to be for service principals.
Andrew Bartlett
(This used to be commit 7865d10a29)
2007-10-10 15:02:59 -05:00
Jelmer Vernooij
61ffa08f4c r24712: No longer expose the 'BOOL' data type in any interfaces.
(This used to be commit 1ce32673d9)
2007-10-10 15:02:54 -05:00
Andrew Bartlett
85555742b1 r24504: Try to return more useful error information on why a bind failed.
Note that the correct return for a failed alter_context is a fault,
not a bind_nak.

Andrew Bartlett
(This used to be commit 52cce94532)
2007-10-10 15:02:03 -05:00
Andrew Bartlett
233e4f72d6 r24282: Try to fix the occasional Samba4 crash in BASE-BENCH-READWRITE, as
seen in particular on opi.

This looked like a Heimdal problem, but I think it was simply that we
didn't do a talloc_reference() to keep tabs on the memory we were
using, and in between obtaining the pointer and using it, it was
assigned to unrelated memory.

Andrew Bartlett
(This used to be commit a650ad8b37)
2007-10-10 15:01:35 -05:00
Andrew Bartlett
649d4bf8aa r24074: Test both permitted logon hours and permitted workstations in the
RPC-SAMLOGON test.

This showed that, as noted by bug #4823, we didn't test for invalid
workstations.  In fact, the code had been ported across, but because
untested code is broken code, it never worked...

Andrew Bartlett
(This used to be commit 5e07417ada)
2007-10-10 15:01:21 -05:00
Andrew Bartlett
06a6194ead r24061: Anther part of bug #4823, which is that until now Samba4 didn't parse
the logon hours, even if set.

This code happily stolen from the great work in Samba3 :-)

Andrew Bartlett
(This used to be commit a4939ab629)
2007-10-10 15:01:21 -05:00
Andrew Bartlett
a87dea2a08 r23810: Make things static, and remove unsued code.
This includes some of the original ildap ldap client API.  ldb
provides a much easier abstraction on this to use, and doesn't use
these functions.

Andrew Bartlett
(This used to be commit dc27a7e41c)
2007-10-10 14:59:21 -05:00
Andrew Tridgell
cd1217ff5f r23801: The FSF has moved around a lot. This fixes their Mass Ave address.
(This used to be commit 5c9b19271e)
2007-10-10 14:59:18 -05:00
Andrew Tridgell
6c973f4e8c r23798: updated old Temple Place FSF addresses to new URL
(This used to be commit 40c0919aaa)
2007-10-10 14:59:15 -05:00
Andrew Tridgell
b8d69a7ea2 r23795: more v2->v3 conversion
(This used to be commit 84b468b2f8)
2007-10-10 14:59:14 -05:00
Andrew Tridgell
0479a2f1cb r23792: convert Samba4 to GPLv3
There are still a few tidyups of old FSF addresses to come (in both s3
and s4). More commits soon.
(This used to be commit fcf38a38ac)
2007-10-10 14:59:12 -05:00
Andrew Bartlett
222c6dd781 r23680: Make it easier to setup a domain member server - the 'server role'
will now control the auth methods, but an override is still available,
ex:

auth methods:domain controller = <methods>

Andrew Bartlett
(This used to be commit b7e727186e)
2007-10-10 14:59:00 -05:00
Andrew Bartlett
f7110d928a r23455: These buffers may not be null terminated. Ensure we don't run past the
end of teh buffer printing the error strings.

Andrew Bartlett
(This used to be commit 37e7070ca9)
2007-10-10 14:53:17 -05:00
Kai Blin
3fb4bd1c06 r23311: Updating the samba4 winbind protocol to version 18.
nsswitch/winbindd_nss.h is just copied from SAMBA_3_0.
nsswitch/winbind_nss_config.h is copied from SAMBA_3_0, too, but I had to
drop some of the defines to make things build again.

Kai
(This used to be commit 553b7e146f)
2007-10-10 14:53:10 -05:00
Andrew Bartlett
6d52f4a63f r23136: Set the event context onto the credentials in more places.
This helps ensure that the kerberos code uses the right event context.

Andrew Bartlett
(This used to be commit cbdce358ae)
2007-10-10 14:52:54 -05:00
Andrew Bartlett
79d3f82f33 r23132: Resolve an issue where we would use the ccache after we free()ed it.
The problem was, we would set the ccache, then invalidate it as we set
details from it (like the principal name from the ccache).

Instead, set the ccache onto the credentials structure after we are
done processing it.

Andrew Bartlett
(This used to be commit d285bd927c)
2007-10-10 14:52:53 -05:00
Andrew Bartlett
c83c39909e r23063: Make sure to invalidate the ccache when we set a
username/password/realm/etc from the command line.

Also make sure it can't 'come back' from a later call to
cli_credentials_guess(), buy setting a threshold.

This should fix the issues with the build farm...

Andrew Bartlett
(This used to be commit 3b1dfb9306)
2007-10-10 14:52:46 -05:00
Andrew Tridgell
931f594cf1 r23036: error checking on asn1_init() failure
(This used to be commit 26cf849408)
2007-10-10 14:52:43 -05:00
Andrew Bartlett
4dbbf7fed3 r23034: Thanks to metze for providing some vital clues in the 'kerberos ccache
on credentials don't do anything' bug.

The problem was simple, we didn't set the ccache as having been
initialised, so we always created a new one.

Andrew Bartlett
(This used to be commit ec2014f08b)
2007-10-10 14:52:43 -05:00
Andrew Tridgell
7bb939b1cb r23030: finally fixed up our asn1 code to use better memory allocation. This
should allow us to fix some long standing memory leaks.
(This used to be commit 3db49c2ec9)
2007-10-10 14:52:42 -05:00
Stefan Metzmacher
9b4a689c98 r22990: free temporary memory also on success...
metze
(This used to be commit 876a6ef485)
2007-10-10 14:52:37 -05:00
Andrew Bartlett
fe0b8a5df4 r22987: Clarify how the events are handled in the kerberos code, and
standardise with the rest of the code.

Andrew Bartlett
(This used to be commit 3aa9d70723)
2007-10-10 14:52:36 -05:00
Andrew Tridgell
c42219d735 r22969: fix some more places where we could end up with more than one event
context. We now have an event context on the torture_context, and we
can also get one from the cli_credentials structure
(This used to be commit c0f65eb656)
2007-10-10 14:52:34 -05:00
Andrew Bartlett
b5ae9019b0 r22967: Move to the TCP packet interface for the krb5_send_to_kdc plugin.
This replaces a lump of hand-crafted code with the generic packet
system used in the rest of Samba4.

(I started this while chasing down the epoll bug, which turned out to
be seperate)
(This used to be commit 2a7dec4e5d)
2007-10-10 14:52:33 -05:00
Andrew Bartlett
1a7b251319 r22966: Make sure to return LOGON_FAILURE if the user's kerberos password is
incorrect.

Andrew Bartlett
(This used to be commit 9dc6f36e43)
2007-10-10 14:52:33 -05:00
Andrew Tridgell
2741921a50 r22961: use EVENT_FD_AUTOCLOSE and SOCKET_FLAG_NOCLOSE to fix up some hairy
problems with order of socket closing in krb5
(This used to be commit 46a7d83c2b)
2007-10-10 14:52:32 -05:00
Stefan Metzmacher
68b531e817 r22748: fix memleaks by passing an mem_ctx to
irpc_servers_byname()

metze
(This used to be commit b54584dfab)
2007-10-10 14:52:09 -05:00
Stefan Metzmacher
7983989508 r22635: make it possible to not turn off dns canonicalization of hostnames
with krb5:set_dns_canonicalize=yes

needed for the drsuapi replication, but we should fix this with
a kdc locator plugin ...

metze
(This used to be commit f0a12355bc)
2007-10-10 14:51:56 -05:00
Stefan Metzmacher
e2633be313 r22627: fix crash msgs_tmp isn't always initialized
and we don't need an extra allocated string anyway

metze
(This used to be commit 44c27b2fe6)
2007-10-10 14:51:55 -05:00
Stefan Metzmacher
a5df01c992 r22621: fix the 'sam' auth module
metze
(This used to be commit 255acbb113)
2007-10-10 14:51:54 -05:00
Jelmer Vernooij
b481b29a1a r22602: s/HAVE_SOCKET_IPV6/HAVE_IPV6/ to match the define used by Heimdal.
(This used to be commit 5ff665b653)
2007-10-10 14:51:50 -05:00
Andrew Bartlett
ebf5f9f1ef r22594: This helped coax out valgrind errors last night, but we don't need it any more.
Andrew Bartlett
(This used to be commit 367231ea21)
2007-10-10 14:51:48 -05:00
Andrew Bartlett
fcdb99f7ce r22582: Cleanups towards making winbind work again. We still have a long way to go, as this has bitrotted over the past months.
This change in particular catches winbind up with the next
composite_create() function.

We also needed to remove an unused flags field, and fill in the lm
response.

Andrew Bartlett
(This used to be commit bd26e4ffaf)
2007-10-10 14:51:47 -05:00
Andrew Bartlett
729674054a r22558: Move to a static list of enctypes to put into our keytab. In future,
I'll allow this to be configured from the secrets.ldb, but it should
fix some user issues.

Andrew Bartlett
(This used to be commit 0fd74ada22)
2007-10-10 14:51:43 -05:00
Stefan Metzmacher
44760c3e6f r22404: more dependencies which should be private
metze
(This used to be commit e0e35965d1)
2007-10-10 14:51:14 -05:00
Stefan Metzmacher
1fc97d3ee4 r22397: hopefully fix the build on some aix hosts in the build-farm
we need to make sure -Iheimdal/lib/gssapi comes before -I/usr/local/include

metze
(This used to be commit a6ba465fa8)
2007-10-10 14:51:13 -05:00
Stefan Metzmacher
b4a6a14017 r22387: see if this fixes the build on the aix1 hosts
metze
(This used to be commit fbf1b1bfa0)
2007-10-10 14:51:12 -05:00
Stefan Metzmacher
17328316de r22385: remove unused include
metze
(This used to be commit c8a210bc6f)
2007-10-10 14:51:12 -05:00
Andrew Bartlett
d7fe1f182b r22294: Lock the delegated credentials to being kerberos only, we just don't
have the data for anything else.

Andrew Bartlett
(This used to be commit 9e0c0cd0ff)
2007-10-10 14:50:58 -05:00
Andrew Bartlett
c2688ec228 r22293: Try to make it more clear what failed to parse.
Andrew Bartlett
(This used to be commit 144ab7294d)
2007-10-10 14:50:57 -05:00
Andrew Bartlett
2bedec23ee r22208: Print the target principal name, to help with kdc unreachable errors.
Andrew Bartlett
(This used to be commit bbde5b6a2f)
2007-10-10 14:50:38 -05:00
Stefan Metzmacher
a88ac66d98 r22199: fix typo
metze
(This used to be commit 4e8f844be9)
2007-10-10 14:50:37 -05:00
Andrew Bartlett
f1b2b43ba5 r22187: Test kerberos logins in the smbclient blackbox tests, including with a
machine account.

Andrew Bartlett
(This used to be commit 16a2bb87a8)
2007-10-10 14:50:01 -05:00
Andrew Bartlett
68094302c1 r22115: I don't like the DOMAIN environment variable. It really isn't a good
match for what we are using it for here.

Andrew Bartlett
(This used to be commit 305d1421ef)
2007-10-10 14:49:51 -05:00
Andrew Bartlett
847102c6ca r21736: Fix the smbclient test to do something more interesting with the last
few authentication tests.  Now that the tests correctly 'fail', I was
able to fix the credentials subsystem to honour USER and PASSWD.

To get --machine-pass working, I needed ldb to always load it's static
modules, so I put this in ldb_connect().

Andrew Bartlett
(This used to be commit 3430d8c072)
2007-10-10 14:49:20 -05:00
James Peach
fcaeedeff3 r21668: Add SMB_QFS_POSIX_WHOAMI to trans2.h so it's easy to find. Add
convenience API to create an anonymous credential. Don't clobber
cmdline_credentials in the UNIX-WHOAMI test.
(This used to be commit 73cea4e0c6)
2007-10-10 14:49:07 -05:00
Stefan Metzmacher
908bc58cdd r21451: if kerberos is requested ( -k yes ), we should use authentificated connections
metze
(This used to be commit 426238eb45)
2007-10-10 14:48:37 -05:00
Stefan Metzmacher
6e2d85e38b r21434: - get rid of "krb5Key"
- use "sambaPassword" only as virtual attribute for passing
  the cleartext password (in unix charset) into the ldb layer
- store des-cbc-crc, des-cbc-md5 keys in the Primary:Kerberos
  blob to match w2k and w2k3
- aes key support is disabled by default, as we don't know
  exacly how longhorn stores them. use password_hash:create_aes_key=yes
  to force creation of them.
- store the cleartext password in the Primary:CLEARTEXT blob
  if configured

TODO:
 - find out how longhorn stores aes keys
 - find out how the Primary:WDigest blob needs to be constructed
   (not supported by w2k)

metze
(This used to be commit e20b53f6fe)
2007-10-10 14:48:34 -05:00
Stefan Metzmacher
3b14713f6d r21362: rename:
"ntPwdHash" => "unicodePwd"
"lmPwdHash" => "dBCSPwd"
"sambaLMPwdHistory" => "lmPwdHistory"
"sambaNTPwdHistory" => "ntPwdHistory"

Note: you need to reprovision after this change!

metze
(This used to be commit dc4242c09c)
2007-10-10 14:48:20 -05:00
Stefan Metzmacher
41771deb29 r21314: add more usefull debug output
metze
(This used to be commit a246e4bbaa)
2007-10-10 14:48:08 -05:00
Andrew Bartlett
e473050052 r21175: Fix the kerberos keytab update code to handle deletes.
Fix the join code to know that the ldb layer handles the keytab update.

Andrew Bartlett
(This used to be commit d3fbc089f4)
2007-10-10 14:44:42 -05:00
Stefan Metzmacher
a8d0f5df62 r21142: fix compiler warnings
metze
(This used to be commit 1f8a037ac4)
2007-10-10 14:44:33 -05:00
Andrew Bartlett
744dddd75b r21135: Instead of having hooks to update keytabs as an explicit thing, update
them as a hook on ldb modify, via a module.

This should allow the secrets.ldb to be edited by the admin, and to
have things update in the on-disk keytab just as an in-memory keytab
would.

This isn't really a dsdb plugin, but I don't have any other good ideas
about where to put it.

Andrew Bartlett
(This used to be commit 6ce557a1af)
2007-10-10 14:44:31 -05:00
Andrew Bartlett
0f01aae914 r21039: Test some more failure paths (trying to increase the lcov score).
Andrew Bartlett
(This used to be commit 76812a0337)
2007-10-10 14:44:23 -05:00
Andrew Bartlett
d5bbd817fe r20988: Call out to Heimdal's krb5.conf processing to configure many aspects
of KDC behaviour.  This should allow PKINIT to be turned on and
managed with reasonable sanity.

This also means that the krb5.conf in the same directory as the
smb.conf will always have priority in Samba4, which I think will be
useful.

Andrew Bartlett
(This used to be commit a50bbde81b)
2007-10-10 14:44:18 -05:00
Andrew Bartlett
0ee01e6fc2 r20949: Looking over some lcov output, try and walk some error paths.
Andrew Bartlett
(This used to be commit 9ed9a032c2)
2007-10-10 14:43:59 -05:00
Andrew Tridgell
1cd4339b9a r20646: first preparations for cluster enablement. This changes "
uint32_t server_id
to
  struct server_id server_id;

which allows a server ID to have an node number. The node number will
be zero in non-clustered case. This is the most basic hook needed for
clustering, and ctdb.
(This used to be commit 2365abaa99)
2007-10-10 14:37:23 -05:00
Andrew Bartlett
08976cb3d2 r20639: Commit part 1 of 2.
This patch updates our build system and glue to support a new snapshot
of lorikeet-heimdal.

We now procude a [SUBSYTEM] in the ans1_deps.pl script, and can depend
on that in the heimdal_build/config.mk.  This is much easier than
listing every generated .o file individually.

This required some small changes to the build system, due to the way
the parent directory was handled for the output of scripts.  I've also
cleaned up et_deps.pl to handle cleaning up it's generated files on
clean.

The PAC glue in Heimdal has changed significantly: we no longer have a
custom hack in the KDC, instead we have the windc plugin interface.
As such, pac-glue.c is much smaller.  In the future, when I'm
confident of the new code, we will also be able to 'downsize'
auth/kerberos/kerberos_pac.c.

(I'll include the updated copy of heimdal in the next chekin, to make
it clearer what's changed in Samba4 itself).

Andrew Bartlett
(This used to be commit 75fddbbc08)
2007-10-10 14:37:20 -05:00
Stefan Metzmacher
3b7686447a r20520: allow the caller to pass NULL if it doesn't want a session info
this can be used when we start to support the FAST BIND LDAP Control

metze
(This used to be commit 0a73d3262d)
2007-10-10 14:36:11 -05:00
Andrew Bartlett
f9dd1d7ef8 r20352: Use the common function to find the DN for a domain.
Andrew Bartlett
(This used to be commit 929fd1beee)
2007-10-10 14:30:14 -05:00
Stefan Metzmacher
f09c0c1237 r20275: we should check for the oid the caller gave us!
metze
(This used to be commit 4b9e196288)
2007-10-10 14:29:29 -05:00
Stefan Metzmacher
b2d5ec0339 r20274: add missing return statement and make it more explicit that we return a NULL DATA_BLOB
metze
(This used to be commit 7256481f08)
2007-10-10 14:29:29 -05:00
Stefan Metzmacher
b55a68b368 r20258: add functions to read and write asn1 encoded OID strings without leading tag
metze
(This used to be commit 576d4c54cc)
2007-10-10 14:29:28 -05:00
Andrew Bartlett
d471e52d23 r20149: Remove the smb.conf distinction between PDC and BDC. Now the correct
way to setup a Samba4 DC is to set 'server role = domain controller'.

We use the fSMORoleOwner attribute in the base DN to determine the PDC.

This patch is quite large, as I have corrected a number of places that
assumed taht we are always the PDC, or that used the smb.conf
lp_server_role() to determine that.

Also included is a warning fix in the SAMR code, where the IDL has
seperated a couple of types for group display enumeration.

We also now use the ldb database to determine if we should run the
global catalog service.

In the near future, I will complete the DRSUAPI
DsGetDomainControllerInfo server-side on the same basis.

Andrew Bartlett
(This used to be commit 67d8365e83)
2007-10-10 14:29:15 -05:00
Stefan Metzmacher
38a472c994 r20135: attach default gensec features to the cli_credentials structure,
so make it possible to force encryption or signing.

metze
(This used to be commit a91dc4a02a)
2007-10-10 14:29:12 -05:00
Stefan Metzmacher
78ea6370bf r20108: match w2k3 and send 1.2.840.48018.1.2.2 before 1.2.840.113554.1.2.2
to work better against w2k, so we don't get redirected from
1.2.840.113554.1.2.2 to 1.2.840.48018.1.2.2 by a w2k server, causing 2 additional
auth roundtrips.

metze
(This used to be commit fa5c942ee9)
2007-10-10 14:29:08 -05:00
Stefan Metzmacher
ae9f7857d5 r20107: don't segfault when the server didn't send a supportedMech in a negTokenTarg
this happens because we send 1.2.840.113554.1.2.2 before 1.2.840.48018.1.2.2
in the negTokenInit. And w2k's spnego code redirects us to use 1.2.840.48018.1.2.2
and then we start the our spnego engine with 1.2.840.48018.1.2.2 and in the then following
negTokenTarg w2k don't send the supportedMech (which means it aggrees in what we've choosen)

metze
(This used to be commit 5af5488593)
2007-10-10 14:29:07 -05:00
Simo Sorce
ea212eb00f r20034: Start using ldb_search_exp_fmt()
(This used to be commit 4f07542143)
2007-10-10 14:28:51 -05:00
Stefan Metzmacher
a6e2442a5f r20010: cosmetic fix
metze
(This used to be commit 9c992a39db)
2007-10-10 14:28:47 -05:00
Simo Sorce
a9e31b33b5 r19832: better prototypes for the linearization functions:
- ldb_dn_get_linearized
  returns a const string

- ldb_dn_alloc_linearized
  allocs astring with the linearized dn
(This used to be commit 3929c086d5)
2007-10-10 14:28:22 -05:00
Simo Sorce
4889eb9f7a r19831: Big ldb_dn optimization and interfaces enhancement patch
This patch changes a lot of the code in ldb_dn.c, and also
removes and add a number of manipulation functions around.

The aim is to avoid validating a dn if not necessary as the
validation code is necessarily slow. This is mainly to speed up
internal operations where input is not user generated and so we
can assume the DNs need no validation. The code is designed to
keep the data as a string if possible.

The code is not yet 100% perfect, but pass all the tests so far.
A memleak is certainly present, I'll work on that next.

Simo.
(This used to be commit a580c871d3)
2007-10-10 14:28:22 -05:00
Andrew Bartlett
84c5acc615 r19805: Add the (harmless, but apparently default)
NTLMSSP_NEGOTIATE_ALWAYS_SIGN flags into the default set.

Andrew Bartlett
(This used to be commit 04709c75af)
2007-10-10 14:28:21 -05:00
Jelmer Vernooij
66494b1fc9 r19677: Fix more dependencies.
(This used to be commit 17c2557834)
2007-10-10 14:25:29 -05:00
Jelmer Vernooij
c81f2930a2 r19676: Fix some more dependencies.
(This used to be commit 8768bec81f)
2007-10-10 14:25:29 -05:00
Stefan Metzmacher
f0d975fd69 r19674: auth didn't depdend on process_model!
metze
(This used to be commit 30963753fc)
2007-10-10 14:25:29 -05:00
Jelmer Vernooij
547eef2cf1 r19670: Reduce the number of unresolved symbols when building with shared libraries.
(This used to be commit 4422031d1d)
2007-10-10 14:25:27 -05:00
Stefan Metzmacher
c779270116 r19664: fix compiler warnings...
should _krb5_find_type_in_ad() also take a const?

metze
(This used to be commit addc31bd93)
2007-10-10 14:25:27 -05:00
Andrew Bartlett
47b7419fa7 r19660: Forgot to tell gsskrb5 not to canonicalize hostnames. Shoudl fix
valrind issues on fort, because we won't hit NSS any more.

Andrew Bartlett
(This used to be commit 6f67fa01ab)
2007-10-10 14:25:26 -05:00
Andrew Bartlett
e5974a1b5f r19650: Allow Samba to use Heimdal's SPNEGO code. Currently this can only
negotiate krb5, but if this works, I'll add NTLM as a GSSAPI backend
by some means or other.

Andrew Bartlett
(This used to be commit 476452e143)
2007-10-10 14:25:25 -05:00
Andrew Bartlett
ed77e4e57b r19644: Merge up to current lorikeet-heimdal, incling adding
gsskrb5_set_default_realm(), which should fix mimir's issues.

Andrew Bartlett
(This used to be commit 8117e76d2a)
2007-10-10 14:25:24 -05:00
Andrew Bartlett
cb3a884048 r19635: It appears that under CFX, different keys are used in each direction
(or something like that).

In any case, we need to stick with the initiator subkey for now, until
we figure out what Vista uses for the CIFS session key.

Andrew Bartlett
(This used to be commit b91a921e13)
2007-10-10 14:25:22 -05:00
Andrew Bartlett
f722b07438 r19633: Merge to lorikeet-heimdal, removing krb5_rd_req_return_keyblock in favour of a more tasteful replacement.
Remove kerberos_verify.c, as we don't need that code any more.
Replace with code for using the new krb5_rd_req_ctx() borrowed from
Heimdal's accecpt_sec_context.c

Andrew Bartlett
(This used to be commit 13c9df1d4f)
2007-10-10 14:25:21 -05:00
Andrew Bartlett
daa463070c r19629: No need to special case use of DCE_STYLE sign and seal away any more...
Andrew Bartlett
(This used to be commit 247b9f1ca9)
2007-10-10 14:25:20 -05:00
Andrew Bartlett
a77b25cea7 r19628: This hint via Love at the IETF meeting:
Larry told me that most context flags needed to be set to, otherwise
it wouldn't work.

This fixes DCE_STYLE against Win2k3 SP1.  It seems they just tightened
up their end of the GSSAPI code, as DCE_STYLE is explicity rejected in
the session setup too (being the wrong layer).

Andrew Bartlett
(This used to be commit b2b77f34a4)
2007-10-10 14:25:20 -05:00
Stefan Metzmacher
9f30272b27 r19614: fix compiler warnings
metze
(This used to be commit 1ca8651a59)
2007-10-10 14:25:05 -05:00
Andrew Bartlett
3c1e780ec7 r19604: This is a massive commit, and I appologise in advance for it's size.
This merges Samba4 with lorikeet-heimdal, which itself has been
tracking Heimdal CVS for the past couple of weeks.

This is such a big change because Heimdal reorganised it's internal
structures, with the mechglue merge, and because many of our 'wishes' have been granted:  we now have DCE_STYLE GSSAPI, send_to_kdc hooks and many other features merged into the mainline code.  We have adapted to upstream's choice of API in these cases.

In gensec_gssapi and gensec_krb5, we either expect a valid PAC, or NO
PAC.  This matches windows behavour.  We also have an option to
require the PAC to be present (which allows us to automate the testing
of this code).

This also includes a restructure of how the kerberos dependencies are
handled, due to the fallout of the merge.

Andrew Bartlett
(This used to be commit 4826f17351)
2007-10-10 14:25:03 -05:00
Andrew Bartlett
13dbee3ffe r19598: Ahead of a merge to current lorikeet-heimdal:
Break up auth/auth.h not to include the world.

Add credentials_krb5.h with the kerberos dependent prototypes.

Andrew Bartlett
(This used to be commit 2b569c42e0)
2007-10-10 14:25:00 -05:00
Andrew Bartlett
c755bb5025 r19597: Ahead of the merge to current lorikeet-heimdal:
Supply the correct OID to the error display functions.

Rework the session key functions.

Andrew Bartlett
(This used to be commit 363628c13f)
2007-10-10 14:25:00 -05:00
Andrew Bartlett
97aec1a70c r19595: Seperate debug messages between database failure and simple lack of
records.

Andrew Bartlett
(This used to be commit 163f753727)
2007-10-10 14:24:59 -05:00
Jelmer Vernooij
5a6e2bc9ae r19573: Move secrets.o into param/ (subsystems haven't been integrated yet).
(This used to be commit 8143de855c)
2007-10-10 14:24:55 -05:00
Andrew Bartlett
18aa4c6a38 r19568: When we get back a skew error, try with no skew. This allows us to
recover from inheriting an invalid skew from a ccache.

Andrew Bartlett
(This used to be commit 4881f0583d)
2007-10-10 14:24:53 -05:00
Andrew Bartlett
c45262582c r19566: Predeclare some useful structures.
(This used to be commit 160a59f073)
2007-10-10 14:24:53 -05:00
Andrew Bartlett
d046e8d0cc r19523: Remove unused functions.
Andrew Bartlett
(This used to be commit 3a3c1040a9)
2007-10-10 14:24:44 -05:00
Jelmer Vernooij
4fa24df98d r19507: Merge my DSO fixes branch. Building Samba's libraries as shared libraries
works again now, by specifying --enable-dso to configure.
(This used to be commit 7a01235067)
2007-10-10 14:24:41 -05:00
Simo Sorce
7f833458ca r19489: Change ldb_msg_add_value and ldb_msg_add_empty to take a foruth argument.
This is a pointer to an element pointer. If it is not null it will be
filled with the pointer of the manipulated element.
Will avoid double searches on the elements list in some cases.
(This used to be commit 0fa5d4bc22)
2007-10-10 14:24:38 -05:00
Andrew Bartlett
3c203ab927 r19465: Rather than use the non-standard API for determining the signature
length, use the amount the wapped message expanded by.

This works, because GSSAPI doesn't do AEAD (signing of headers), and
so changing the signature length after the fact is valid.

Andrew Bartlett
(This used to be commit bd1e0f679c)
2007-10-10 14:21:37 -05:00
Jelmer Vernooij
8773e743c5 r19339: Merge my 4.0-unittest branch. This adds an API for more fine-grained
output in the testsuite rather than just True or False for a
set of tests.

The aim is to use this for:
 * known failure lists (run all tests and detect tests that
						started working or started failing). This
   would allow us to get rid of the RPC-SAMBA3-* tests
 * nicer torture output
 * simplification of the testsuite system
 * compatibility with other unit testing systems
 * easier usage of smbtorture (being able to run one test
						and automatically set up the environment for that)

This is still a work-in-progress; expect more updates over the next couple of
days.
(This used to be commit 0eb6097305)
2007-10-10 14:21:12 -05:00
Simo Sorce
59b66744f7 r19299: Fix possible memleaks
(This used to be commit 6fad80bb09)
2007-10-10 14:21:04 -05:00
Andrew Bartlett
541339fbd2 r19265: It is not an error to set the target hostname to NULL.
Andrew Bartlett
(This used to be commit c9c2e90e2e)
2007-10-10 14:21:00 -05:00
Andrew Bartlett
cbed4ba5af r18354: It seems safe to enable the DIGEST-MD5 module now.
Andrew Bartlett
(This used to be commit 8357f8be45)
2007-10-10 14:18:17 -05:00
Andrew Tridgell
9adf2883ef r18321: fixed some warnings on AIX
(This used to be commit 449fab2c26)
2007-10-10 14:18:08 -05:00
Andrew Tridgell
30ee8beb93 r18301: I discovered how to load the warnings from a build farm build into
emacs compile mode (hint, paste to a file, and compile as "cat
filename").

This allowed me to fix nearly all the warnings for a IA_64 SuSE build
very quickly.
(This used to be commit eba6c84eff)
2007-10-10 14:18:04 -05:00
Andrew Tridgell
dfd4c8e84d r18295: pass write type for packet_size
this fixes a crash on IA_64 systems
(This used to be commit 22c3902762)
2007-10-10 14:18:03 -05:00
Andrew Tridgell
217998018f r18258: need to use .priority not .order here
(This used to be commit a47d65fe17)
2007-10-10 14:17:57 -05:00
Andrew Bartlett
c1ec0da99c r18257: Order the GENSEC modules, with unknown modules last.
Andrew Bartlett
(This used to be commit 8ae880b501)
2007-10-10 14:17:57 -05:00
Andrew Bartlett
40cf47fa56 r18255: Remove the SMB_ASSERT(), as these are not talloc()'ed structures.
Andrew Bartlett
(This used to be commit 73fba185eb)
2007-10-10 14:17:56 -05:00
Andrew Bartlett
71a9ca56d0 r18253: Turn Cyrus-SASL DIGEST-MD5 off by default for now.
Andrew Bartlett
(This used to be commit 2da948cb6e)
2007-10-10 14:17:56 -05:00
Andrew Bartlett
c062b12fba r18250: Add an ordering of GENSEC modules, so we do preferred modules first.
Andrew Bartlett
(This used to be commit 0afb4d1992)
2007-10-10 14:17:55 -05:00
Andrew Bartlett
2f6d723e1f r18249: Keep trying to start an GENSEC mech from the list until one actually
starts.

Andrew Bartlett
(This used to be commit 7dba525f55)
2007-10-10 14:17:55 -05:00
Andrew Bartlett
a22780bd4c r18242: The cyrus-sasl encode/decode routines process the entire input.
Andrew Bartlett
(This used to be commit 32d8a23d54)
2007-10-10 14:17:54 -05:00
Stefan Metzmacher
a46e12d0e0 r18213: don't list LIBREPLACE depdendecies explicit and
always at it as first private dependencies

metze
(This used to be commit 135d096776)
2007-10-10 14:17:50 -05:00
Andrew Bartlett
9ca2814c3f r18198: Fix callbacks to use allocated or constant memory, not the stack.
These values are used by SASL at a later time, and must remain valid.

Make the password callback actually return the password.

Andrew Bartlett
(This used to be commit 8e12f92bbe)
2007-10-10 14:17:48 -05:00
Stefan Metzmacher
33d6ffe16a r18164: enable the SASL library if found
metze
(This used to be commit 675541f24e)
2007-10-10 14:17:45 -05:00
Andrew Bartlett
3549adc7ce r18155: Add my work in progress, a module to link with Cyrus-SASL, for a
DIGEST-MD5 implemenation in particular.

However, I can't make this work:  Cyrus-SASL isn't loading the mech...

Andrew Bartlett
(This used to be commit 0b193d28c8)
2007-10-10 14:17:43 -05:00
Andrew Tridgell
014f70008f r18130: the move to system/ in libreplace broke some things ... should be
happier now
(This used to be commit 18542f184f)
2007-10-10 14:17:37 -05:00
Andrew Bartlett
c3b54cf75b r18068: This splits the handling of multiple SASL packets between the GENSEC
backend (if it chooses to implement it), or the GENSEC socket code.

This is to allow us to handle DIGEST-MD5 across to cyrus-sasl.

Andrew Bartlett
(This used to be commit 0a098006b4)
2007-10-10 14:17:11 -05:00
Jelmer Vernooij
0329d755a7 r17930: Merge noinclude branch:
* Move dlinklist.h, smb.h to subsystem-specific directories
 * Clean up ads.h and move what is left of it to dsdb/
   (only place where it's used)
(This used to be commit f7afa1cb77)
2007-10-10 14:16:54 -05:00
Andrew Bartlett
9356831484 r17871: Add an option to make the system account behave as anonymous on the
network.  This helps where we are trying to talk to an LDAP server,
until we share a common SASL authentication scheme.

Andrew Bartlett
(This used to be commit f9d39dba41)
2007-10-10 14:16:50 -05:00
Andrew Tridgell
b21b119cbc r17824: add a wrapper for the common partitions_basedn calculation
(This used to be commit 09007b0907)
2007-10-10 14:16:45 -05:00
Andrew Tridgell
0fd9807942 r17823: get rid of most of the samdb_base_dn() calls, as they are no longer
needed in searches
(This used to be commit a5ea749f0a)
2007-10-10 14:16:45 -05:00
Stefan Metzmacher
845e288ea4 r17774: this macro is unused
metze
(This used to be commit 2f4aa95f8d)
2007-10-10 14:16:40 -05:00
Simo Sorce
a23b63a8e5 r17516: Change helper function names to make more clear what they are meant to do
(This used to be commit ad75cf8695)
2007-10-10 14:15:31 -05:00
Stefan Metzmacher
358b1b2ea6 r17381: - we don't need debug messages twice
- also user_info->mapped is maybe uninitialized
  in auth_password_check() as it we do the mapping in
  auth_password_check_send()

that to Kai Blin <kai.blin@gmail.com> and valgrind to find
this bug

metze
(This used to be commit d88aabef64)
2007-10-10 14:15:20 -05:00
Stefan Metzmacher
bdbc9b3908 r17344: move the gensec_update_request structure into the header file
and add a private_data for the backends.

metze
(This used to be commit 015a65e001)
2007-10-10 14:15:17 -05:00
Stefan Metzmacher
d6301c8472 r17343: let auth_winbind use IRPC against the winbind task.
(currently this uses the sync IRPC_CALL(), but when
auth_check_password will be async for the backend this will
change to IRPC_CALL_SEND()

the old module which uses the samba3 protocol against winbind
is still available as 'winbind_samba3'

metze
(This used to be commit 26efc732ab)
2007-10-10 14:15:17 -05:00
Stefan Metzmacher
7a845bcb01 r17341: pass a messaging context to auth_context_create()
and gensec_server_start().

calling them with NULL for event context or messaging context
is no longer allowed!

metze
(This used to be commit 679ac74e71)
2007-10-10 14:15:17 -05:00
Andrew Bartlett
582cf8c1c0 r17332: May as well make this a round number
(This used to be commit a2d6141476)
2007-10-10 14:15:16 -05:00
Stefan Metzmacher
4fe4093643 r17285: some reformating
metze
(This used to be commit c865aea260)
2007-10-10 14:15:06 -05:00
Stefan Metzmacher
622d1db80a r17284: move the input checking stuff from ntlmssp_update() into its
own function.

metze
(This used to be commit ee81ad5793)
2007-10-10 14:15:06 -05:00
Stefan Metzmacher
96f60a37f6 r17273: add an async version of auth_check_password() on the public
auth interface and implement the sync version as wrapper
to auth_check_password_send/recv()

as next all callers need to be converted to the async interface
and then the modules

metze
(This used to be commit ed40bb3c16)
2007-10-10 14:10:26 -05:00
Stefan Metzmacher
de4c2bbc6c r17272: move the callback stuff into a substructure
metze
(This used to be commit c49e27d5d0)
2007-10-10 14:10:26 -05:00
Stefan Metzmacher
e8623667d3 r17270: split the logic of saying this auth backend wants to handle this
request from the password checking. This will help to make
the password checking hook async later

metze
(This used to be commit 5b26cbc342)
2007-10-10 14:10:25 -05:00
Stefan Metzmacher
64d6abac74 r17267: - add an async interface for gensec_update() to the public gensec api
- note this is still uses the sync update() hook of the gensec modules
  but it allows me to fix the callers first

Later auth_check_password() will also get an async version,
so that we can later implement an async version of auth_winbind
using async IRPC to the winbind task.

metze
(This used to be commit d5638a4faf)
2007-10-10 14:10:25 -05:00
Andrew Bartlett
1ea4f560fc r17223: In some protocols it is not possible to negoitate off some features,
without the agreement of the peer.  This can cause problems, because
one side things sealing is disabled, while the other thinks it is
enabled.

Andrew Bartlett
(This used to be commit 68ddc4921f)
2007-10-10 14:10:20 -05:00