Kai Blin
209555ef09
s3-waf: support avahi builds
2010-05-30 23:29:39 +02:00
Kai Blin
8e2b69ca46
s3-waf: Add more darwin-specific options
2010-05-30 23:29:20 +02:00
Kai Blin
f3b04854b8
s3-waf: Set HAVE_GSSAPI if gssapi libs were found
2010-05-30 22:54:27 +02:00
Joachim Schmitz
3030d9db4e
s3: define timespec before we use it
...
this fixes #7464
Signed-off-by: Björn Jacke <bj@sernet.de>
2010-05-30 21:28:17 +02:00
Björn Jacke
a1b44f4335
s3: set pthread cflags in a more portable fashion
...
this avoids one place of a GNU make dependency.
Portable make sucks a bit as it has no way of defining variables for a limited
set of targets only. Manual duplication of target rules is the only way to
achieve what we need.
If someone actually knows a trick how to do this without target duplication,
let me know.
2010-05-30 16:25:28 +02:00
Björn Jacke
30c74cfa49
Revert "s3: Attempt to fix the non-gnumake build"
...
This reverts commit 086c6c0e9a
, it broke some
builds. The following commit should also remove the gmake dependency.
2010-05-30 16:25:28 +02:00
Björn Jacke
96ee9568ed
s3: fix check for pie compiler flags
...
some compilers (HP and Sun e.g.) output warning messages on stderr for unknown
options and we ended up partly using some unwanted random compile flags we
did't intend to use.
2010-05-30 16:25:28 +02:00
Björn Jacke
b869350ddd
s3: add m4 macro to check if stderr is empty or not
2010-05-30 16:25:28 +02:00
Simo Sorce
33c633df0b
s3:auth make it easier to trace auth modules
2010-05-29 17:08:10 -04:00
Simo Sorce
bd38c0d47d
s3:auth fix info3 duplication function
2010-05-29 17:08:02 -04:00
Simo Sorce
b99dd10b39
s3:smbd Use the right num_sids
...
We use s_i->ptok->num_sids everywhere else in this call and
then suddenly we reference s_i->num_sids
2010-05-29 17:07:55 -04:00
Simo Sorce
d85d85b851
s3:passdb Fix memory leak
...
We were allocating this passwd structure on sampass, but never freeing
it nor assigning it to unix_pw where it could be reused.
2010-05-29 10:54:08 -04:00
Andrew Bartlett
b455c5e155
s3:auth Fix segfault when the user cannot be found by getpwnam()
...
Add comment to notify when getpwnam() fails.
Reviewed-by: Simo Sorce <idra@samba.org>
2010-05-29 09:22:53 -04:00
Andrew Bartlett
8d6f88b469
s3:winbind Kill amusing but un-used winbindd_kill_all_clients
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-05-28 18:08:28 +02:00
Andrew Bartlett
d266f8fdf1
s3:lib s3:lib move get_global_sam_name to util_names.c
...
This doesn't really belong in util_sid.c, and has much more in common
with the other functions in util_names.c
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-05-28 18:08:28 +02:00
Andrew Bartlett
539ef13bfe
s3:lib split out global workgroup and netbios name functions.
...
Having these in their own file allows easier selective inclusion.
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-05-28 18:08:27 +02:00
Andrew Bartlett
59422efca9
s3:smbd move messaging_context and memcache into globals.c
...
This helps vfstest, which previously had duplicate copies of these functions.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-05-28 18:08:27 +02:00
Andrew Bartlett
6f279de0e6
s3:smbd split reload services/printers functions from server.c
...
This helps vfstest, as it previously had duplicate copies of these
functions.
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-05-28 18:08:26 +02:00
Andrew Bartlett
8bc32513da
s3:smbd split smbd/server.c into smbd/server.c and smbd/server_exit.c
...
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-05-28 18:08:25 +02:00
Kai Blin
f7333629f8
s3-waf: Support builds with utmp accounting
2010-05-28 15:17:35 +02:00
Kai Blin
4eba4b07c6
s3-waf: Match the defines from the autotools build on PACKAGE_*
2010-05-28 14:35:45 +02:00
Andreas Schneider
93ac516e15
s3-auth: Added a function to get the server_info from the system user.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-28 14:31:39 +02:00
Günther Deschner
87037006bd
s3-samr: Fix crash bug in _samr_QueryUserInfo{2} level 18.
...
Guenther
2010-05-28 14:30:03 +02:00
Kai Blin
d0e131ee4e
s3-waf: Fix the smbclient build with libcap
2010-05-28 13:20:10 +02:00
Kai Blin
3d2c99f13b
s3-waf: Detect which version of krb5_enctype_to_string is used
...
Pair-Programmed-With: Günther Deschner <gd@samba.org>
2010-05-28 12:59:29 +02:00
Kai Blin
da0e0efe87
s3-waf: Fix the build of swat with --enable-cups
2010-05-28 12:58:23 +02:00
Andrew Bartlett
892a4b24e7
waf Read VERSION file inside WAF to set package version
...
This replaces the call to mkversion.sh in both the Samba3 and Samba4
WAF builds.
Andrew Bartlett
2010-05-28 15:20:03 +10:00
Günther Deschner
0ca8e2252b
s3-lanman: Fix api_RNetUserGetInfo level 2 marshalling offset calculation.
...
54 + 4 = 58 (and not 60).
Found by torture test.
Guenther
2010-05-28 02:49:37 +02:00
Günther Deschner
c5eeb0d155
s3-auth: fix c++ buildwarnings.
...
Guenther
2010-05-28 02:49:37 +02:00
Günther Deschner
38d69ca547
s3-build: remove duplicate ndr_krb5pac.h inclusion.
...
Guenther
2010-05-28 02:49:37 +02:00
Günther Deschner
6d194756e0
s3-build: use ndr_misc.h where needed.
...
Guenther
2010-05-28 02:49:36 +02:00
Günther Deschner
66adb84e46
s3-build: only use ndr_samr.h where needed.
...
Guenther
2010-05-28 02:49:36 +02:00
Günther Deschner
60079f59b0
s3-idl: fix some missing dependencies to other IDL files.
...
Guenther
2010-05-28 02:49:36 +02:00
Günther Deschner
30eeb1e3d9
s3-rpc_client: move protos to init_netlogon.h
...
Guenther
2010-05-28 02:49:36 +02:00
Simo Sorce
f888c82fe0
s3:auth Add comment to clarify usage of session keys.
...
Explain why we have what looks like a duplicate of session keys.
It is in fact not a duplicate.
2010-05-27 20:40:22 -04:00
Simo Sorce
20fb373202
s3:auth remove login_server from server info
...
It is not used anymore, we have that information in
info3->base.logon_server already
2010-05-27 19:41:07 -04:00
Simo Sorce
3bb819581b
Fix Out of memory checks
...
Günther pushed an older version of the patch "s3:auth add function to copy a
netr_SamInfo3 structure" that was missing these fixes.
2010-05-27 19:23:54 -04:00
Simo Sorce
2a6a696e32
s3:auth add function to convert wbcAuthUserInfo to netr_SamInfo3
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-28 01:20:09 +02:00
Simo Sorce
606be25ecf
s3:auth Free sampass as soon as we have server_info
...
We don't keep sampass in server_info anymore
So it makes no sense to keep it around.
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-28 00:56:02 +02:00
Simo Sorce
d9cffc01be
s3:auth use info3 in auth_serversupplied_info
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-28 00:55:53 +02:00
Simo Sorce
6713f3d945
s3:auth add function to copy a netr_SamInfo3 structure
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-28 00:55:27 +02:00
Simo Sorce
605cfef56c
s3:auth: add function to convert samu to netr_SamInfo3
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-28 00:55:17 +02:00
Kai Blin
49a80fe671
s3-waf: Fix typo
...
Sorry for the noise
2010-05-27 22:45:13 +02:00
Kai Blin
21e8548c0a
s3-waf: Also set "developer" env when building in developer mode
2010-05-27 22:42:59 +02:00
Volker Lendecke
abbf8efb24
s3: Fix a bad memleak in the async echo responder
2010-05-27 18:15:19 +02:00
Günther Deschner
eff13393b3
s3-waf: fix the build after tstream changes.
...
Guenther
2010-05-27 17:18:20 +02:00
Volker Lendecke
9b534ad145
s3: Remove an unused variable
2010-05-27 14:27:58 +02:00
Günther Deschner
869eed76e6
s3-lanman: use samr for api_RNetUserGetInfo.
...
Following MS-RAP 3.2.5.13 NetUserGetInfo Command.
Guenther
2010-05-27 13:37:40 +02:00
Holger Hetterich
dd895e526c
vfs_smb_traffic_analyzer.c: set the len variable when running protocol v1.
...
Signed-off-by: Andreas Schneider <asn@samba.org>
2010-05-27 10:27:07 +02:00
Stefan Metzmacher
85a3853249
s3:rpc_server: make use of the npa_tstream code to connect to named pipes
...
This way we use the newest protocol, which is able to pass
the local and remote address of the SMB connection.
And we correctly support message mode named pipes
without the hack that analyzes the content for DCERPC pdus.
metze
2010-05-27 07:13:59 +02:00