kamenim/samba.git
14 years agos4/test: test_userinfo/_async tests should use passed user_name param value
Kamen Mazdrashki [Thu, 27 May 2010 14:10:31 +0000 (17:10 +0300)]
s4/test: test_userinfo/_async tests should use passed user_name param value

14 years agos4:web_server/wsgi.c - provide a better out-of-memory handling for an "asprintf"...
Matthias Dieter Wallnöfer [Fri, 28 May 2010 16:58:45 +0000 (18:58 +0200)]
s4:web_server/wsgi.c - provide a better out-of-memory handling for an "asprintf" call

14 years agos3:winbind Kill amusing but un-used winbindd_kill_all_clients
Andrew Bartlett [Thu, 13 May 2010 07:41:33 +0000 (17:41 +1000)]
s3:winbind Kill amusing but un-used winbindd_kill_all_clients

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agos3:lib s3:lib move get_global_sam_name to util_names.c
Andrew Bartlett [Wed, 26 May 2010 01:11:08 +0000 (11:11 +1000)]
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>
14 years agos3:lib split out global workgroup and netbios name functions.
Andrew Bartlett [Mon, 17 May 2010 06:25:26 +0000 (16:25 +1000)]
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>
14 years agos3:smbd move messaging_context and memcache into globals.c
Andrew Bartlett [Wed, 26 May 2010 00:48:15 +0000 (10:48 +1000)]
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>
14 years agos3:smbd split reload services/printers functions from server.c
Andrew Bartlett [Thu, 27 May 2010 05:18:58 +0000 (07:18 +0200)]
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>
14 years agos3:smbd split smbd/server.c into smbd/server.c and smbd/server_exit.c
Andrew Bartlett [Wed, 12 May 2010 21:48:04 +0000 (07:48 +1000)]
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>
14 years agos3-waf: Support builds with utmp accounting
Kai Blin [Fri, 28 May 2010 13:17:35 +0000 (15:17 +0200)]
s3-waf: Support builds with utmp accounting

14 years agos3-waf: Match the defines from the autotools build on PACKAGE_*
Kai Blin [Fri, 28 May 2010 12:35:01 +0000 (14:35 +0200)]
s3-waf: Match the defines from the autotools build on PACKAGE_*

14 years agos3-auth: Added a function to get the server_info from the system user.
Andreas Schneider [Wed, 14 Apr 2010 13:15:32 +0000 (15:15 +0200)]
s3-auth: Added a function to get the server_info from the system user.

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos3-samr: Fix crash bug in _samr_QueryUserInfo{2} level 18.
Günther Deschner [Fri, 28 May 2010 12:11:53 +0000 (14:11 +0200)]
s3-samr: Fix crash bug in _samr_QueryUserInfo{2} level 18.

Guenther

14 years agos4:build Don't automatically mark as 'not a git snapshot'.
Andrew Bartlett [Fri, 28 May 2010 10:34:08 +0000 (20:34 +1000)]
s4:build Don't automatically mark as 'not a git snapshot'.

If we generate a tarball, it may well be a git snapshot - we will
change the VERSION file if it really is a release.

Andrew Bartlett

14 years agos4:build use autotools for mkrelease.sh
Andrew Bartlett [Fri, 28 May 2010 10:33:28 +0000 (20:33 +1000)]
s4:build use autotools for mkrelease.sh

The mkrelease.sh script only works with the autotools build.  However,
it isn't recommended.

Andrew Bartlett

14 years agowaf Provide release signing capability in 'waf dist'
Andrew Bartlett [Fri, 28 May 2010 10:24:47 +0000 (20:24 +1000)]
waf Provide release signing capability in 'waf dist'

This helps ensure the release is signed correctly - the .tar file, not
the .tar.gz must be signed, and it's easy to forget this.

Andrew Bartlett

14 years agos4:waf Exclude the autotools based build environment from a Samba4 release
Andrew Bartlett [Fri, 28 May 2010 08:54:57 +0000 (18:54 +1000)]
s4:waf Exclude the autotools based build environment from a Samba4 release

14 years agowaf Add DIST_BLACKLIST to list files that we cannot include in a release
Andrew Bartlett [Fri, 28 May 2010 08:50:25 +0000 (18:50 +1000)]
waf Add DIST_BLACKLIST to list files that we cannot include in a release

