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

24405 Commits

Author SHA1 Message Date
Jeremy Allison
6811dc3fc2 Allow server manager to close open files selected by id.
Jeremy.
(This used to be commit 7eeed8bb41)
2008-05-27 11:25:46 -07:00
Günther Deschner
b7f745b200 wbinfo: prompt for password when none has been given.
Guenther
(This used to be commit 7c1f36d84a)
2008-05-27 16:48:03 +02:00
Günther Deschner
7cc9b5c5a1 drsuapi: fix data_blob_free() caller (this call is quite different in s3 and 4).
Guenther
(This used to be commit 895036829c)
2008-05-27 16:47:42 +02:00
Günther Deschner
b7ef085072 libwbclient: fix typo.
Guenther
(This used to be commit 83c4a278df)
2008-05-27 16:47:06 +02:00
Günther Deschner
c73cc63e92 dsgetdcname: use family (instead of sa_family).
Guenther
(This used to be commit 355fb81e9e)
2008-05-27 11:40:50 +02:00
Günther Deschner
861bb16dba re-run make idl.
Guenther
(This used to be commit b2cdf0f5d0)
2008-05-27 11:40:32 +02:00
Günther Deschner
329d770b3b idl: avoid sa_family as it its a macro on IRIX.
Guenther
(This used to be commit 64815c0855)
2008-05-27 11:38:53 +02:00
Günther Deschner
372a6c0360 doserr: add WERR_REVISION_MISMATCH.
Guenther
(This used to be commit 017ad275e5)
2008-05-27 11:01:30 +02:00
Michael Adam
2f446d9e55 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
(This used to be commit 28d1972200)
2008-05-27 11:00:30 +02:00
Jeremy Allison
ae51353107 Re-enable the evil "aio write behind" parameter.
Jeremy.
(This used to be commit 5d22ca00bc)
2008-05-26 21:13:05 -07:00
Michael Adam
6cebad5b67 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
(This used to be commit 0a24c038b7)
2008-05-26 16:42:25 +02:00
Michael Adam
c5a030a38a 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
(This used to be commit a5a51ca8e5)
2008-05-26 16:42:25 +02:00
Michael Adam
6efce4738f 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
(This used to be commit aa1b8287f4)
2008-05-26 16:42:24 +02:00
Michael Adam
48026d814b passdb: add comment explaining logic in get_trust_pw_clear().
Michael
(This used to be commit 5f197c659e)
2008-05-26 16:42:24 +02:00
Michael Adam
a186e598c4 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
(This used to be commit 0b26bcd3be)
2008-05-26 16:42:24 +02:00
Michael Adam
4de01a909a 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
(This used to be commit a284c88435)
2008-05-26 16:42:24 +02:00
Günther Deschner
09f55d0ef6 rpcclient: add drsuapi dsgetdcinfo call.
Guenther
(This used to be commit 1e883c88cb)
2008-05-26 12:21:11 +02:00
Günther Deschner
6db0efbea0 rpcclient: call drsuapi_DsUnbind() when finished with DsCrackNames call.
Guenther
(This used to be commit d70376fc4f)
2008-05-26 12:21:11 +02:00
Günther Deschner
db940dbbbb re-run make idl.
Guenther
(This used to be commit d68dcc99c7)
2008-05-26 12:21:11 +02:00
Günther Deschner
51912e551e idl: add drsuapi_DsGetDCInfoCtr3 used by w2k8.
Guenther
(This used to be commit 0e77e71ec3)
2008-05-26 12:21:11 +02:00
Günther Deschner
b83131a16f rpcclient: simplify drsuapi dscracknames call slightly.
Guenther
(This used to be commit 5611cf4253)
2008-05-26 12:21:11 +02:00
Michael Adam
33f632b8b5 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
(This used to be commit 5e2b925367)
2008-05-26 12:00:13 +02:00
Volker Lendecke
1a1fc2f814 Fix two c++ warnings
(This used to be commit 3b1dae7c31)
2008-05-25 13:53:45 +02:00
Volker Lendecke
aacfa7b3ad Fix two bogus uninitalized variable warnings
(This used to be commit 194ea682d9)
2008-05-25 13:53:44 +02:00
Volker Lendecke
f1d160f333 Fix a const warning
Jelmer, would it be possible to make the rpc client functions take const
pointers for pure [in] arguments?
(This used to be commit d893b2ea13)
2008-05-25 13:53:44 +02:00
Volker Lendecke
5b237b8d30 Move ber_[read|write]_OID_String protypes to proto.h
(This used to be commit 2dbbd81677)
2008-05-25 13:53:43 +02:00
Volker Lendecke
50ab871813 Remove some references to get_current_username() and current_user_info
(This used to be commit 344d69f95e)
2008-05-25 11:43:57 +02:00
Volker Lendecke
320fadd8fc Remove the reference to current_user_info from share_access.c
This required to pass around the domain a bit
(This used to be commit 17b0db20d2)
2008-05-25 11:43:57 +02:00
Volker Lendecke
f4d8141174 Remove reference to current_user_info from lanman.c
(This used to be commit f52d7c3fab)
2008-05-25 11:43:56 +02:00
Volker Lendecke
37aaa8d8f9 Remove stuff from client_proto.h
(This used to be commit c1e115964b)
2008-05-25 11:43:56 +02:00
Michael Adam
c5d3fb7062 build: combine LIB_WITHOUT_PROTO_OBJ and LIB_WITH_PROTO_OBJ into LIB_OBJ
No need for this split any more.

