1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-25 06:04:04 +03:00

28747 Commits

Author SHA1 Message Date
Jeremy Allison
d5d4a9511d Memory leak fixes from Chere Zhou <czhou@isilon.com>.
Jeremy.
(This used to be commit 201bcc8ed291b51be6f4508c6aa1cb17ce6dcbe3)
2008-05-27 12:27:57 -07:00
Jeremy Allison
6811dc3fc2 Allow server manager to close open files selected by id.
Jeremy.
(This used to be commit 7eeed8bb41059ec2bddedb6a71deddeec7f33af2)
2008-05-27 11:25:46 -07:00
Gerald (Jerry) Carter
7df9e11f15 Remove autogenerated html file form using_samba
(This used to be commit 94090f196a400651314530324e86c374f5a05657)
2008-05-27 12:33:02 -05:00
Gerald (Jerry) Carter
e1cf19b2d8 Adding initial copy of "Using Samba (3rd ed)"
(This used to be commit b77c46a36366d25dcdbc476963fbf43aaa4b9801)
2008-05-27 12:02:43 -05:00
Gerald (Jerry) Carter
9acd33131c Add simple script to build docs
(This used to be commit 0865f4615d3ee91673dd6d02c6537765f34b3129)
2008-05-27 12:02:41 -05:00
Jelmer Vernooij
5f6d0078d4 Depend on latexfigures files directly as using a rule in between causes problems.
(This used to be commit bf3c2773f94c1db29a8a3e5935ff587f16f9a905)
2008-05-27 18:40:14 +02:00
Gerald (Jerry) Carter
55da8e64e5 Work around iconv conversion failure from generated smb.conf.5 on Ubuntu 8.04.
Have no idea why the previous sequence of characters was causing
iconv to choke on my Ubuntu 8.04.  Reword the entry some
for clarity and to advoid this failure.
(cherry picked from commit b0b4bd2466658deacb1de3d58154bcc8d198d675)
(This used to be commit 4d89c39f267a5623f7050ff8db94bcdd191fca23)
2008-05-27 10:51:24 -05:00
Günther Deschner
b7f745b200 wbinfo: prompt for password when none has been given.
Guenther
(This used to be commit 7c1f36d84a4c5779ea86923be69e209d0c9c0943)
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 895036829c137558f7c03c31a8747a51fd290d18)
2008-05-27 16:47:42 +02:00
Günther Deschner
b7ef085072 libwbclient: fix typo.
Guenther
(This used to be commit 83c4a278dfefcef14a9640d319ddf5c7392cd16e)
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 355fb81e9e42e507717f33a11793258db9169199)
2008-05-27 11:40:50 +02:00
Günther Deschner
861bb16dba re-run make idl.
Guenther
(This used to be commit b2cdf0f5d04c241791c1462d1b86c587156ac0c7)
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 64815c08558c73bbffeb2fdfc0d5850c4ebf8405)
2008-05-27 11:38:53 +02:00
Günther Deschner
372a6c0360 doserr: add WERR_REVISION_MISMATCH.
Guenther
(This used to be commit 017ad275e51ff2d9ddfb4390979f16868f3e6a3f)
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 28d197220038b9a47af177b88a8587f865e45de5)
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 5d22ca00bcdf49dcb35468400ac8cc3c57808d0d)
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 0a24c038b7bc6edef0021eb121a072cc7e8f9165)
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 a5a51ca8e5971992d9b060d66201b808bd2b7a53)
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 aa1b8287f44f47f23bd4158112d0a132df04426c)
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 5f197c659e9c8a573ba5032c7f90c816df45770c)
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 0b26bcd3becb869319bca48bbf244c18b6e8e3dd)
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 a284c8843528972904d142b573f1170a08c97751)
2008-05-26 16:42:24 +02:00
Günther Deschner
09f55d0ef6 rpcclient: add drsuapi dsgetdcinfo call.
Guenther
(This used to be commit 1e883c88cb667a1485de8e8bbaebb43542f43065)
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 d70376fc4faaf9a55337c57035e42afa6a007d1a)
2008-05-26 12:21:11 +02:00
Günther Deschner
db940dbbbb re-run make idl.
Guenther
(This used to be commit d68dcc99c715f9fc1a39f280d76ba21a1fd24e88)
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 0e77e71ec3bf6115fa2b6ea74502bdc02b037ab6)
2008-05-26 12:21:11 +02:00
Günther Deschner
b83131a16f rpcclient: simplify drsuapi dscracknames call slightly.
Guenther
(This used to be commit 5611cf42530072bc244a7bed258d3ac959bd0b65)
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 5e2b925367241c41793b2eb7a628e9fc9f3ac8ff)
2008-05-26 12:00:13 +02:00
Volker Lendecke
1a1fc2f814 Fix two c++ warnings
(This used to be commit 3b1dae7c31b881834ca4494c4434ae97a56ce6c7)
2008-05-25 13:53:45 +02:00
Volker Lendecke
aacfa7b3ad Fix two bogus uninitalized variable warnings
(This used to be commit 194ea682d9a5c12a0125fecc20349ca9cc3d3ea1)
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 d893b2ea13d2e64f1c13aa3984f77baa91a2c658)
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 2dbbd81677af9c470ee9370ca5414876d21c6b9b)
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 344d69f95e217d16213eaa6b53141af6ab459708)
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 17b0db20d28d1b737c5e86b78106657e8ca5ce9c)
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 f52d7c3faba4aa815d95883775f4859251406161)
2008-05-25 11:43:56 +02:00
Volker Lendecke
37aaa8d8f9 Remove stuff from client_proto.h
(This used to be commit c1e115964b671802a4af5beab3ad3222ee17b9c0)
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 534e87de2eed10db0c8fc5dd8ab7dd2621b09408)
2008-05-24 01:51:07 +02:00
Michael Adam
06481e72f2 Add generated library symbols files to .gitignore
Michael
(This used to be commit 14635b2684d9167fb59193cfd225925dd3baac3f)
2008-05-24 01:49:51 +02:00
Michael Adam
af78d91d92 build: remove PROTO_OBJ from Makefile.in - it is not needed any more
Michael
(This used to be commit 3bb1c07890c01303e83a900c58651a990b19fc85)
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 73eb8b7386109c72b13f8d7b5ff5db9baaef280d)
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 b243a036026e79b8d3fb75bf7f7d59a27cb813af)
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 bd13c87bac54d4bbae7b3cd7c9dc991d143d4d89)
2008-05-24 01:28:22 +02:00
Günther Deschner
d823940f91 drsuapi: fix the build.
Guenther
(This used to be commit 92412648c3fc18ba0bfc56b76c6d3816f627628f)
2008-05-24 01:25:30 +02:00
Günther Deschner
36f67dc5e0 Revert "drsuapi: fix the build."
This reverts commit b2421c81164da2a5ea4bb2391e4f2c410938db42.
(This used to be commit f853f3b0aceb7e8454f9f7de38237eecec4317fd)
2008-05-24 01:24:03 +02:00
Günther Deschner
0eae576b19 drsuapi: fix the build.
Guenther
(This used to be commit b2421c81164da2a5ea4bb2391e4f2c410938db42)
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 7c93190843e77764be4d0f6d4f0b93061c192c98)
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 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.
(This used to be commit b78b14c88e8354aadf9ba7644bdb1c29245fe419)
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 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.
(This used to be commit 69b37ae60757075a0712149c5f97f17ee22c2e41)
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 401a0c84fe5f60e57e95331805da6b53dd1d7c2e)
(This used to be commit 36ba31e39b28e5495b0aeb8638df3a10ce6c51e6)
2008-05-23 17:23:46 +02:00
Stefan Metzmacher
cfae28c268 libwbclient: add wbcLibraryDetails()
metze
(cherry picked from commit b68916328e935e61840cb03560ebeeee15bb2c6f)
(This used to be commit 196d9017627220786d8b726dc0d02e16e96c4c05)
2008-05-23 17:19:58 +02:00