This currently includes the source3 directory for Samba4 releases (per
past practice in mkrelease.sh), but also could include things like
DFSG-unfree RFC files in the future.

Andrew Barltett

14 years agos4:kdc Remove special talloc_free of the ldb context
Andrew Bartlett [Tue, 25 May 2010 09:54:24 +0000 (19:54 +1000)]
s4:kdc Remove special talloc_free of the ldb context

I can see no reason not to just let this go with the talloc tree that
created it, and avoid a talloc_free with references.

Andrew Bartlett

14 years agos3-waf: Fix the smbclient build with libcap
Kai Blin [Fri, 28 May 2010 11:20:10 +0000 (13:20 +0200)]
s3-waf: Fix the smbclient build with libcap

14 years agos3-waf: Detect which version of krb5_enctype_to_string is used
Kai Blin [Fri, 28 May 2010 10:59:04 +0000 (12:59 +0200)]
s3-waf: Detect which version of krb5_enctype_to_string is used

Pair-Programmed-With: Günther Deschner <gd@samba.org>

14 years agos3-waf: Fix the build of swat with --enable-cups
Kai Blin [Fri, 28 May 2010 10:58:23 +0000 (12:58 +0200)]
s3-waf: Fix the build of swat with --enable-cups

14 years agos4:client/client.c - we don't need "&ctx" for talloc calls
Matthias Dieter Wallnöfer [Fri, 28 May 2010 08:39:54 +0000 (10:39 +0200)]
s4:client/client.c - we don't need "&ctx" for talloc calls

Simply use "ctx".

14 years agos4:web_server/wsgi.c - fix "asprintf" call
Matthias Dieter Wallnöfer [Thu, 27 May 2010 15:45:19 +0000 (17:45 +0200)]
s4:web_server/wsgi.c - fix "asprintf" call

14 years agos4:utils/ntlm_auth.c - fix "asprintf" calls
Matthias Dieter Wallnöfer [Thu, 27 May 2010 15:41:39 +0000 (17:41 +0200)]
s4:utils/ntlm_auth.c - fix "asprintf" calls

14 years agos4:smbd/pidfile.c - fix "asprintf" calls
Matthias Dieter Wallnöfer [Thu, 27 May 2010 15:37:15 +0000 (17:37 +0200)]
s4:smbd/pidfile.c - fix "asprintf" calls

14 years agos4:scripting/python/modules.c - fix "asprintf" calls
Matthias Dieter Wallnöfer [Thu, 27 May 2010 15:36:33 +0000 (17:36 +0200)]
s4:scripting/python/modules.c - fix "asprintf" calls

14 years agos4:param/loadparm.c - fix "asprintf" call
Matthias Dieter Wallnöfer [Thu, 27 May 2010 15:28:52 +0000 (17:28 +0200)]
s4:param/loadparm.c - fix "asprintf" call

14 years agos4:ntvfs/simple/svfs_util.c - change an "asprintf" into a "talloc_asprintf"
Matthias Dieter Wallnöfer [Thu, 27 May 2010 15:18:03 +0000 (17:18 +0200)]
s4:ntvfs/simple/svfs_util.c - change an "asprintf" into a "talloc_asprintf"

14 years agos4:ntvfs/nbench/vfs_bench.c - change a "asprintf" into a "talloc_asprintf"
Matthias Dieter Wallnöfer [Thu, 27 May 2010 15:11:00 +0000 (17:11 +0200)]
s4:ntvfs/nbench/vfs_bench.c - change a "asprintf" into a "talloc_asprintf"

14 years agos4:libcli/clideltree.c - fix "asprintf"s
Matthias Dieter Wallnöfer [Thu, 27 May 2010 15:06:12 +0000 (17:06 +0200)]
s4:libcli/clideltree.c - fix "asprintf"s

14 years agos4:regshell - fix an "asprintf"
Matthias Dieter Wallnöfer [Thu, 27 May 2010 15:02:02 +0000 (17:02 +0200)]
s4:regshell - fix an "asprintf"

14 years agos4:regshell - don't use negative exit codes
Matthias Dieter Wallnöfer [Thu, 27 May 2010 15:00:50 +0000 (17:00 +0200)]
s4:regshell - don't use negative exit codes

14 years agos4:client/client.c - fix "asprintf"s
Matthias Dieter Wallnöfer [Thu, 27 May 2010 14:59:14 +0000 (16:59 +0200)]
s4:client/client.c - fix "asprintf"s

