1
0
mirror of https://github.com/samba-team/samba.git synced 2025-06-17 15:17:09 +03:00

24406 Commits

Author SHA1 Message Date
Jeremy Allison
201bcc8ed2 Memory leak fixes from Chere Zhou <czhou@isilon.com>.
Jeremy.
2008-05-27 12:27:57 -07:00
Jeremy Allison
7eeed8bb41 Allow server manager to close open files selected by id.
Jeremy.
2008-05-27 11:25:46 -07:00
Günther Deschner
7c1f36d84a wbinfo: prompt for password when none has been given.
Guenther
2008-05-27 16:48:03 +02:00
Günther Deschner
895036829c drsuapi: fix data_blob_free() caller (this call is quite different in s3 and 4).
Guenther
2008-05-27 16:47:42 +02:00
Günther Deschner
83c4a278df libwbclient: fix typo.
Guenther
2008-05-27 16:47:06 +02:00
Günther Deschner
355fb81e9e dsgetdcname: use family (instead of sa_family).
Guenther
2008-05-27 11:40:50 +02:00
Günther Deschner
b2cdf0f5d0 re-run make idl.
Guenther
2008-05-27 11:40:32 +02:00
Günther Deschner
64815c0855 idl: avoid sa_family as it its a macro on IRIX.
Guenther
2008-05-27 11:38:53 +02:00
Günther Deschner
017ad275e5 doserr: add WERR_REVISION_MISMATCH.
Guenther
2008-05-27 11:01:30 +02:00
Michael Adam
28d1972200 loadparm: fix process_registry_shares() when there is only [global] in registry.
This fixes testparm printing "Error loading services." when there is only
the global section in registry and no other service definition.

Michael
2008-05-27 11:00:30 +02:00
Jeremy Allison
5d22ca00bc Re-enable the evil "aio write behind" parameter.
Jeremy.
2008-05-26 21:13:05 -07:00
Michael Adam
0a24c038b7 Remove unused function is_trusted_domain_situation().
This combined check has been replaced by is_dc_trusted_domain_situation()
which does not check for lp_allow_trusted_domains().

Michael
2008-05-26 16:42:25 +02:00
Michael Adam
a5a51ca8e5 winbind: correctly omit check for trusted domain support in cm_prepare_connection
when checking for a trusted domain situation.
This is how it was meant to be:

Otherwise, with a dc-trusted-domain situation but trusted domains disabled,
we would attempt to do a session setup and fail (wouldn't even get a trust
password).

Michael
2008-05-26 16:42:25 +02:00
Michael Adam
aa1b8287f4 passdb: check for is_dc_trusted_domain_situation() in get_trust_pw_hash().
Before fetching legacy password hash, check for trusted domain situation,
but also fail if trusted domain support is not enabled.

Michael
2008-05-26 16:42:24 +02:00
Michael Adam
5f197c659e passdb: add comment explaining logic in get_trust_pw_clear().
Michael
2008-05-26 16:42:24 +02:00
Michael Adam
0b26bcd3be passdb: in get_trust_pw_clear() correctly fail if trusted domains not supported
(but trusted domain situation was found)

This completes the fix for bugs #5425 and #5451 by Steven Dannemann,
in that now no special cases are left uncovered.

Michael
2008-05-26 16:42:24 +02:00
Michael Adam
a284c88435 Add function is_dc_trusted_domain_situation().
This is like is_trusted_domain_situation() except that it does not
check for lp_allow_trusted_domains().

Michael
2008-05-26 16:42:24 +02:00
Günther Deschner
1e883c88cb rpcclient: add drsuapi dsgetdcinfo call.
Guenther
2008-05-26 12:21:11 +02:00
Günther Deschner
d70376fc4f rpcclient: call drsuapi_DsUnbind() when finished with DsCrackNames call.
Guenther
2008-05-26 12:21:11 +02:00
Günther Deschner
d68dcc99c7 re-run make idl.
Guenther
2008-05-26 12:21:11 +02:00
Günther Deschner
0e77e71ec3 idl: add drsuapi_DsGetDCInfoCtr3 used by w2k8.
Guenther
2008-05-26 12:21:11 +02:00
Günther Deschner
5611cf4253 rpcclient: simplify drsuapi dscracknames call slightly.
Guenther
2008-05-26 12:21:11 +02:00
Michael Adam
5e2b925367 loadarm: fix testparm with "config backend = registry".
Set the iServiceIndex to "-1" for starup with either config
backend (originally only for text backend). Otherwise,
process_registry_shares() will fail.

Currently, the only user of lp_load_with_registry_shares() is testparm.

Michael
2008-05-26 12:00:13 +02:00
Volker Lendecke
3b1dae7c31 Fix two c++ warnings 2008-05-25 13:53:45 +02:00
Volker Lendecke
194ea682d9 Fix two bogus uninitalized variable warnings 2008-05-25 13:53:44 +02:00
Volker Lendecke
d893b2ea13 Fix a const warning
Jelmer, would it be possible to make the rpc client functions take const
pointers for pure [in] arguments?
2008-05-25 13:53:44 +02:00
Volker Lendecke
2dbbd81677 Move ber_[read|write]_OID_String protypes to proto.h 2008-05-25 13:53:43 +02:00
Volker Lendecke
344d69f95e Remove some references to get_current_username() and current_user_info 2008-05-25 11:43:57 +02:00
Volker Lendecke
17b0db20d2 Remove the reference to current_user_info from share_access.c
This required to pass around the domain a bit
2008-05-25 11:43:57 +02:00
Volker Lendecke
f52d7c3fab Remove reference to current_user_info from lanman.c 2008-05-25 11:43:56 +02:00
Volker Lendecke
c1e115964b Remove stuff from client_proto.h 2008-05-25 11:43:56 +02:00
Michael Adam
534e87de2e build: combine LIB_WITHOUT_PROTO_OBJ and LIB_WITH_PROTO_OBJ into LIB_OBJ
No need for this split any more.

