1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
Commit Graph

63253 Commits

Author SHA1 Message Date
Kai Blin
209555ef09 s3-waf: support avahi builds 2010-05-30 23:29:39 +02:00
Kai Blin
04d251a847 build: Also replace '-' by '_' when creating header defines
Tridge, please check
2010-05-30 23:29:29 +02:00
Kai Blin
8e2b69ca46 s3-waf: Add more darwin-specific options 2010-05-30 23:29:20 +02:00
Matthias Dieter Wallnöfer
5a0b3cf93d s4:tests/python/passwords.py - fix filter 2010-05-30 23:13:09 +02:00
Matthias Dieter Wallnöfer
327fa70f3f ldb:ldb_tdb/ldb_tdb.c - quiet a warning regarding TDB -> LDB error code conversions 2010-05-30 23:13:09 +02:00
Matthias Dieter Wallnöfer
463d5f0afc s4:samldb LDB module - deny delete operations on some important attributes
Add operations are denied since these are single-valued - only replace is
allowed.

This is only provisorily at the moment - we need to implement the triggers
specified in MS-ADTS.
2010-05-30 23:13:09 +02:00
Matthias Dieter Wallnöfer
092331d2d8 s4:ldap.py - add a test which shows the modification behaviour of important attributes
This shows how important attributes of SAM objects do behave when you launch
add and delete modify requests on them.
2010-05-30 23:13:08 +02:00
Matthias Dieter Wallnöfer
08653ac9c2 s4:samldb LDB module - rework the group change code to be again synchronous 2010-05-30 23:13:08 +02:00
Matthias Dieter Wallnöfer
c30c4529f5 s4:ldap.py - add more test cases to show invalid primary group change behaviour 2010-05-30 23:13:08 +02:00
Kai Blin
f3b04854b8 s3-waf: Set HAVE_GSSAPI if gssapi libs were found 2010-05-30 22:54:27 +02:00
Björn Jacke
6a78241f4a libreplace: include sys/file.h only when available
thanks to Joachim Schmitz <schmitz@hp.com>. This fixes #7460.
2010-05-30 21:46:35 +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
Matthias Dieter Wallnöfer
c2a3792e72 s4:dsdb/samdb/ldb_modules/util.c - make sure to always free temporary data 2010-05-30 20:52:11 +02:00
Matthias Dieter Wallnöfer
b7270fbc99 s4:dsdb_module_search_dn - add code to handle NULL format string 2010-05-30 20:52:10 +02:00
Matthias Dieter Wallnöfer
f927881028 s4:dsdb/common/util.c - fix a counter variable 2010-05-30 20:52:10 +02:00
Jelmer Vernooij
598656985a selftest: list.remove raises ValueError rather than KeyError. 2010-05-30 17:05:49 +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
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