Fix the result values or change them into "talloc_asprintf"s where possible

see bug #6404

14 years agowaf Read VERSION file inside WAF to set package version
Andrew Bartlett [Fri, 28 May 2010 05:20:03 +0000 (15:20 +1000)]
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

14 years agos3-lanman: Fix api_RNetUserGetInfo level 2 marshalling offset calculation.
Günther Deschner [Thu, 27 May 2010 22:02:15 +0000 (00:02 +0200)]
s3-lanman: Fix api_RNetUserGetInfo level 2 marshalling offset calculation.

54 + 4 = 58 (and not 60).

Found by torture test.

Guenther

14 years agos3-auth: fix c++ buildwarnings.
Günther Deschner [Fri, 28 May 2010 00:47:12 +0000 (02:47 +0200)]
s3-auth: fix c++ buildwarnings.

Guenther

14 years agos3-build: remove duplicate ndr_krb5pac.h inclusion.
Günther Deschner [Fri, 28 May 2010 00:20:21 +0000 (02:20 +0200)]
s3-build: remove duplicate ndr_krb5pac.h inclusion.

Guenther

14 years agos3-build: use ndr_misc.h where needed.
Günther Deschner [Fri, 28 May 2010 00:20:02 +0000 (02:20 +0200)]
s3-build: use ndr_misc.h where needed.

Guenther

14 years agos3-build: only use ndr_samr.h where needed.
Günther Deschner [Fri, 28 May 2010 00:18:21 +0000 (02:18 +0200)]
s3-build: only use ndr_samr.h where needed.

Guenther

14 years agos3-idl: fix some missing dependencies to other IDL files.
Günther Deschner [Fri, 28 May 2010 00:16:38 +0000 (02:16 +0200)]
s3-idl: fix some missing dependencies to other IDL files.

Guenther

14 years agos3-rpc_client: move protos to init_netlogon.h
Günther Deschner [Thu, 27 May 2010 23:19:25 +0000 (01:19 +0200)]
s3-rpc_client: move protos to init_netlogon.h

Guenther

14 years agos3:auth Add comment to clarify usage of session keys.
Simo Sorce [Fri, 28 May 2010 00:40:22 +0000 (20:40 -0400)]
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.

14 years agos3:auth remove login_server from server info
Simo Sorce [Thu, 27 May 2010 23:41:07 +0000 (19:41 -0400)]
s3:auth remove login_server from server info

It is not used anymore, we have that information in
info3->base.logon_server already

14 years agoFix Out of memory checks
Simo Sorce [Thu, 27 May 2010 23:22:02 +0000 (19:22 -0400)]
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.

14 years agos3:auth add function to convert wbcAuthUserInfo to netr_SamInfo3
Simo Sorce [Thu, 27 May 2010 07:21:35 +0000 (03:21 -0400)]
s3:auth add function to convert wbcAuthUserInfo to netr_SamInfo3

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos3:auth Free sampass as soon as we have server_info
Simo Sorce [Thu, 27 May 2010 09:31:45 +0000 (05:31 -0400)]
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>
14 years agos3:auth use info3 in auth_serversupplied_info
Simo Sorce [Thu, 27 May 2010 07:41:56 +0000 (03:41 -0400)]
s3:auth use info3 in auth_serversupplied_info

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos3:auth add function to copy a netr_SamInfo3 structure
Simo Sorce [Thu, 27 May 2010 06:40:59 +0000 (02:40 -0400)]
s3:auth add function to copy a netr_SamInfo3 structure

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos3:auth: add function to convert samu to netr_SamInfo3
Simo Sorce [Thu, 27 May 2010 06:07:33 +0000 (02:07 -0400)]
s3:auth: add function to convert samu to netr_SamInfo3

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos4-smbtorture: finally test all levels in rap_NetUserGetInfo RAP-SAM test.
Günther Deschner [Thu, 27 May 2010 14:10:10 +0000 (16:10 +0200)]
s4-smbtorture: finally test all levels in rap_NetUserGetInfo RAP-SAM test.

Guenther

14 years agos4-smbtorture: remove obsolete handmarshalled rap code.
Günther Deschner [Thu, 29 Apr 2010 21:34:27 +0000 (23:34 +0200)]
s4-smbtorture: remove obsolete handmarshalled rap code.

Guenther