Michael
2008-05-24 01:51:07 +02:00
Michael Adam
3bb1c07890 build: remove PROTO_OBJ from Makefile.in - it is not needed any more
Michael
2008-05-24 01:44:25 +02:00
Michael Adam
73eb8b7386 rpc_open_tcp: now drsuapi is complete, we can use it in the test program.
Michael
2008-05-24 01:33:52 +02:00
Günther Deschner
b243a03602 drsuapi: always use tcp for drsuapi.
cli_rpc_pipe_open() now uses tcp transport for drsuapi and named pipe
transport for all other pipes.

This finally allows rpcclient to call dscracknames on windows
(don't forget to call "seal" in advance).

Guenther
2008-05-24 01:29:13 +02:00
Günther Deschner
bd13c87bac drsuapi: add very basic drsuapi rpcclient command set.
Guenther
2008-05-24 01:28:22 +02:00
Günther Deschner
92412648c3 drsuapi: fix the build.
Guenther
2008-05-24 01:25:30 +02:00
Günther Deschner
f853f3b0ac Revert "drsuapi: fix the build."
This reverts commit b2421c81164da2a5ea4bb2391e4f2c410938db42.
2008-05-24 01:24:03 +02:00
Günther Deschner
b2421c8116 drsuapi: fix the build.
Guenther
2008-05-24 00:58:45 +02:00
Günther Deschner
7c93190843 drsuapi: add all code required for our drsuapi rpc client.
Guenther
2008-05-23 23:56:21 +02:00
Gerald W. Carter
b78b14c88e Manually merge Steven Danneman's patch for SPNEGO auth to a trusted
Win2008 domain (merged from v3-0-test).

   commit 8dc4e979776aae0ecaa74b51dc1eac78a7631405
   Author: Steven Danneman <sdanneman@isilon.com>
   Date:   Wed May 7 13:34:26 2008 -0700

      spnego SPN fix when contacting trusted domains

      cli_session_setup_spnego() was not taking into consideration the situation
      where we're connecting to a trusted domain, specifically one (like W2K8)
      which doesn't return a SPN in the NegTokenInit.

      This caused two problems:

      1) When guessing the SPN using kerberos_get_default_realm_from_ccache() we
      were always using our default realm, not the realm of the domain we're
      connecting to.

      2) When falling back on NTLMSSP for authentication we were passing the name
      of the domain we're connecting to for use in our credentials when we should be
      passing our own workgroup name.

      The fix for both was to split the single "domain" parameter into
      "user_domain" and "dest_realm" parameters.  We use the "user_domain"
      parameter to pass into the NTLM call, and we used "dest_realm" to create an SPN
      if none was returned in the NegTokenInit2 packet.  If no "dest_realm" is
      provided we assume we're connecting to our own domain and use the credentials
      cache to build the SPN.

      Since we have a reasonable guess at the SPN, I removed the check that defaults
      us directly to NTLM when negHint is empty.
2008-05-23 16:01:45 -05:00
Gerald W. Carter
69b37ae607 Manually port Steven Dannenman fix for using the correct machine domain when
looking up trust credentials in our tdb.

   commit fd0ae47046d37ec8297396a2733209c4d999ea91
   Author: Steven Danneman <sdanneman@isilon.com>
   Date:   Thu May 8 13:34:49 2008 -0700

      Use machine account and machine password from our domain when
      contacting trusted domains.
2008-05-23 15:19:58 -05:00
Stefan Metzmacher
36ba31e39b build: make sure LIBWBCLIENT_*_TARGET is never empty
This should fix the build with non gnu make

metze
(cherry picked from commit 401a0c84fe5f60e57e95331805da6b53dd1d7c2e)
2008-05-23 17:23:46 +02:00
Stefan Metzmacher
196d901762 libwbclient: add wbcLibraryDetails()
metze
(cherry picked from commit b68916328e935e61840cb03560ebeeee15bb2c6f)
2008-05-23 17:19:58 +02:00
Stefan Metzmacher
e7dcbf56ae libwbclient: rename MAXSUBAUTHS => WBC_MAXSUBAUTHS
metze
(cherry picked from commit 04d465c622c614bec29f24793ae897a73bcb51f4)
2008-05-23 17:19:57 +02:00
Stefan Metzmacher
a739652d94 build: add symbol versioning when we build with gnu ld
There's --enable-symbol-versioning=no to disable it.

metze
(cherry picked from commit cb5492978b6b157f529806afb2f5fc6202888129)
2008-05-23 17:19:57 +02:00
Stefan Metzmacher
17ce137754 build: autogenerate exports/libwbclient.syms
metze
(cherry picked from commit 8e0fcd583a643a8f4240698efcbb177463534a82)
2008-05-23 17:19:56 +02:00
Stefan Metzmacher
dc0a4f7dc5 build: autogenerate exports/libtalloc.syms
metze
(cherry picked from commit ce9d8ea9818d91bd91f95149f3b0a7ed4f2dae3b)
2008-05-23 17:19:56 +02:00
Stefan Metzmacher
3bf5a047e3 build: pass .syms extention via @SYMSEXT@ from configure
metze
(cherry picked from commit efb23fdce72db48b4c149fb3dd4a6f4aa3eebbbe)
2008-05-23 17:19:55 +02:00
Volker Lendecke
6106d48a5c Fix a (bogus) uninitialized variable warning 2008-05-23 15:37:05 +02:00