1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
Commit Graph

63235 Commits

Author SHA1 Message Date
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
Matthias Dieter Wallnöfer
55df7606e3 Revert "s4:rpc_server/dcesrv_auth.c - Fix a RPC issue in conjunction with Windows 2000"
This reverts commit 1cf5be39e3.

My fix approach isn't such appreciated therefore revert this.
2010-05-30 14:53:36 +02:00
Matthias Dieter Wallnöfer
1cf5be39e3 s4:rpc_server/dcesrv_auth.c - Fix a RPC issue in conjunction with Windows 2000
Windows 2000 does strictly request header signing on some requests also if the
server doesn't provide it. But there is a small trick (don't reset the actual
session info) to make these special RPC operations work without a full header
signing implementation.

This fixes for example the list of domain groups in local groups when displayed
sing the local user/group management tool.

And this should finally fix bug #7113.

The patch was inspired by another one by tridge and abartlet: http://gitweb.samba.org/samba.git/?p=tridge/samba.git;a=commitdiff;h=2dc19e2878371264606575d3fc09176776be7729
2010-05-30 12:39:30 +02:00
Matthias Dieter Wallnöfer
76cd237ee5 s4:web_server/wsgi.c - free the "env" and "inputstream" objects on an "asprintf" failure 2010-05-30 11:12:25 +02:00
Matthias Dieter Wallnöfer
9bfd2c8ebc s4:auth/credentials/credentials.c - initialise "password_last_changed_time"
Otherwise it could remain uninitialised.
2010-05-30 11:12:24 +02:00
Matthias Dieter Wallnöfer
f1d7d6d4df nss_wrapper/testsuite.c - make sure to test always the "NSS wrapper" calls
This should fix bug #7319 and #7320.
2010-05-30 11:12:24 +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
Günther Deschner
a8d308faff s3-selftest: fix chmod commands in provisioning.
Guenther
2010-05-29 00:38:21 +02:00
Günther Deschner
5232ce56cd s3-selftest: make sure provisioned s3 looks the same in make selftest as in make test.
This fixes some tests that were previously failing.

Guenther
2010-05-29 00:12:15 +02:00
Kamen Mazdrashki
c9c8de3dcb s4/test-libnet: Remove multiple test_samr_close() impelementations
We now have a nice common test_samr_close_handle() function to use
2010-05-28 22:30:10 +03:00
Kamen Mazdrashki
c742f59bd2 s4/test-libnet-user: Remove test_createuser()
We have same functionality already implemented by
test_user_create() in libnet/utils.c
2010-05-28 22:30:10 +03:00
Kamen Mazdrashki
0f2263016f s4/test-libnet-utils: refactor test_user_create()
- param names made more clear what they stand for
- user RID out param is now optional, so that this function may
  be used in cases where we don't need user RID
- SAMR connection handle is closed as it is not used further
  (we should play nice with servers)
2010-05-28 22:30:09 +03:00
Kamen Mazdrashki
8dedb4d06e s4/test: remove local impl for open_domain and use common one 2010-05-28 22:30:09 +03:00
Kamen Mazdrashki
fce427134d s4/test: remove torture/libnet/utils.h as we are using proto.h now 2010-05-28 22:30:09 +03:00
Kamen Mazdrashki
1118c7b0e4 s4/test: change prototype for test_opendomain()
- name changed to test_domain_open to be more alike athore functions
  in utils.c file
- output parameters moved to the end param list definition just
  after mem_ctx so it is somehow more clear those params are OUT
2010-05-28 22:30:08 +03:00
Kamen Mazdrashki
8e3a433f93 s4/test: Refactor test_opendomain to address following
- param names made more clear what they stand for
- dom_sid out param is now optional, so that this function may
  be used in cases where we don't need dom_sid
- SAMR connection handle is closed as it is not used further
2010-05-28 22:30:08 +03:00
Kamen Mazdrashki
3a899e24d5 s4/test: make samr_close handle functio public
It is to be used further for closing opened handles when testing
using SAMR interface
2010-05-28 22:30:08 +03:00
Kamen Mazdrashki
cf79435545 s4/test: refactor NET-USERINFO test to be more 'torture' friendly
Test may be further refactored to be converted as a test case
(what it is actually)
2010-05-28 22:30:07 +03:00
Kamen Mazdrashki
2053403045 s4/test: test_userinfo/_async tests should use passed user_name param value 2010-05-28 22:30:07 +03:00
Matthias Dieter Wallnöfer
f11cf62016 s4:web_server/wsgi.c - provide a better out-of-memory handling for an "asprintf" call 2010-05-28 18:58:45 +02: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
Andrew Bartlett
e5fca6aebf 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
2010-05-28 21:59:14 +10:00
Andrew Bartlett
b088a27551 s4:build use autotools for mkrelease.sh
The mkrelease.sh script only works with the autotools build.  However,
it isn't recommended.

Andrew Bartlett
2010-05-28 21:59:12 +10:00
Andrew Bartlett
7ea7b23413 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
2010-05-28 21:59:08 +10:00
Andrew Bartlett
708d6fc5b0 s4:waf Exclude the autotools based build environment from a Samba4 release 2010-05-28 21:59:07 +10:00
Andrew Bartlett
b50c006e20 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
2010-05-28 21:59:07 +10:00
Andrew Bartlett
e5232bdc69 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
2010-05-28 21:59:04 +10: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
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
ce99f9e734 s4:web_server/wsgi.c - fix "asprintf" call 2010-05-28 10:04:48 +02:00
Matthias Dieter Wallnöfer
fe2a607640 s4:utils/ntlm_auth.c - fix "asprintf" calls 2010-05-28 10:04:48 +02:00
Matthias Dieter Wallnöfer
a64262697a s4:smbd/pidfile.c - fix "asprintf" calls 2010-05-28 10:04:47 +02:00
Matthias Dieter Wallnöfer
67b2c424ce s4:scripting/python/modules.c - fix "asprintf" calls 2010-05-28 10:04:47 +02:00
Matthias Dieter Wallnöfer
e831af7f07 s4:param/loadparm.c - fix "asprintf" call 2010-05-28 10:04:47 +02:00