14 years agos4-smbtorture: we can fully use autogenerated code to pull info unions now.
Günther Deschner [Thu, 29 Apr 2010 23:09:46 +0000 (01:09 +0200)]
s4-smbtorture: we can fully use autogenerated code to pull info unions now.

Guenther

14 years agolibndr: add support for relative_rap_convert.
Günther Deschner [Thu, 29 Apr 2010 23:08:07 +0000 (01:08 +0200)]
libndr: add support for relative_rap_convert.

Will not harm anyone, is only used for rare short (2byte) relative pointers, and
relative_rap_convert is always 0 so far (as all init functions using struct
ndr_pull will zero the struct).

Guenther

14 years agos3-waf: Fix typo
Kai Blin [Thu, 27 May 2010 20:45:13 +0000 (22:45 +0200)]
s3-waf: Fix typo

Sorry for the noise

14 years agos3-waf: Also set "developer" env when building in developer mode
Kai Blin [Thu, 27 May 2010 20:42:23 +0000 (22:42 +0200)]
s3-waf: Also set "developer" env when building in developer mode

14 years agos3: Fix a bad memleak in the async echo responder
Volker Lendecke [Thu, 27 May 2010 16:12:30 +0000 (18:12 +0200)]
s3: Fix a bad memleak in the async echo responder

14 years agos3-waf: fix the build after tstream changes.
Günther Deschner [Thu, 27 May 2010 15:09:39 +0000 (17:09 +0200)]
s3-waf: fix the build after tstream changes.

Guenther

14 years agos3: Remove an unused variable
Volker Lendecke [Thu, 27 May 2010 12:27:58 +0000 (14:27 +0200)]
s3: Remove an unused variable

14 years agos3-lanman: use samr for api_RNetUserGetInfo.
Günther Deschner [Wed, 26 May 2010 21:36:33 +0000 (23:36 +0200)]
s3-lanman: use samr for api_RNetUserGetInfo.

Following MS-RAP 3.2.5.13 NetUserGetInfo Command.

Guenther

14 years agos4-smbtorture: create the user to test in test_usergetinfo() in RAP-SAM.
Günther Deschner [Thu, 27 May 2010 11:25:31 +0000 (13:25 +0200)]
s4-smbtorture: create the user to test in test_usergetinfo() in RAP-SAM.

Guenther

14 years agovfs_smb_traffic_analyzer.c: set the len variable when running protocol v1.
Holger Hetterich [Sun, 23 May 2010 21:18:58 +0000 (23:18 +0200)]
vfs_smb_traffic_analyzer.c: set the len variable when running protocol v1.

Signed-off-by: Andreas Schneider <asn@samba.org>
14 years agos3:rpc_server: make use of the npa_tstream code to connect to named pipes
Stefan Metzmacher [Tue, 27 Apr 2010 13:15:09 +0000 (15:15 +0200)]
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

14 years agos3:Makefile.in: add npa_tstream.o to the build of smbd
Stefan Metzmacher [Tue, 27 Apr 2010 13:08:02 +0000 (15:08 +0200)]
s3:Makefile.in: add npa_tstream.o to the build of smbd

metze

14 years agos3:rpc_server: pass down local and remote tsocket_address to np_open()
Stefan Metzmacher [Tue, 27 Apr 2010 13:12:32 +0000 (15:12 +0200)]
s3:rpc_server: pass down local and remote tsocket_address to np_open()

metze

14 years agos3:smbd: add PIPE_BUSY handling for SMBtrans calls on named pipes
Stefan Metzmacher [Wed, 28 Apr 2010 13:15:23 +0000 (15:15 +0200)]
s3:smbd: add PIPE_BUSY handling for SMBtrans calls on named pipes

metze

14 years agos3:rpc_server: add np_read_in_progress() function
Stefan Metzmacher [Wed, 28 Apr 2010 13:05:30 +0000 (15:05 +0200)]
s3:rpc_server: add np_read_in_progress() function

metze

14 years agos3:rpc_server: make sure we don't send uninitialized memory for the named_pipe_auth...
Stefan Metzmacher [Wed, 26 May 2010 08:43:19 +0000 (10:43 +0200)]
s3:rpc_server: make sure we don't send uninitialized memory for the named_pipe_auth handshake

metze

14 years agos3-net: fix the build.
Günther Deschner [Wed, 26 May 2010 21:17:35 +0000 (23:17 +0200)]
s3-net: fix the build.

