Günther Deschner
77a2e13cb1
Move libnetapi examples into subdirs.
...
Guenther
(This used to be commit 0c3de6f345
)
2007-12-21 17:05:55 +01:00
Günther Deschner
13d159bc2d
Add netdomjoin-gui (my first gui application), another libnetapi user.
...
Guenther
(This used to be commit cf57ade5ec
)
2007-12-21 16:36:06 +01:00
Günther Deschner
f3607f85b6
Add netdomjoin cmd line tool (another libnetapi example).
...
Guenther
(This used to be commit c502686f09
)
2007-12-21 16:08:13 +01:00
Günther Deschner
27a58bd50c
Add getdc.c, a libnetapi example (incl. Makefile).
...
Guenther
(This used to be commit faedc78fc7
)
2007-12-21 16:02:35 +01:00
Günther Deschner
eddd190921
Add basic remote NetGetDCName and NetGetAnyDCName versions to libnetapi.
...
Guenther
(This used to be commit 5bc49546a3
)
2007-12-21 15:51:00 +01:00
Günther Deschner
d230cd8dd5
Make libnetapi_errstr use our NTSTATUS and WERROR error string macros.
...
Guenther
(This used to be commit e46aa35d43
)
2007-12-21 15:30:29 +01:00
Günther Deschner
9518d738b1
Add error string for access denied in libnetapi.
...
Guenther
(This used to be commit 4df868e3c3
)
2007-12-21 15:29:11 +01:00
Günther Deschner
1a30bdb506
Remove doubled cli_set_timeout calls from libnetapi.
...
Guenther
(This used to be commit acc5d8e784
)
2007-12-21 15:29:11 +01:00
Günther Deschner
f2fe172454
Keep libnetapi_NetX calls static for now.
...
Guenther
(This used to be commit c255654c68
)
2007-12-21 15:29:11 +01:00
Günther Deschner
5479c50c37
Merge all headers into libnetapi.h.
...
Guenther
(This used to be commit a2c5beda2e
)
2007-12-21 15:29:11 +01:00
Günther Deschner
991112eda7
Implement NetServerSetInfo level 1005 in local mode with smbconf registry.
...
Guenther
(This used to be commit 15c2bc15f2
)
2007-12-21 15:29:11 +01:00
Günther Deschner
721d36df83
Add NetServerGetInfo and NetServerSetInfo (for level 1005).
...
Guenther
(This used to be commit 1cad549f54
)
2007-12-21 15:29:11 +01:00
Günther Deschner
2bed9564db
Split out local and remote paths for NetGetJoinInformation.
...
Guenther
(This used to be commit d1e4f9dd5c
)
2007-12-21 15:29:11 +01:00
Günther Deschner
af08d8be30
Add libnetapi_errstr().
...
Guenther
(This used to be commit 465e61a359
)
2007-12-21 15:29:11 +01:00
Günther Deschner
75276ac2e3
Add support for remote and local unjoining in libnetapi.
...
Guenther
(This used to be commit 74048fe7cf
)
2007-12-21 15:29:11 +01:00
Günther Deschner
8f7723fc28
Remove unrequired TALLOC_CTX from libnetapi_NetJoinDomain & friends.
...
Guenther
(This used to be commit 96ebdca45b
)
2007-12-21 15:29:11 +01:00
Günther Deschner
14652eab18
Fix NetJoinDomainLocal.
...
Guenther
(This used to be commit 24605c9175
)
2007-12-21 15:29:11 +01:00
Günther Deschner
d1548d035f
Use DsGetDcName in local libnetapi join to find a dc.
...
Guenther
(This used to be commit fbc60c1648
)
2007-12-21 15:29:10 +01:00
Günther Deschner
dab660b9dc
Move NetJoinDomain and friends to NET_API_STATUS and the static libnetapi_ctx.
...
Guenther
(This used to be commit e640c3a4a7
)
2007-12-21 15:29:10 +01:00
Günther Deschner
62b3fd209d
Missed on instance of external creds.
...
Guenther
(This used to be commit 65d50f5187
)
2007-12-21 15:29:10 +01:00
Günther Deschner
fb2c13fe19
Add static libnetapi_ctx.
...
Guenther
(This used to be commit 97449ea341
)
2007-12-21 15:29:10 +01:00
Günther Deschner
d14ee1dc08
Use full string based debug_parse_levels in libnetapi.
...
Guenther
(This used to be commit 78d8f0e41a
)
2007-12-21 15:29:10 +01:00
Günther Deschner
c9b44e0fc3
Add basic credential functions for libnetapi.
...
Guenther
(This used to be commit 7c38f706b5
)
2007-12-21 15:29:10 +01:00
Günther Deschner
3d853b8e7e
Move basic libnetapi functions to NET_API_STATUS.
...
Guenther
(This used to be commit 086c550059
)
2007-12-21 15:29:10 +01:00
Günther Deschner
4dd84b3511
Define NET_API_STATUS to be just a uin32_t.
...
Guenther
(This used to be commit a42850926a
)
2007-12-21 15:29:10 +01:00
Günther Deschner
9dc0ac4637
Getting rid of external credentials in libnetapi.
...
Guenther
(This used to be commit c10481dba0
)
2007-12-21 15:29:10 +01:00
Günther Deschner
41410c86cc
Some libnet and netapi build fixes.
...
Guenther
(This used to be commit 1d47247283
)
2007-12-21 15:29:10 +01:00
Günther Deschner
5b5f75d229
Fill in local branch of NetGetJoinInformation().
...
Guenther
(This used to be commit 46db875451
)
2007-12-21 15:29:10 +01:00
Günther Deschner
7482a18c83
More minor libnetapi fixes.
...
Guenther
(This used to be commit 9f129c069f
)
2007-12-21 15:29:10 +01:00
Günther Deschner
749f699f87
Build fixes for libnetapi.
...
Guenther
(This used to be commit 07d33557b9
)
2007-12-21 15:29:10 +01:00
Günther Deschner
4f6e8dfa51
Fill in NetJoinDomainLocal().
...
Guenther
(This used to be commit 4896f22bb5
)
2007-12-21 15:29:10 +01:00
Günther Deschner
67aa44e7a2
Split NetJoinDomain() into NetJoinDomainRemote() and the unsupported
...
NetJoinDomainLocal().
Guenther
(This used to be commit d2f21ce672
)
2007-12-21 15:29:09 +01:00
Günther Deschner
72ffac3990
Add NetGetJoinInformation().
...
Guenther
(This used to be commit d341d251d6
)
2007-12-21 15:29:09 +01:00
Volker Lendecke
4418b989e7
Fix the build on Solaris
...
(This used to be commit 5f5e52ba7b
)
2007-12-21 12:53:12 +01:00
Volker Lendecke
99b86e4a26
Some C++ fixes
...
(This used to be commit 5c392c4c6e
)
2007-12-21 09:58:21 +01:00
Volker Lendecke
addf598cde
Some C++ warnings
...
(This used to be commit 5ab82d4f57
)
2007-12-21 09:58:20 +01:00
Volker Lendecke
0cdf5cfdfb
Fix a missing prototype warning
...
(This used to be commit 93e5de23e7
)
2007-12-21 09:58:20 +01:00
Volker Lendecke
184c927bf5
Remove some statics from md4.c
...
(This used to be commit 7e193c68b2
)
2007-12-21 09:58:20 +01:00
Volker Lendecke
89f7883fe9
Add a singleton cache
...
First user is yp_default_domain
(This used to be commit c19363eb77
)
2007-12-21 09:58:20 +01:00
Volker Lendecke
0565bc7335
Make data_blob_string_const return null terminated strings
...
... nobody was using it, so we're free to change it now :-)
(This used to be commit 4b06c68482
)
2007-12-21 09:58:20 +01:00
Volker Lendecke
bea1659911
Remove next_token_nr_talloc and its associated global
...
Only client.c and clitar.c used this, I think they should carry the static
themselves. Also move the a bit funny routine toktocliplist to clitar.c, the
only place where it is used.
(This used to be commit 86d9412611
)
2007-12-21 09:58:20 +01:00
Volker Lendecke
44d086a15f
Convert the pwnam cache to memcache
...
(This used to be commit 032c5589fe
)
2007-12-21 09:58:20 +01:00
Volker Lendecke
d3d870cc07
Add memcache_add_talloc
...
The first memcache API only had blobs, but we have quite a few objects that are
more complex talloc'ed structues. The current one I'm looking at is the
getpwnam cache, but there are others around.
(This used to be commit ea0e5ad9a1
)
2007-12-21 09:58:20 +01:00
Volker Lendecke
cc48010f41
Add a global cache
...
It hurts, but I think this global variable is necessary for transition, and it
has the potential to remove quite a few other global variables without messing
with APIs too much.
(This used to be commit c131d0dc52
)
2007-12-21 09:58:20 +01:00
Herb Lewis
df133758c2
fix dump printout when byte >= 0x80
...
(This used to be commit e18fab269c
)
2007-12-20 14:57:29 -08:00
Volker Lendecke
e518e19bc0
Remove Get_Pwnam and its associated static variable
...
All callers are replaced by Get_Pwnam_alloc
(This used to be commit 735f593154
)
2007-12-19 21:09:10 +01:00
Volker Lendecke
873b6f0f21
Samba Shared Repository - branch v3-2-test updated - initial-v3-2-unstable-716-g12cce3b
...
On Tue, Dec 18, 2007 at 06:04:32PM -0600, Jeremy Allison wrote:
> Fix valgrind error in dbwrap_rbt where rec_priv->node was
> being accessed after free. VALOKER PLEASE CHECK THIS VERY
> CAREFULLY !!!! This is a correct fix in that it fixes the
> valgrind error, but it looks inelegant to me. I think if
> I understood this code better I could craft a more subtle
> fix. Still looking at it....
Thanks a lot. Fully correct. What about the attached little
simplification?
Volker
(This used to be commit 5b72828600
)
2007-12-19 10:16:43 -08:00
Volker Lendecke
712a28aaae
Rename cache.[ch] to memcache.[ch]
...
cache.h conflicts with an XFS DMAPI include on "opi" :-(
(This used to be commit b8db804e07
)
2007-12-19 16:07:19 +01:00
Jeremy Allison
c99dc69a45
We've finished with the old node once we've copied the
...
keyval.
Jeremy.
(This used to be commit 39f3efbcc5
)
2007-12-18 17:30:02 -08:00
Jeremy Allison
537c4cf9cd
Fix valgrind error in dbwrap_rbt where rec_priv->node was
...
being accessed after free. VALOKER PLEASE CHECK THIS VERY
CAREFULLY !!!! This is a correct fix in that it fixes the
valgrind error, but it looks inelegant to me. I think if
I understood this code better I could craft a more subtle
fix. Still looking at it....
Jeremy.
(This used to be commit 12cce3be2a
)
2007-12-18 16:03:57 -08:00
Volker Lendecke
f427d4ce65
Add a in-memory cache
...
This is a more general API that caches data with a LRU scheme. See
include/cache.h. No comments yet, I'm still working on it. But Jeremy has given
me a hint in one of his checkins that he would like to make use of this now.
The idea is that we get rid of all our silly little caches and merge them all
into one cache that we can then very easily trim, for example even with a
smbcontrol message if someone decides memory is tight. The main user is the
stat cache, this patch also converts the getwd cache. More caches to come.
(This used to be commit 7a911b3571
)
2007-12-18 09:56:04 +01:00
Jeremy Allison
2d1b03d67a
More static pstring elimination.
...
Jeremy.
(This used to be commit 92acc0115d
)
2007-12-17 18:32:27 -08:00
Jeremy Allison
c8071c3522
Use the %*s feature of snprintf to remove anothe static fstring.
...
Jeremy.
(This used to be commit 4ae4b23586
)
2007-12-17 16:20:44 -08:00
Jeremy Allison
8f28bda7f8
Fix bug #5121 (unix passwd sync not working on a streams based
...
system).
Jeremy.
(This used to be commit 545cd2139c
)
2007-12-17 10:44:09 -08:00
Volker Lendecke
3c490d91f1
get rid of doschar_table[]
...
If I'm not completely blind, then check_dos_char is *only* used in the case
when we can't mmap() valid.dat. To me this looks as if we initialize the 65536
bits in doschar_table[] with check_dos_char_slowly, use it once to initialize
valid_table[] and *never* use them again. I think there's no point in keeping
these 8k of modified memory around for an unlikely case (no "valid.dat") and
even that only to use it exactly once.
(This used to be commit 0bfea7259e
)
2007-12-16 10:57:01 -08:00
Volker Lendecke
e28c6813e0
Tiny fixes to init_valid_table()
...
(This used to be commit a8948e0727
)
2007-12-16 10:57:00 -08:00
Volker Lendecke
2ae400b213
Make init_doschar_table() static
...
It's only called directly before init_valid_table() anyway, so move it there.
(This used to be commit b6d1d24288
)
2007-12-16 10:56:58 -08:00
Volker Lendecke
c335e3322d
Make check_dos_char static
...
It's only called in t_doschar, a pretty bogus test program that is not compiled
by default
(This used to be commit 99c59e809e
)
2007-12-16 10:56:55 -08:00
Volker Lendecke
dd4e99c9d7
Remove a static fstring
...
(This used to be commit a9c62c57db
)
2007-12-16 14:02:26 +01:00
Jeremy Allison
0b33d60aff
Cope with valgrind > 3.2.x.
...
Jeremy.
(This used to be commit e799eb8da6
)
2007-12-15 23:05:30 -08:00
Volker Lendecke
2e07c2ade8
s/sid_to_string/sid_to_fstring/
...
least surprise for callers
(This used to be commit eb523ba776
)
2007-12-15 22:47:30 +01:00
Volker Lendecke
79cd97cc3f
Use dom_sid_string for sid_string_talloc
...
Remove some code duplication, but introduce one more dependency on librpc/ndr.
Easily turned around so that librpc/ndr depends on lib/util_sid if necessary
(This used to be commit 3a0b1b2060
)
2007-12-15 22:33:52 +01:00
Volker Lendecke
4312ad8b98
sid_string_static is no more :-)
...
We now have four ways to do sid_to_string:
sid_to_string: Convert it into an existing fstring, when you have one
sid_string_talloc: The obvious thing
sid_string_tos: For the lazy, use only with care
sid_string_dbg: The one to use in DEBUG statements
(This used to be commit 7b8276aaa4
)
2007-12-15 22:09:37 +01:00
Volker Lendecke
14ef4cdec1
Replace sid_string_static with sid_to_string
...
This adds 28 fstrings on the stack, but I think an fstring on the stack is
still far better than a static one.
(This used to be commit c7c885078b
)
2007-12-15 22:09:37 +01:00
Volker Lendecke
900288a2b8
Replace sid_string_static by sid_string_dbg in DEBUGs
...
(This used to be commit bb35e794ec
)
2007-12-15 22:09:36 +01:00
Volker Lendecke
f498f661bc
Add sid_string_dbg
...
This makes use of the just added debug_ctx and will kill many
sid_string_static() calls
(This used to be commit 3e4148c280
)
2007-12-15 22:09:35 +01:00
Volker Lendecke
db98b92144
Add debug_ctx according to an idea by Tridge
...
Sorry, Jeremy, I think for debug messages this is just the right way to do it.
(This used to be commit 6312016e27
)
2007-12-15 22:09:35 +01:00
Volker Lendecke
2cb7f5f632
add sid_string_talloc
...
(This used to be commit 9e3ef0923d
)
2007-12-15 22:09:35 +01:00
Stefan Metzmacher
16352dd60b
add POPT_COMMON_CONFIGFILE which only provides --configfile (not -s)
...
metze
(This used to be commit af3392cc20
)
2007-12-14 19:36:14 +01:00
Stefan Metzmacher
1410c9e37d
debug: fix crash bug when DEBUG() is used before setup_logging()
...
this was introduced by the pstring removal
(1ea3ac8014
)
metze
(This used to be commit a412e6c7c6
)
2007-12-14 08:22:14 +01:00
Günther Deschner
68a9bd0bf6
Add split_domain_user() (not to mix with winbind variants).
...
Guenther
(This used to be commit bd5308e5f6
)
2007-12-12 00:58:58 +01:00
Jeremy Allison
95c2f313ce
Add patches for bug #4866 from jiri sasek - Sun Microsystems - Prague Czech Republic <Jiri.Sasek@Sun.COM>
...
- slightly modified - Jiri please check ! to allow Solaris to get passwords > 8 chars.
Jeremy.
(This used to be commit 657bf8c347
)
2007-12-11 13:16:35 -08:00
Jeremy Allison
7faee02d0d
Remove the char[1024] strings from dynconfig. Replace
...
them with malloc'ing accessor functions. Should save a
lot of static space :-).
Jeremy.
(This used to be commit 52dc5eaef2
)
2007-12-10 11:30:37 -08:00
Volker Lendecke
d5ab80054d
dbwrap_rbt
...
This is meant as a replacement for the internal tdb. To me it seems a bit silly
that for in-memory structures we do our own memory management. With this rbt
based approach we can make use of the system-supplied malloc.
(This used to be commit 54e5d44046
)
2007-12-10 16:06:32 +01:00
Volker Lendecke
8a8b146ead
Make the Linux rbtrees compile within Samba
...
(This used to be commit c871fd802f
)
2007-12-10 16:06:32 +01:00
Volker Lendecke
26a2e818fa
Add rbtree.[ch] from the Linux kernel
...
These are copies taken from 94545baded0bfbabdc30a3a4cb48b3db479dd6ef from Linus' kernel tree
(This used to be commit 8a3289f913
)
2007-12-10 16:06:32 +01:00
Volker Lendecke
18c90ed7d8
Add db_tdb_fetch
...
(This used to be commit efa8764c21
)
2007-12-10 16:06:32 +01:00
Volker Lendecke
94a354493a
Add dbwrap bystring service routines
...
(This used to be commit 1e214b536b
)
2007-12-10 16:06:32 +01:00
Jeremy Allison
632ab7dc2e
Many systems don't have sa_len as part of struct sockaddr.
...
Revert 5c347cb46d
"Choose a better default for sockaddr length.".
Jeremy.
(This used to be commit 677ac6adc3
)
2007-12-09 14:59:07 -08:00
James Peach
8892c7a235
Choose a better default for sockaddr length.
...
(This used to be commit 5c347cb46d
)
2007-12-09 14:02:23 -08:00
James Peach
daba3f8b54
Fix connect(2) callers to use correct sockaddr size.
...
Some systems (eg Mac OSX 10.5) require the length passed to match
the socket address family. This introduces sys_connect() that does
the right thing, and replaces all uses oc connect(2) with sys_connect().
Note that there are some LGPL callers that still call connect(2)
directly.
(This used to be commit e1bfdc17c4
)
2007-12-09 13:28:00 -08:00
Jeremy Allison
42cfffae80
Remove next_token - all uses must now be next_token_talloc.
...
No more temptations to use static length strings.
Jeremy.
(This used to be commit ec003f3936
)
2007-12-07 17:32:32 -08:00
Jeremy Allison
ade51769d5
We don't need P_GSTRING or P_UGSTRING anymore.
...
Jeremy.
(This used to be commit 78dc756000
)
2007-12-07 12:43:10 -08:00
Jeremy Allison
acf15ae730
Don't build rpctorture anymore - not maintained. Just remove.
...
Remove all vestiges of pstring (except for smbctool as noted
in previous commit).
Jeremy
(This used to be commit 4c32a22ac5
)
2007-12-07 12:26:32 -08:00
Jeremy Allison
9e8180b983
Remove pstrings completely except for smbctool (what does this do ?).
...
Don't build this for now.
Jeremy.
(This used to be commit 46b67fd82c
)
2007-12-07 12:02:44 -08:00
Jeremy Allison
9e03d6117a
*Really* fix the no password -N opt :-).
...
Jeremy.
(This used to be commit 187d8a94ea
)
2007-12-06 19:15:56 -08:00
Jeremy Allison
e7781bd20f
Fix the '-N' option.
...
Jeremy.
(This used to be commit b91b61b54f
)
2007-12-06 19:06:34 -08:00
Jeremy Allison
9fdf2d0586
Get closer to building with smbmount. Move parameter line changes
...
into lib/util.c
Jeremy.
(This used to be commit 6ac5d81655
)
2007-12-06 18:49:39 -08:00
Jeremy Allison
c6f0352155
Make cmdline_auth_info private to lib/popt_common.c. Provide
...
accessor functions.
Jeremy.
(This used to be commit 420195dd3e
)
2007-12-06 17:22:57 -08:00
Jeremy Allison
1b92ea5559
Remove pstrings from client/client.c by doing a large rewrite.
...
Mostly compiles....
Jeremy.
(This used to be commit c87f3eba9a
)
2007-12-06 17:16:33 -08:00
Gerald (Jerry) Carter
5d22700782
Compile fix to the automount support. Patch from GlaDiaC.
...
(This used to be commit 487ab6e75e
)
2007-12-05 11:52:35 -06:00
Volker Lendecke
78c6ee0090
Remove some globals
...
(This used to be commit 31d0a846db
)
2007-12-05 14:39:07 +01:00
Volker Lendecke
66af070039
Make share_info_db_init static
...
(This used to be commit 111502d3a2
)
2007-12-05 14:39:07 +01:00
Volker Lendecke
2b17840a0e
Remove a static, and "signal_received" needs to be sig_atomic_t
...
(This used to be commit 8acd4a202f
)
2007-12-05 14:39:07 +01:00
Jeremy Allison
3ec5a37280
Ok, down to just the client/*.c code now.
...
Jeremy.
(This used to be commit 7d3959f81a
)
2007-12-04 18:02:06 -08:00
Jeremy Allison
3771ada352
Remove pstring from automount lookups. Remove premature optimization.
...
Jeremy.
(This used to be commit 6863fe51b5
)
2007-12-04 17:48:38 -08:00
Jeremy Allison
74dfee916f
Remove tok pstring from util_str.c
...
Do we even make rpctorture anymore ?
Jeremy.
(This used to be commit fecc3cc45a
)
2007-12-04 17:23:19 -08:00
Jeremy Allison
755051b569
pull_ascii_pstring is gone.
...
Jeremy.
(This used to be commit 288aacce4b
)
2007-12-04 17:05:33 -08:00
Jeremy Allison
5ea101f048
Allow STR_TERMINATE and -1 src_len for pull_ucs2_base_talloc().
...
Jeremy.
(This used to be commit 063358d87a
)
2007-12-04 15:21:14 -08:00
Jeremy Allison
6f46f75dfc
Make strhex_to_str clear on string limits. Remove pstring from web/*.c
...
Jeremy.
(This used to be commit f9c8d62389
)
2007-12-03 17:17:05 -08:00
Jeremy Allison
bcf033b38e
Change tdb_unpack "P" to return a malloc'ed string rather
...
than expect a pstring space to put data into.
Fix the (few) callers.
Jeremy.
(This used to be commit 7722a7d2c6
)
2007-12-03 14:54:06 -08:00
Günther Deschner
6b37d8e627
Fix wkssvc callers.
...
Guenther
(This used to be commit b734cd8aab
)
2007-12-03 18:43:19 +01:00
Michael Adam
66887ddfba
Remove workaround for broken capabilites.h from lib/system.c - now in lib/replace.
...
Michael
(This used to be commit a3fbb53232
)
2007-12-03 16:54:13 +01:00
Michael Adam
684a72c779
Reformat configure checks for broken capabilities.h.
...
Michael
(This used to be commit 834a16225a
)
2007-12-03 16:54:12 +01:00
Michael Adam
f5b071e3b0
Move check for broken system capabilites.h headers to lib/replace.
...
Michael
(This used to be commit 8ec10c4ab1
)
2007-12-03 16:54:12 +01:00
Michael Adam
fc0a63153f
Add check for ppc statfs.h header to workaround for broken capabilities.h.
...
Taken from s3:lib/system.c
Michael
(This used to be commit 07e6cfdc62
)
2007-12-03 16:54:12 +01:00
Volker Lendecke
b1a924a0fb
Fix some bogus uninitialized variable warnings
...
(This used to be commit 48a162b709
)
2007-12-02 23:39:12 +01:00
Jeremy Allison
d1807be93c
Fix restart after length count.
...
Jeremy.
(This used to be commit fa8115f32b
)
2007-11-30 14:15:34 -08:00
Günther Deschner
cfbbeebbc6
Avoid to include net prototypes, just reference user creds.
...
Guenther
(This used to be commit 09e01a4716
)
2007-11-30 22:25:01 +01:00
Günther Deschner
9433010f35
Add header file for NetJoinDomain() and friends.
...
Guenther
(This used to be commit 7cea527e87
)
2007-11-30 22:25:01 +01:00
Günther Deschner
9fdb8b82c9
Add NetUnjoinDomain().
...
Guenther
(This used to be commit fd9d73ad44
)
2007-11-30 22:25:01 +01:00
Günther Deschner
ac512a5bb2
Robustness-fixes for NetJoinDomain().
...
Guenther
(This used to be commit 2d5236cc37
)
2007-11-30 22:25:01 +01:00
Günther Deschner
1484b1d174
Give NetJoinDomain() enough time to finish.
...
Guenther
(This used to be commit 7f021b3cb7
)
2007-11-30 22:25:01 +01:00
Günther Deschner
5ee27320ce
domain_name is a ref pointer.
...
Guenther
(This used to be commit b350e482b9
)
2007-11-30 22:25:01 +01:00
Günther Deschner
a51e682a21
Add NetJoinDomain call.
...
Guenther
(This used to be commit 08a5a036ba
)
2007-11-30 22:25:01 +01:00
Jeremy Allison
810f760afd
Add talloc versions of all the next_token() functions.
...
Now I can really start removing fixed length strings...
Jeremy.
(This used to be commit 0ae61e2654
)
2007-11-30 13:09:04 -08:00
Günther Deschner
4a1fbf7bbf
Fix build warning.
...
Guenther
(This used to be commit bf4881d777
)
2007-11-30 01:45:06 +01:00
Jeremy Allison
b7db7c8352
Fix memleak.
...
Jeremy.
(This used to be commit ccacd17047
)
2007-11-29 16:30:18 -08:00
Jeremy Allison
d2cf97aeba
Remove the explicit TALLOC_CTX * from cli_struct.
...
Make us very explicit about how long a talloc ctx
should last.
Jeremy.
(This used to be commit ba9e2be2b5
)
2007-11-29 13:24:54 -08:00
Volker Lendecke
a605be7314
Add a warning for a potential bug I've run into
...
(This used to be commit 223352e323
)
2007-11-28 09:45:40 -08:00
Jeremy Allison
6b6655edd9
Remove pstrings from everything except srv_spoolss_nt.c.
...
Jeremy.
(This used to be commit 0002a9e96b
)
2007-11-27 14:35:30 -08:00
Volker Lendecke
1011b32678
Remove some statics
...
(This used to be commit 1fab16ffb8
)
2007-11-27 14:18:47 +01:00
Volker Lendecke
d4bfafa29c
Fix bug 5055
...
(This used to be commit 8bcd2df841
)
2007-11-26 15:28:13 +01:00
Volker Lendecke
5d85dd682a
Fix a C++ warning
...
(This used to be commit 9bf5ead4b2
)
2007-11-26 14:36:29 +01:00
Tomoki AONO
02571885a9
1. lib/system.c (xattr code for Solaris) could not be
...
built against c90 compilers. (declaration after
statement.) Sample patch attached.
(This used to be commit 102a247df9
)
2007-11-26 09:00:33 +01:00
Volker Lendecke
afc3eee3b8
Add a missing prototype
...
(This used to be commit 89e2984a84
)
2007-11-22 16:00:13 +01:00
Volker Lendecke
734025012f
Fix an uninitialized variable
...
(This used to be commit e8b866ad87
)
2007-11-22 16:00:13 +01:00
Volker Lendecke
3f100a5976
Fix a type-punned warning
...
(This used to be commit 4c992e4340
)
2007-11-22 16:00:13 +01:00
Jeremy Allison
dc9237d231
Doh ! Don't use #else when #endif is needed.
...
Jeremy.
(This used to be commit a04e916b89
)
2007-11-21 10:31:18 -08:00
Jeremy Allison
e68bbe3548
Add set_sockaddr_port function for winbindd.
...
Jeremy.
(This used to be commit 4b47052694
)
2007-11-21 10:10:52 -08:00
Jeremy Allison
c049b8157d
More trivial pstring removal.
...
Jeremy.
(This used to be commit bac3bb2f6e
)
2007-11-20 15:31:37 -08:00
Jeremy Allison
4c6b01b0ef
Remove more pstring. Unify talloc_sub functions to make
...
them a better match for replacing string_sub. Remove
more unused code.
Jeremy.
(This used to be commit ae7885711f
)
2007-11-19 18:56:22 -08:00
Jeremy Allison
cf31bb7532
Start to remove some of the pstring functions we're
...
no longer using.
Jeremy.
(This used to be commit c21e9bdc10
)
2007-11-19 17:51:21 -08:00
Michael Adam
b3976c2ea2
Fix an implicit cast warning.
...
Michael
(This used to be commit d2c7417393
)
2007-11-16 22:22:05 +01:00
Jeremy Allison
acb829ecc3
Add MAX_DNS_NAME_LENGTH, remove more pstrings.
...
Jeremy.
(This used to be commit a1725f4ff7
)
2007-11-15 18:27:26 -08:00
Michael Adam
6028176a39
Fix the build on RHEL5, when libcap-devel is installed.
...
The /usr/include/sys/capability.h defines _LINUX_TYPES_H
which prevents /usr/include/linux/types.h from being parsed
(when included afterwards). Thus certain types are undefined
that are for instance needed in /usr/include/linux/dqblk_xfs.h.
This breaks the build of lib/sysquotas_xfs.c.
This commit adds a configure check and a workaround for this.
Michael
(This used to be commit 11bcdf780e
)
2007-11-16 00:45:59 +01:00
Jeremy Allison
68be9a8200
More pstring removal. This one was tricky. I had to add
...
one horror (pstring_clean_name()) which will have to
remain until I've removed all pstrings from the client code.
Jeremy.
(This used to be commit 1ea3ac8014
)
2007-11-15 14:19:52 -08:00
Jeremy Allison
8e1b0f81c2
alpha_strcpy includes the space for the terminating nul.
...
Jeremy.
(This used to be commit b3ed3f7e4e
)
2007-11-15 13:18:42 -08:00
Jeremy Allison
51b46147f2
Remove smbldap_get_single_pstring() and all pstrings
...
from pdb_ldap.c. I don't have an LDAP passdb setup here,
so I'm going to need some help on testing this.
Jeremy.
(This used to be commit 00760451b6
)
2007-11-14 16:05:42 -08:00
Jeremy Allison
79266500cd
Remove all pstrings from smbd/chgpasswd.c.
...
Jeremy.
(This used to be commit eaf14c701b
)
2007-11-12 15:02:50 -08:00
Jeremy Allison
91c1933e67
Remove a pstring.
...
Jeremy.
(This used to be commit c0412b5d13
)
2007-11-11 21:45:55 -08:00
Volker Lendecke
f976f5e067
Convert ctdb_conn.c to enum ndr_error_code
...
Fix the build
(This used to be commit 432d0e9cb2
)
2007-11-11 09:12:37 +01:00
Jeremy Allison
2b3c44e4fb
Always define PATH_MAX. Makes code simpler (removes
...
a bunch of #defines). Remove pstring from msdfs.c.
Jeremy.
(This used to be commit e203ba2227
)
2007-11-10 22:31:34 -08:00
Jeremy Allison
6c25260ec1
Remove more static fstring/pstrings. Fix socket option
...
set on wrong fd (-1).
Jeremy.
(This used to be commit 52fe04df8e
)
2007-11-09 15:09:16 -08:00
Stefan Metzmacher
f9578af966
ndr: change NTSTAUS into enum ndr_err_code (samba3 callers)
...
lib/messages_local.c
rpc_client/ndr.c
smbd/notify_internal.c
utils/net_rpc_registry.c
metze
(This used to be commit c2645d2164
)
2007-11-09 21:23:16 +01:00
Volker Lendecke
8a2e7a52c0
nss_wrapper: Fix some warnings
...
(This used to be commit b401450e84
)
2007-11-09 15:16:59 +01:00
Volker Lendecke
333d83e1ee
Add some comments
...
(This used to be commit fc58f2f45a
)
2007-11-09 15:14:00 +01:00
Volker Lendecke
62b97b0156
Make base64_encode_data_blob return a talloced string
...
(This used to be commit 5f205ab48d
)
2007-11-09 15:12:30 +01:00
Volker Lendecke
e63bcdd720
Remove the silly "user_socket_options" global variable
...
This is better done with a 'lp_do_parameter(-1, "socket options", ..);
(This used to be commit 814bed029e
)
2007-11-09 15:11:54 +01:00
Volker Lendecke
95b9e23095
Fix dbwrap debug output
...
(This used to be commit 9f9c933c16
)
2007-11-09 15:10:14 +01:00
Stefan Metzmacher
fdc27be1be
remove faked_create_user() BUILD_FARM hack as we have nss_wrapper now
...
metze
(This used to be commit fc98c19048
)
2007-11-09 09:53:02 +01:00
metze
c4a20912b1
nss_wrapper: hopefully a better fix for the solaris get*ent_r functions
...
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25873 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit e0c8c01650
)
2007-11-09 09:53:01 +01:00
metze
39d65a9f50
nss_wrapper: revert solaris get*ent_r() functions
...
This was the wrong approach, as in future lib/replace
should hide this special solaris stuff.
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25872 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 350d6c19e3
)
2007-11-09 09:53:01 +01:00
metze
29832ab0fe
nss_wrapper: set the destination pointer in the get*_r functions
...
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25871 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 17b449212a
)
2007-11-09 09:53:01 +01:00
metze
f54458939d
libreplace: AC_VERIFY_C_PROTOTYPE() needs AC_LANG_SOURCE() to bring in confdefs.h
...
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25870 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 95dfbd3a6c
)
2007-11-09 09:53:00 +01:00
metze
673d502ba3
nss_wrapper: add solaris versions of getpwent_r and getgrent_r
...
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25868 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 70ea441fe4
)
2007-11-09 09:53:00 +01:00
metze
05206ce0c2
libreplace: solaris has different prototypes for getpwent_r and getgrent_r
...
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25867 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 77900d2ba0
)
2007-11-09 09:52:59 +01:00
metze
90d034f7cf
nss_wrapper: not all systems have get*_r calls
...
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25866 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 2451399acb
)
2007-11-09 09:52:59 +01:00
metze
ca2ced5c23
libreplace: check for nss passwd|group get*_r functions
...
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25865 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 8e81dd7356
)
2007-11-09 09:52:59 +01:00
metze
7c43422e1b
nss_wrapper: add nss_wrapper.pl
...
This script will be used to add|delete passwd|group entries
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25837 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 28789e60cc
)
2007-11-09 09:52:58 +01:00
metze
419c600897
nss_wrapper: add support for groups and return EPERM in initgroups()
...
The NSS_WRAPPER_GROUP envvar should point to
the /etc/group style file.
Note: NSS_WRAPPER_PASSWD and NSS_WRAPPER_GROUP both
need non-empty values to enable NSS Wrapper
support.
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25836 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 6abc84a564
)
2007-11-09 09:52:57 +01:00
metze
d2397d7b1b
nss_wrapper: add support for passwd accounts
...
The NSS_WRAPPER_PASSWD envvar should point to
the /etc/passwd style file.
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25835 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 36af3e864c
)
2007-11-09 09:52:57 +01:00
metze
6fb510d3f3
nss_wrapper: add lib/nss_wrapper skeleton
...
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25834 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 0924b0c8de
)
2007-11-09 09:52:56 +01:00
jelmer
745b458cee
Try to fix building dso's on hpux with gcc
...
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25886 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 4642af8026
)
2007-11-09 09:31:26 +01:00
jelmer
2c50c6143b
Try to get some more flags right.
...
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25880 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit ccb39b1844
)
2007-11-09 09:30:28 +01:00
jelmer
c0511ba7d3
Add libreplace macro for soname flags.
...
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25877 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 81167d8f38
)
2007-11-09 09:29:16 +01:00
jelmer
b26cc8be3d
Try to fix the build on some HPUX machines.
...
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25875 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 8d1f54f45d
)
2007-11-09 09:27:03 +01:00
Jeremy Allison
3f006ca95a
More pstring/fstring removal.
...
Jeremy.
(This used to be commit 7646f4b284
)
2007-11-08 19:00:10 -08:00
Jeremy Allison
5f4693d8f8
Remove more pstring/fstrings.
...
Jeremy.
(This used to be commit 7a1de5b44e
)
2007-11-08 18:50:07 -08:00
Jeremy Allison
7f97c6b96c
Remove unneeded variable.
...
Jeremy.
(This used to be commit c21bc756e3
)
2007-11-08 18:01:00 -08:00
Jeremy Allison
214bb0f119
Fix case where we have no dns domain name. Return a talloc of "".
...
Jeremy.
(This used to be commit ab8934844a
)
2007-11-08 17:58:55 -08:00
Jeremy Allison
d40e47db4b
Remove more fstring/pstring bad useage. Go talloc !
...
Jeremy.
(This used to be commit 2a0173743d
)
2007-11-08 17:25:45 -08:00
Jeremy Allison
976b0ec487
Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
...
(This used to be commit d9335456d2
)
2007-11-08 15:13:41 -08:00
Stefan Metzmacher
9ba9af75d2
libreplace: we need to link to make sure the functions are available
...
metze
(This used to be commit 130de20d64
)
2007-11-08 12:20:16 +01:00
Jeremy Allison
e501c0cd44
Unify the name and addr cache for client_name to
...
make threading easier ultimately.
Jeremy.
(This used to be commit 48e0725cd6
)
2007-11-07 12:48:58 -08:00
Jeremy Allison
1ee8607d4a
Fix tdbtorture build.
...
Jeremy.
(This used to be commit c14db81be5
)
2007-11-06 23:13:11 -08:00
Jeremy Allison
99fd77f4ae
Fix const warning.
...
Jeremy.
(This used to be commit ecc2555197
)
2007-11-06 23:09:31 -08:00
Jeremy Allison
3809490dd0
Keep the tdb code in sync with Samba4.
...
Mainly this is the svn changes :
------------------------------------------------------------------------
r23238 | tridge | 2007-05-30 01:15:49 -0700 (Wed, 30 May 2007) | 6 lines
merged transaction lock changes from ctdb
this ensures that having the global lock also implies the transaction
lock
------------------------------------------------------------------------
r22832 | tridge | 2007-05-13 18:00:06 -0700 (Sun, 13 May 2007) | 3 lines
merged the latest tdb changes from ctdb to Samba4
Jeremy.
(This used to be commit ab11c00557
)
2007-11-06 22:57:35 -08:00
Jeremy Allison
d8f3c9d078
Fix bug where tdb lock call interrupted with
...
an alarm sig would not terminate and could lead
to runaway smbd processes.
Thanks to Dave Daugherty @ Centrify for pointing
this out to us.
Jeremy.
(This used to be commit ef8da16983
)
2007-11-06 21:47:57 -08:00
metze
4930bab6b8
libreplace: we should only have one location where we check for required functions
...
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25864 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 760f24f10c
)
2007-11-06 09:38:59 +01:00
metze
cfb20163a5
libreplace: we need include <unistd.h> before nss_wrapper.h
...
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25863 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 20ec1f4725
)
2007-11-06 09:38:59 +01:00
jelmer
caa6e6f544
Fix export dynamic for HPUX.
...
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25861 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 4d02b1344b
)
2007-11-06 09:38:59 +01:00
jelmer
29725af3be
Remove flag that causes problems on some hosts.
...
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25860 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 57bea8cd02
)
2007-11-06 09:38:59 +01:00
jelmer
e759ca8492
Wrap native HPUX functions in dl implementation.
...
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25859 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 0ec1672929
)
2007-11-06 09:38:58 +01:00
jelmer
29303bd12e
Check for HPUX dl functions.
...
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25855 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 9f862e9faf
)
2007-11-06 09:38:58 +01:00
jelmer
a2cf98daf0
Move SHLIBEXT determination into a test as well.
...
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25852 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 322cf8002b
)
2007-11-06 09:38:58 +01:00
jelmer
b8fdd9e383
Move system-specific ldflags checks to libreplace so they can be used by ldb.
...
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25851 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 63b7690335
)
2007-11-06 09:38:58 +01:00
jelmer
1622ab608d
Add macro for picflag.
...
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25850 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 48c70f6040
)
2007-11-06 09:38:58 +01:00
jelmer
0627ebc620
Add configure test for -Wl,--export-dynamic.
...
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25846 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 4904af51cd
)
2007-11-06 09:38:57 +01:00
metze
f16544ad3b
libreplace: include nss_wrapper.h if NSS_WRAPPER is defined
...
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25838 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 809fee4bef
)
2007-11-06 09:38:57 +01:00
Jeremy Allison
36441da424
Remove the horror that was the global smb_rw_error.
...
Each cli struct has it's own local copy of this variable,
so use that in client code. In the smbd server, add one
static to smbd/proccess.c and use that inside smbd. Fix
a bunch of places where smb_rw_error could be set by
calling read_data() in places where we weren't reading
from the SMB client socket (ie. winbindd).
Jeremy.
(This used to be commit 255c2adf7b
)
2007-11-05 11:12:56 -08:00
Jeremy Allison
536a9e7922
Don't alloc struct iface_struct nics[MAX_INTERFACES]; (128 entries)
...
on the stack - use talloc.
Jeremy
(This used to be commit b5e37af251
)
2007-11-04 22:20:04 -08:00
Jeremy Allison
6a2a27076f
This should really be a cond_set_smb_read_error().
...
Jeremy.
(This used to be commit 5ab76b58c0
)
2007-11-04 22:14:19 -08:00
Jeremy Allison
85ff0b2d75
Don't use 0 when we mean SMB_READ_OK.
...
Jeremy.
(This used to be commit 08ee4314a9
)
2007-11-04 22:12:31 -08:00
Günther Deschner
a7be4d50d4
Merge commit 'origin/v3-2-test' into branches/upstream
...
(This used to be commit d0bf0ad2ae
)
2007-11-05 03:39:18 +01:00
Volker Lendecke
2d73e86cce
Remove unnecessary code
...
SAFE_FREE checks for NULL anyway, and SMB_STRDUP panics on failure
(This used to be commit 4cdebda39b
)
2007-11-05 03:40:31 +01:00
Günther Deschner
e83e0f3684
Display sec ace flags.
...
Guenther
(This used to be commit 52bf835c5e
)
2007-11-05 03:27:13 +01:00
Jeremy Allison
5b0b4f23ef
Remove most of the remaining globals out of lib/util_sock.c.
...
I have a plan for dealing with the remaining..... Watch
this space.
Jeremy.
(This used to be commit 963fc76852
)
2007-11-03 23:20:10 -07:00
Jeremy Allison
51a0354d75
Remove more static data from lib/util_sock.c and
...
callers.
Jeremy.
(This used to be commit 35aaa36f82
)
2007-11-03 22:34:46 -07:00
Jeremy Allison
56aa420195
Missed one case where I need to pass down addrlen.
...
Jeremy
(This used to be commit 62b5ca3334
)
2007-11-03 20:27:59 -07:00