Jelmer Vernooij
9ee1e1f0ac
cli-raw: Add public libsmbclient-raw library.
2011-08-18 14:19:18 +02:00
Jelmer Vernooij
7524413751
cli_raw: Make name lowercase.
...
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sat Jul 23 23:20:51 CEST 2011 on sn-devel-104
2011-07-23 23:20:51 +02:00
Andrew Bartlett
907cdb5de7
s4-modules Remove lp_ctx from init functions that no longer need it
...
Now that we don't allow the smb.conf to change the modules dir, many
functions that simply load modules or initialise a subsytem that may
load modules no longer need an lp_ctx.
Andrew Bartlett
2011-06-06 17:37:51 +10:00
Andrew Bartlett
3892112e7b
lib/util Rename ms_fnmatch() to ms_fnmatch_protocol() to avoid dup symbol
...
This verison of the function takes a protcol as argument to determine
matching rules.
Andrew Bartlett
2011-05-06 07:51:24 +02:00
Jeremy Allison
017e0c8d95
Fix simple uses of safe_strcpy -> strlcpy. Easy ones where we just remove -1.
2011-05-04 12:12:13 -07:00
Andrew Bartlett
2742ec0e34
Remove strlower_m() and strupper_m() from source4 and common code.
...
This function is problematic because a string may expand in size when
changed into upper or lower case. This will then push characters off
the end of the string in the s3 implementation, or panic in the former
s4 implementation.
Andrew Bartlett
2011-05-03 07:37:07 +02:00
Andrew Bartlett
bcd68837ee
lib/util Rename conv_str_size() -> conv_str_size_error()
2011-04-30 10:38:25 +02:00
Andrew Bartlett
4fd6ebf544
selftest: Remove duplication between BUILDIR and BINDIR
...
Just have BINDIR, and have it default to ./bin
Andrew Bartlett
2011-04-16 11:43:04 +02:00
Andrew Bartlett
22d67758ef
s4-tests Workaround new default of 'client ntlmv2 auth = yes' in tests
...
The new default breaks some tests that were assuming LM or NTLM auth
Andrew Bartlett
2010-12-09 18:01:56 +11:00
Matthias Dieter Wallnöfer
0c8cf666fc
s4:client/client.c - fix Solaris warning by a type cast
2010-12-06 11:28:58 +01:00
Jelmer Vernooij
3deece5591
s4: Remove the old perl/m4/make/mk-based build system.
...
The new waf-based build system now has all the same functionality, and
the old build system has been broken for quite some time.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sun Oct 31 02:01:44 UTC 2010 on sn-devel-104
2010-10-31 02:01:44 +00:00
Jelmer Vernooij
8cf61377aa
waf: Remove lib prefix from libraries manually.
2010-10-26 10:17:17 -07:00
Jelmer Vernooij
833480d3ad
s4: Rename LIBSAMBA-* to libsamba-*
2010-10-24 00:20:04 +00:00
Günther Deschner
0ff7e0c998
samba: share readline wrappers among all buildsystems.
...
Guenther
2010-10-01 22:30:22 +02:00
Matthias Dieter Wallnöfer
07af8f2514
s4:client/client.c - fix wrong return codes in "do_connect"
...
Detected by the Solaris cc compiler.
2010-09-10 22:45:50 +02:00
Matthias Dieter Wallnöfer
c82bcef16d
s4:client/cifsdd.c - restore Solaris cc compatibility
...
"static const struct"s need to be global in order to work with Solaris cc.
2010-09-09 21:29:21 +02:00
Andrew Tridgell
6b266b85cf
s4-loadparm: 2nd half of lp_ to lpcfg_ conversion
...
this converts all callers that use the Samba4 loadparm lp_ calling
convention to use the lpcfg_ prefix.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-16 18:24:27 +10:00
Matthias Dieter Wallnöfer
76f804af10
s4:client/client.c - we don't need "&ctx" for talloc calls
...
Simply use "ctx".
2010-05-28 10:39:54 +02:00
Matthias Dieter Wallnöfer
3318459fdc
s4:client/client.c - fix "asprintf"s
...
Fix the result values or change them into "talloc_asprintf"s where possible
see bug #6404
2010-05-28 10:04:45 +02:00
Jelmer Vernooij
f9ca9e46ad
Finish removal of iconv_convenience in public API's.
2010-05-18 11:45:30 +02:00
Andrew Tridgell
211bf1ea17
s4-waf: removed the unused installdir= option to SAMBA_BINARY()
...
This was left over from the automatic conversion of the config.mk
files
2010-04-18 21:47:00 +10:00
Andrew Tridgell
b9aa63887c
s4-waf: cleanup use of LIBPOPT vs popt dependency
2010-04-06 20:27:13 +10:00
Andrew Tridgell
f9eae32f4b
s4-waf: mark the wscript files as python so vim/emacs knows how to highlight them
2010-04-06 20:27:11 +10:00
Andrew Tridgell
844acb2260
build: waf quicktest nearly works
...
Rewrote wafsamba using a new dependency handling system, and started
adding the waf test code
2010-04-06 20:26:48 +10:00
Andrew Tridgell
845e0cbe6f
build: commit all the waf build files in the tree
2010-04-06 20:26:48 +10:00
Stefan Metzmacher
dea7c4f999
s4:client: make use of dcerpc_binding_handle stubs
...
metze
2010-03-12 15:25:50 +01:00
Jeff Layton
f4cb528ac5
samba: remove cifs-utils tools from build systems
...
Now that cifs-utils are their own project, we need to go ahead and pull
them out of the samba tree. This patch represents the first step toward
that end.
Remove the cifs-utilities from the source3 and source4 builds. Please
pay particular attention to the source4 piece. I'm not at all familiar
with the build system there, and would appreciate someone sanity
checking my changes.
It also adds a small README.cifs-utils file in the topdir. This is
optional, but I think it's a good idea to carry this for a release or
two.
Once this patch looks ok, I'll plan to do another patch to actually
remove the client dir and the relevant docs-xml files from the tree
altogether.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
2010-03-08 09:06:40 -05:00
Matt Kraai
d8071e7ed7
Change uint_t to unsigned int in source4
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-02-02 07:18:18 +01:00
Andrew Tridgell
090fbdce7d
s4: ran minimal_includes.pl on source4/client
2009-10-20 16:04:59 +11:00
Karolin Seeger
fa08d0b44b
Fix typo.
...
privilage -> privilege
Karolin
2009-10-19 09:47:33 +02:00
Matthias Dieter Wallnöfer
44df2488e3
s4: fix various warnings (not "const" related ones)
2009-10-02 15:33:48 +02:00
Sam Liddicott
9d824dc115
s4:client
...
Put was assuming that the remote name was always absolute, and not relative to
the current remote directory.
Signed-off-by: Sam Liddicott <sam@liddicott.com>
2009-08-21 16:54:49 +02:00
Andrew Bartlett
8f110d3051
Use smbclient binary for the test file in smbclient test
...
In the vein hope that a larger file might show problems better than a
small file.
Andrew Bartlett
2009-08-04 11:40:31 +10:00
Slava Semushin
ef45b31886
source4/client/client.c: Possible memory leaks
...
Patch for bug #6446
cppcheck found 2 possible memory leaks:
[./source4/client/client.c:3305]: (error) Memory leak: base_directory
[./source4/client/client.c:3305]: (error) Memory leak: desthost
Patch in attach.
2009-06-18 13:49:26 +10:00
Jeremy Allison
b11bf8b7cf
Fix S3 "make install". Don't build cifs.upcall.c in S4 as there are no
...
checks to see if the required include file is available.
Jeremy.
2009-06-03 11:28:52 -07:00
Jelmer Vernooij
8d033ec0d1
Move mount.cifs/umount.cifs to the top level and remove the outdated copy
...
in Samba 4.
2009-06-02 23:24:33 +02:00
Andrew Bartlett
e8ea854f02
s4:client Match Samba3 and remove smbmount from the distribution
2009-05-29 11:56:25 +10:00
Jeremy Allison
3a88316e23
Fix the build. Looks like no one ever compiled this on a system
...
with a libintl.h before.
Jeremy.
2009-02-24 12:19:06 -08:00
Volker Lendecke
c6f82b5259
Remove the s4 version of smbspool.c
2009-02-13 12:15:04 +01:00
Volker Lendecke
0844cca1d5
Replace get_myname() with the talloc version from v3-3-test
2009-02-13 12:15:03 +01:00
Stefan Metzmacher
8b408f7819
s4:selftest: avoid hardcoded pathes in blackbox tests
...
metze
2009-02-03 16:31:04 +01:00
Stefan Metzmacher
07e01f8405
s4:smbclient: correct initialize smbclient_context
...
Found by valgrind.
metze
2009-01-07 06:36:23 +01:00
Stefan Metzmacher
183c379fe5
s4:lib/tevent: rename structs
...
list=""
list="$list event_context:tevent_context"
list="$list fd_event:tevent_fd"
list="$list timed_event:tevent_timer"
for s in $list; do
o=`echo $s | cut -d ':' -f1`
n=`echo $s | cut -d ':' -f2`
r=`git grep "struct $o" |cut -d ':' -f1 |sort -u`
files=`echo "$r" | grep -v source3 | grep -v nsswitch | grep -v packaging4`
for f in $files; do
cat $f | sed -e "s/struct $o/struct $n/g" > $f.tmp
mv $f.tmp $f
done
done
metze
2008-12-29 20:46:40 +01:00
Jelmer Vernooij
29a20af75f
Remove use of global_loadparm for SMB2 client connections.
2008-11-02 16:20:00 +01:00
Jelmer Vernooij
ff36c52d8c
Remove another use of global_loadparm.
...
Eventually, we should move some of these parameters into a separate
struct (perhaps into smb_transport_options?), to avoid the long lists of
parameters.
2008-11-02 16:07:28 +01:00
Jelmer Vernooij
1492513f77
Fix build for make everything.
2008-11-02 02:50:22 +01:00
Jelmer Vernooij
3ebc574be4
Fix the build.
2008-11-02 02:30:21 +01:00
Jelmer Vernooij
57a60f0920
Move lp_*() calls a bit higher up the calls tack.
2008-11-01 22:13:47 +01:00
Jelmer Vernooij
af2940459d
Fix prototype for attrib_string().
2008-11-01 16:00:41 +01:00
Günther Deschner
7204deac82
s4-srvsvc: merge srvsvc_NetShareEnumAll from s3 idl.
...
Guenther
2008-10-31 02:44:34 +01:00
Jelmer Vernooij
0218669d62
Remove include/local.h and move defines to more appropriate places.
2008-10-24 17:53:38 +02:00
Jelmer Vernooij
8b06312f7e
Eliminate another instance of global_loadparm.
2008-10-24 13:13:27 +02:00
Jelmer Vernooij
215b84903e
Merge branch 'master' of git://git.samba.org/samba
2008-10-23 20:50:59 +02:00
Jelmer Vernooij
fe36fe8c3e
Use common net utility code (address and sockaddr manipulation).
2008-10-23 20:41:15 +02:00
Jelmer Vernooij
09065795d6
Remove unused constants from local.h.
2008-10-23 18:13:25 +02:00
Jelmer Vernooij
6d9b24de78
Remove pstring usages.
2008-10-22 04:25:00 +02:00
Jelmer Vernooij
218f482fbf
Use common strlist implementation in Samba 3 and Samba 4.
2008-10-12 00:56:56 +02:00
Jelmer Vernooij
9565999755
Fix include paths to new location of libutil.
2008-10-11 21:31:42 +02:00
Jelmer Vernooij
235b729309
Cope with API changes.
2008-09-30 03:07:08 +02:00
Jelmer Vernooij
83183bf381
Explicitly pass on session options to session setup function.
2008-09-30 01:38:51 +02:00
Andrew Bartlett
171986aea2
Move blackbox.smbclient to test against the member server.
...
The DC is now using smb signing, so testing for the old SMB versions
won't work.
Add a new test script to check 'net join' independent of
blackbox.smbclient.
Andrew Bartlett
(This used to be commit 44ff392ffe
)
2008-09-08 14:18:04 +10:00
Jelmer Vernooij
26e9194e3a
Move blackbox tests closer to what they're testing.
...
(This used to be commit c9b2e2aa86
)
2008-06-26 10:56:59 +02:00
Simo Sorce
2daf2897d5
Use a custom init function for samba4 that sets a samba4
...
specific debug function.
By default do not debug, this is the most appropriate action for a library
as we cannot assume what stderr is use for in the main app.
The main app is responsible to set ev_debug_stderr if they so desire.
(This used to be commit e566a2f308
)
2008-06-14 13:00:53 -04:00
Andrew Tridgell
03eb236f20
Merge commit 'origin/v4-0-test' into vfs_smb2
...
(This used to be commit 733937e87a
)
2008-05-19 11:40:25 +10:00
Jelmer Vernooij
4f0db42958
Use variables for source directory in a couple more places.
...
(This used to be commit 56bb2907c6
)
2008-05-18 19:41:33 +02:00
Andrew Tridgell
0abc2e2020
use a newer fsinfo level in smbclient, to support larger disks
...
(This used to be commit 1acc8077fb
)
2008-05-15 20:45:30 +10:00
Andrew Bartlett
9b65a7c38f
Remove unused KANJI and terminal code options.
...
Someone can re-add this with tests and an actual implementation.
Andrew Bartlett
(This used to be commit 62136febe7
)
2008-04-24 11:49:41 +01:00
Simo Sorce
4e83011f72
Remove more event_context_init() uses from function calls within deep down the code.
...
Make sure we pass around the event_context where we need it instead.
All test but a few python ones fail. Jelmer promised to fix them.
(This used to be commit 3045d39162
)
2008-04-21 18:12:33 -04:00
Jelmer Vernooij
1efbd5fbf6
Remove event context tracking from the credentials struct.
...
(This used to be commit 4d7fc946b2
)
2008-04-17 01:03:18 +02:00
Jelmer Vernooij
ffc5cbfe80
Move object files lists to makefile rather than smb_build.
...
(This used to be commit 5628d58990
)
2008-04-14 16:53:00 +02:00
Jelmer Vernooij
afe3e8172d
Install public header files again and include required prototypes.
...
(This used to be commit 47ffbbf674
)
2008-04-02 04:53:27 +02:00
Jelmer Vernooij
f41b9a9dde
Rename libsamba-config to libsamba-hostconfig.
...
(This used to be commit c46b7e90e3
)
2008-04-01 15:08:30 +02:00
Jelmer Vernooij
dcc282590b
r26654: libcli/smb_composite: Rather than specifying each of the gazillion options for SMB individually, just specify the smbcli_options struct.
...
(This used to be commit 8a97886e24
)
2008-01-03 12:33:36 -06:00
Jelmer Vernooij
425732f688
r26651: libsmb: Allow specifying signing policy from higher up.
...
The number of arguments is getting a bit excessive now, so it
probably makes sense to pass in the smbcli_options struct rather than
all members individually and add a convenience function for obtaining a
smbcli_options struct from a loadparm context.
(This used to be commit 9f64213463
)
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
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
Kai Blin
59b7d8dd2a
r26458: Janitorial: also free() var on continue.
...
Spotted by metze.
(This used to be commit adbf61dca5
)
2007-12-21 05:50:26 +01:00
Kai Blin
43ac3d9b44
r26453: Janitorial: Don't use a static char[] in smb_readline_replacement.
...
Fix up callers to free the memory returned, as that is needed if we use the
original readline function as well.
(This used to be commit c81ead1c38
)
2007-12-21 05:50:18 +01:00
Jelmer Vernooij
4b0199a549
r26409: Pass smb ports along.
...
(This used to be commit 2833f320de
)
2007-12-21 05:49:42 +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
b65dba2245
r26355: Eliminate global_loadparm in more places.
...
(This used to be commit 5d589a0d94
)
2007-12-21 05:49:01 +01:00
Jelmer Vernooij
dd7e5ed88c
r26352: Don't make lp_load create a new context.
...
(This used to be commit d0d5c1a823
)
2007-12-21 05:48:56 +01:00
Jelmer Vernooij
a48fdda5fe
r26339: Make loadparm talloc-allocated.
...
(This used to be commit 1e02cd8db1
)
2007-12-21 05:48:49 +01:00
Jelmer Vernooij
4c4323009f
r26327: Explicit loadparm_context for RPC client functions.
...
(This used to be commit eeb2251d22
)
2007-12-21 05:48:41 +01:00
Jelmer Vernooij
9ebcd7a0df
r26277: Move loadparm context higher up the stack.
...
(This used to be commit 38fa08310c
)
2007-12-21 05:48:03 +01:00
Jelmer Vernooij
b038240ac7
r26275: return loadparm context in lp_load.
...
(This used to be commit d01f0f4c20
)
2007-12-21 05:48:01 +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
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
2f8dc4f48f
r26266: Remove more global_loadparm uses.
...
(This used to be commit 99113075c4
)
2007-12-21 05:47:42 +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
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
7e298580e0
r26234: More global_loadparm fixes.
...
(This used to be commit 84892d030d
)
2007-12-21 05:47:12 +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
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
863a1dd155
r25577: BOOL -> bool
...
metze
(This used to be commit 6f665a1278
)
2007-10-10 15:07:58 -05:00
Jelmer Vernooij
734aaefd34
r25550: Convert to standard bool type.
...
(This used to be commit 3ed7aba8e2
)
2007-10-10 15:07:53 -05:00