Guenther

14 years agos4-smbtorture: add usergetinfo to RAP-SAM.
Günther Deschner [Wed, 26 May 2010 19:22:13 +0000 (21:22 +0200)]
s4-smbtorture: add usergetinfo to RAP-SAM.

Guenther

14 years agorap: use rap_LogonHours in rap_NetUserInfo11 as well.
Günther Deschner [Wed, 26 May 2010 20:55:45 +0000 (22:55 +0200)]
rap: use rap_LogonHours in rap_NetUserInfo11 as well.

Guenther

14 years agos3-waf: more work on krb5 build.
Günther Deschner [Wed, 26 May 2010 11:29:35 +0000 (13:29 +0200)]
s3-waf: more work on krb5 build.

Guenther

14 years agos3-waf: Allow to build with kerberos support
Kai Blin [Tue, 25 May 2010 15:53:16 +0000 (17:53 +0200)]
s3-waf: Allow to build with kerberos support

14 years agos3-lanman: remove defines now provided by IDL.
Günther Deschner [Wed, 26 May 2010 20:49:01 +0000 (22:49 +0200)]
s3-lanman: remove defines now provided by IDL.

Guenther

14 years agorap: fix typo in IDL.
Günther Deschner [Wed, 26 May 2010 20:48:32 +0000 (22:48 +0200)]
rap: fix typo in IDL.

Guenther

14 years agos3-waf: fix the build after chgpasswd.c changes.
Günther Deschner [Wed, 26 May 2010 20:32:32 +0000 (22:32 +0200)]
s3-waf: fix the build after chgpasswd.c changes.

Guenther

14 years agos4-smbtorture: add smbcli_rap_netusergetinfo().
Günther Deschner [Wed, 26 May 2010 18:59:40 +0000 (20:59 +0200)]
s4-smbtorture: add smbcli_rap_netusergetinfo().

Guenther

14 years agorap: add rap_NetUserGetInfo IDL.
Günther Deschner [Wed, 26 May 2010 18:54:50 +0000 (20:54 +0200)]
rap: add rap_NetUserGetInfo IDL.

Guenther

14 years agos3-samr: move chgpasswd.c out of smbd and into the samr server.
Günther Deschner [Tue, 18 May 2010 10:06:23 +0000 (12:06 +0200)]
s3-samr: move chgpasswd.c out of smbd and into the samr server.

Guenther

14 years agos3-smbd: remove unused change/check_lanman_password.
Günther Deschner [Fri, 7 May 2010 17:26:06 +0000 (19:26 +0200)]
s3-smbd: remove unused change/check_lanman_password.

Guenther

14 years agos3-lanman: parse encrypted and min_pwd_length in api_SetUserPassword().
Günther Deschner [Tue, 11 May 2010 00:24:43 +0000 (02:24 +0200)]
s3-lanman: parse encrypted and min_pwd_length in api_SetUserPassword().

Guenther

14 years agos3-lanman: use samr for api_SetUserPassword().
Günther Deschner [Fri, 7 May 2010 12:37:25 +0000 (14:37 +0200)]
s3-lanman: use samr for api_SetUserPassword().

Guenther

14 years agoflags.h - fix comment for "GTYPE_SECURITY_UNIVERSAL_GROUP" constant
Matthias Dieter Wallnöfer [Wed, 26 May 2010 15:41:50 +0000 (17:41 +0200)]
flags.h - fix comment for "GTYPE_SECURITY_UNIVERSAL_GROUP" constant

14 years agos3:Makefile: add missing linker flags for smbfilter
Björn Jacke [Wed, 26 May 2010 15:22:24 +0000 (17:22 +0200)]
s3:Makefile: add missing linker flags for smbfilter

this should fix the AIX build

14 years agos3:Makefile: fix a typo in flag variable name
Björn Jacke [Wed, 26 May 2010 15:18:59 +0000 (17:18 +0200)]
s3:Makefile: fix a typo in flag variable name

14 years agos3-printing: fix buildwarning in publishing code after registry changes.
Günther Deschner [Wed, 26 May 2010 13:14:20 +0000 (15:14 +0200)]
s3-printing: fix buildwarning in publishing code after registry changes.

Guenther