Michael
(This used to be commit 534e87de2e)
2008-05-24 01:51:07 +02:00
Michael Adam
af78d91d92 build: remove PROTO_OBJ from Makefile.in - it is not needed any more
Michael
(This used to be commit 3bb1c07890)
2008-05-24 01:44:25 +02:00
Michael Adam
50b5a7dc62 rpc_open_tcp: now drsuapi is complete, we can use it in the test program.
Michael
(This used to be commit 73eb8b7386)
2008-05-24 01:33:52 +02:00
Günther Deschner
1a16a2cf97 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
(This used to be commit b243a03602)
2008-05-24 01:29:13 +02:00
Günther Deschner
fb05d41cb7 drsuapi: add very basic drsuapi rpcclient command set.
Guenther
(This used to be commit bd13c87bac)
2008-05-24 01:28:22 +02:00
Günther Deschner
d823940f91 drsuapi: fix the build.
Guenther
(This used to be commit 92412648c3)
2008-05-24 01:25:30 +02:00
Günther Deschner
36f67dc5e0 Revert "drsuapi: fix the build."
This reverts commit b2421c8116.
(This used to be commit f853f3b0ac)
2008-05-24 01:24:03 +02:00
Günther Deschner
0eae576b19 drsuapi: fix the build.
Guenther
(This used to be commit b2421c8116)
2008-05-24 00:58:45 +02:00
Günther Deschner
6b3bcb3724 drsuapi: add all code required for our drsuapi rpc client.
Guenther
(This used to be commit 7c93190843)
2008-05-23 23:56:21 +02:00
Gerald W. Carter
4d2f71e53f Manually merge Steven Danneman's patch for SPNEGO auth to a trusted
Win2008 domain (merged from v3-0-test).

   commit 8dc4e97977
   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.
(This used to be commit b78b14c88e)
2008-05-23 16:01:45 -05:00
Gerald W. Carter
b72fc49f44 Manually port Steven Dannenman fix for using the correct machine domain when
looking up trust credentials in our tdb.

   commit fd0ae47046
   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.
(This used to be commit 69b37ae607)
2008-05-23 15:19:58 -05:00
Stefan Metzmacher
ad90333e89 build: make sure LIBWBCLIENT_*_TARGET is never empty
This should fix the build with non gnu make

metze
(cherry picked from commit 401a0c84fe)
(This used to be commit 36ba31e39b)
2008-05-23 17:23:46 +02:00
Stefan Metzmacher
cfae28c268 libwbclient: add wbcLibraryDetails()
metze
(cherry picked from commit b68916328e)
(This used to be commit 196d901762)
2008-05-23 17:19:58 +02:00
Stefan Metzmacher
532833de24 libwbclient: rename MAXSUBAUTHS => WBC_MAXSUBAUTHS
metze
(cherry picked from commit 04d465c622)
(This used to be commit e7dcbf56ae)
2008-05-23 17:19:57 +02:00
Stefan Metzmacher
7abda3fb9d build: add symbol versioning when we build with gnu ld
There's --enable-symbol-versioning=no to disable it.

metze
(cherry picked from commit cb5492978b)
(This used to be commit a739652d94)
2008-05-23 17:19:57 +02:00
Stefan Metzmacher
3d6911afca build: autogenerate exports/libwbclient.syms
metze
(cherry picked from commit 8e0fcd583a)
(This used to be commit 17ce137754)
2008-05-23 17:19:56 +02:00
Stefan Metzmacher
76b04f98fa build: autogenerate exports/libtalloc.syms
metze
(cherry picked from commit ce9d8ea981)
(This used to be commit dc0a4f7dc5)
2008-05-23 17:19:56 +02:00
Stefan Metzmacher
ef0dd8850b build: pass .syms extention via @SYMSEXT@ from configure
metze
(cherry picked from commit efb23fdce7)
(This used to be commit 3bf5a047e3)
2008-05-23 17:19:55 +02:00
Volker Lendecke
34104dfc21 Fix a (bogus) uninitialized variable warning
(This used to be commit 6106d48a5c)
2008-05-23 15:37:05 +02:00
Michael Adam
7322072962 build: add a "make shlibs" target to build all the shared libraries.
Michael
(This used to be commit 5a99f59d75)
2008-05-23 13:42:40 +02:00