1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-01 21:18:10 +03:00
Commit Graph

28720 Commits

Author SHA1 Message Date
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
06481e72f2 Add generated library symbols files to .gitignore
Michael
(This used to be commit 14635b2684)
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 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
Stefan Metzmacher
9301310ea7 build: autogenerate exports/libnetapi.syms
metze
(cherry picked from commit dc09e04d52)
(This used to be commit c3797d6a2c)
2008-05-23 08:54:45 +02:00
Jeremy Allison
d83931cb6e Remove MAX_SESS_ENTRIES and MAX_CONN_ENTRIES limits
as they are no longer needed now we have IDL marshalling.
Change the calculation of the 32-bit fileid we return
to a Windows client. We can't just use the generation
count as it starts at zero for every smbd - and this
command must enumerate all files open across all smbds.
We'd really like combination of process-id + dev + inode +
generation count to be unique, but as we can't fit that
into 32 bits just use 16 bits of pid + generation count.
Jeremy.
(This used to be commit 8b926d5a93)
2008-05-22 16:23:07 -07:00
Jeremy Allison
508d0310e7 Revert "Arggh. Got the path/user the wrong way around. IDL is correct :-)."
This reverts commit 1078b5c53a.

This message doesn't match the actual change.
(This used to be commit a65abb49cf)
2008-05-22 16:20:25 -07:00
Jeremy Allison
8c926ed0ea Arggh. Got the path/user the wrong way around. IDL is correct :-).
Jeremy.
(This used to be commit 1078b5c53a)
2008-05-22 16:19:26 -07:00
Jeremy Allison
ac65ed4aad Arggh. Got the path/user the wrong way around. IDL is correct :-).
Jeremy.
(This used to be commit 2281274480)
2008-05-22 14:36:09 -07:00
Jeremy Allison
537dc11bf4 Fix 2 bugs with displaying open file state. Firstly
the IDL is documented incorrectly in the MS-DOCS.
Username and path need to be reversed (yes I will
raise this with MS). Secondly, we need to check
access_mask for the permissions, not share_access
(share_access are the deny modes).
Jeremy.
(This used to be commit bdaad19f90)
2008-05-22 14:28:13 -07:00
Jeremy Allison
cfde5c8d47 Get rid of "shadowed local var" warnings with gcc.
Jeremy.
(This used to be commit 0bc18967aa)
2008-05-22 14:19:14 -07:00
Steven Danneman
96653e1ff7 Make WINBINDD_LIST_GROUPS handler asynchronous.
Previously WINBINDD_LIST_GROUPS requests (ex: wbinfo -g) were handled by the
winbindd parent process in a sequential fashion.  This patch, delegates the work
to the winbindd children so that the request is handled much faster in large
domain topologies, and doesn't block the parent from receiving new requests.

The core group enumeration and conversion that was handled in
winbindd_list_groups() has been moved into winbindd_dual_list_groups() to be
done by the child.

The parent winbindd_list_groups() simply calls each of the children
asynchronously.

listgroups_recv() aggregates the final group list that will be returned to the
client and tracks how many of the children have returned their lists.

The domain name of the child is passed back through the callbacks to be used in
debugging messages.

There are also several fixes to typos in various comments.
(This used to be commit 037b9689d9)
2008-05-22 13:55:57 -05:00
Stefan Metzmacher
f6a70e0249 library-versions: use the same version for talloc and tdb as for the standalone builds
metze
(This used to be commit 87fa2f4a28)
2008-05-22 16:16:47 +02:00
Stefan Metzmacher
b54f34bb33 libreplace: we need to use AC_TRY_LINK() to make sure HAVE_IPV6 is correctly detected
metze
(cherry picked from commit 84b5652d3e)
(This used to be commit b28b63c911)
2008-05-22 15:04:32 +02:00
Stefan Metzmacher
033ec7fbf5 configure: samba_cv_unixsocket was renamed into libreplace_cv_HAVE_UNIXSOCKET
metze
(This used to be commit d53b589deb)
2008-05-22 13:02:59 +02:00
Stefan Metzmacher
3b6b2f26fc configure: remove HAVE_IPV6 test as LIBREPLACE_NETWORK_CHECKS already have this
metze
(This used to be commit e94ff756be)
2008-05-22 13:02:59 +02:00
Stefan Metzmacher
5797e33b81 libreplace: add test for HAVE_IPV6
Samba can later just check libreplace_cv_HAVE_IPV6 = yes.

metze
(cherry picked from commit e835e7eebc)
(This used to be commit 1ca4508f3a)
2008-05-22 13:02:58 +02:00
Michael Adam
a8045b1339 rpc_client: make rpc_pipe_open_tcp_port and rpc_pipe_get_tcp_port static.
Slim the interface...

Michael
(This used to be commit 9971118c23)
2008-05-22 11:30:04 +02:00
Michael Adam
5a2206f254 torture: add a test program rpc_open_tcp() to test the rpc_pipe_open_tcp() func.
This is still very raw and has yet to be integrated into the test suite.

Michael
(This used to be commit 3ec3ab4e53)
2008-05-22 11:30:03 +02:00
Michael Adam
b398a96b09 rpc_client: use endpoint mapper to get the port for rpc_pipe_open_tcp().
Michael
(This used to be commit f7db445c82)
2008-05-22 11:29:57 +02:00
Kai Blin
59a6b2df74 client: Fix the proto header to fix the build.
(This used to be commit 9e39ac1cc3)
2008-05-22 09:43:50 +02:00
Volker Lendecke
44fbd895e8 Compile endpoint mapper pidl output
(This used to be commit fe8f9e427a)
2008-05-21 23:35:26 +02:00
Volker Lendecke
36e94197d0 rpc_client: add a destructor to close the socket for pipes over tcp.
used in rpc_pipe_open_tcp() and rpc_pipe_open_ncalrpc().
(This used to be commit a0bdd56c75)
2008-05-21 23:35:26 +02:00
Volker Lendecke
e8d25443c1 Add client support for NCACN_UNIX_STREAM
(This used to be commit 24ac40518f)
2008-05-21 23:35:25 +02:00