14 years agos3-lanman: Migrated to rpc_connect_spoolss_pipe().
Simo Sorce [Wed, 28 Apr 2010 14:23:48 +0000 (10:23 -0400)]
s3-lanman: Migrated to rpc_connect_spoolss_pipe().

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos3-rpc_server: Created a per connection spoolss pipe.
Simo Sorce [Wed, 28 Apr 2010 13:51:12 +0000 (09:51 -0400)]
s3-rpc_server: Created a per connection spoolss pipe.

This way all code can reuse the same connection to spoolss
and not have to deal with the creation of a new pipe all over the
code every time we need to ask a service off spoolss.

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos3-waf: Build smbclient binary
Kai Blin [Wed, 26 May 2010 12:09:39 +0000 (14:09 +0200)]
s3-waf: Build smbclient binary

14 years agos3-waf: Fix the naming of some variables introduced recently
Kai Blin [Wed, 26 May 2010 12:09:06 +0000 (14:09 +0200)]
s3-waf: Fix the naming of some variables introduced recently

14 years agos4/test: Connect SAMR and LDARPC pipes before calling libnet_ functions
Kamen Mazdrashki [Wed, 26 May 2010 01:22:34 +0000 (04:22 +0300)]
s4/test: Connect SAMR and LDARPC pipes before calling libnet_ functions

In multi-DC environment, NBT name resolution may resolv
domain name to any of DCs.
This make this test to fail, as we are modifying the user account
on one DC and query user info immediately after that on another DC.

14 years agos4/test: remove unused code
Kamen Mazdrashki [Wed, 26 May 2010 10:32:13 +0000 (13:32 +0300)]
s4/test: remove unused code

There is no need anymore to modify samAccountName
of the testing user to original value as test_cleanup()
will spot the right samAccountName to delete

14 years agos4/test: make test_cleanup() in libnet_user library more robust
Kamen Mazdrashki [Wed, 26 May 2010 10:27:07 +0000 (13:27 +0300)]
s4/test: make test_cleanup() in libnet_user library more robust

test_cleanup() is called always with RDN name of the user to be deleted.
When modify-user test fails however, we end up with a user
with RDN = libnetusertest and samAccountName = random_name.
This way we can not delete the user and the error message is
quite misleading (I've spent a *lot* of time trying to figure out
if the database is corrupted because of this error).

14 years agos4/test: rename enum test_fields{} member names to be more descriptive
Kamen Mazdrashki [Tue, 25 May 2010 14:24:45 +0000 (17:24 +0300)]
s4/test: rename enum test_fields{} member names to be more descriptive

14 years agos4/test: Replace hand-made field count to test
Kamen Mazdrashki [Sat, 22 May 2010 02:03:16 +0000 (05:03 +0300)]
s4/test: Replace hand-made field count to test

This patch replaces hand-make count of fields to be tested
with defines for FIRST-LAST value for corresponding fields
to test with.

As a side-effect, 'acct_flags' is now included in tests.

14 years agos3:configure: use the right AC_CACHE_CHECK variable
Björn Jacke [Wed, 26 May 2010 08:18:03 +0000 (10:18 +0200)]
s3:configure: use the right AC_CACHE_CHECK variable

14 years agos4:smbd: Use tstream_npa_accept_existing to accept named pipe connections
Simo Sorce [Fri, 21 May 2010 16:29:22 +0000 (12:29 -0400)]
s4:smbd: Use tstream_npa_accept_existing to accept named pipe connections

Pair-programmed-with: Stefan Metzmacher <metze@samba.org>

14 years agos4:smbd: Add tstream to the stream_connection structure
Simo Sorce [Fri, 21 May 2010 14:34:58 +0000 (10:34 -0400)]
s4:smbd: Add tstream to the stream_connection structure

14 years agonamed_pipe_auth: implement tstream_npa_accept_existing_send/recv
Simo Sorce [Wed, 19 May 2010 21:02:52 +0000 (17:02 -0400)]
named_pipe_auth: implement tstream_npa_accept_existing_send/recv

Pair-programmed-with: Stefan Metzmacher <metze@samba.org>

14 years agos3-waf: Check for additional options on *xattr
Kai Blin [Tue, 25 May 2010 22:16:10 +0000 (00:16 +0200)]
s3-waf: Check for additional options on *xattr

14 years agos3-waf: Add darwin to the host_os-specific checks
Kai Blin [Tue, 25 May 2010 21:57:41 +0000 (23:57 +0200)]
s3-waf: Add darwin to the host_os-specific checks