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

15346 Commits

Author SHA1 Message Date
Kai Blin
2d12b275f3 util: Add talloc_get_type_abort() call.
(This used to be commit 38413ed4b6)
2008-04-02 23:05:44 +02:00
Jelmer Vernooij
753824e9cf Re-add params file to git.
(This used to be commit fc50e78e26)
2008-04-02 19:05:31 +02:00
Jelmer Vernooij
4e5e7a7c68 Reintroduce header previously autogenerated but ignored by git.
Also fixed extra include in regpatch.
(This used to be commit 0e371cf169)
2008-04-02 16:47:17 +02:00
Jelmer Vernooij
b17484a70f Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into openchange
(This used to be commit 8c3591d98f)
2008-04-02 14:33:56 +02:00
Jelmer Vernooij
caaa8f5b93 Remove no longer installed files.
(This used to be commit 3e8aecbc2e)
2008-04-02 14:23:22 +02:00
Jelmer Vernooij
1cf8130e11 Move handle utility functions to public header, remove more public headers.
(This used to be commit 92e71c19f4)
2008-04-02 14:18:31 +02:00
Jelmer Vernooij
4924446969 Trim down installed headers some more.
(This used to be commit 71aa38842c)
2008-04-02 14:10:16 +02:00
Jelmer Vernooij
ec7394e7d2 Merge hive.h into registry.h
(This used to be commit 3ca14fdf74)
2008-04-02 13:59:48 +02:00
Jelmer Vernooij
5be50a222f Merge patchfile.h into registry.h
(This used to be commit 7b434df67a)
2008-04-02 13:58:05 +02:00
Jelmer Vernooij
236fc02913 Reduce the number of installed headers.
(This used to be commit 2243e24024)
2008-04-02 13:41:10 +02:00
Jelmer Vernooij
afe3e8172d Install public header files again and include required prototypes.
(This used to be commit 47ffbbf674)
2008-04-02 04:53:27 +02:00
Andrew Bartlett
67bf4bab3d Fix conflicts in setup/provision script.
(This used to be commit 696b58f5dd)
2008-04-02 12:31:24 +11:00
Andrew Bartlett
4ccb384327 Fix merge of my host GUID removal and the IPv6 addition to provision
Merge branch 'v4-0-ipv6' of git://git.id10ts.net/samba into 4-0-abartlet

Andrew Bartlett
(This used to be commit d3336684f0)
2008-04-02 12:03:03 +11:00
Andrew Kroeger
3c0c6acc59 provision: Add support for IPv6 (bz #4593).
(This used to be commit 8585a3c77d)
2008-04-01 19:51:24 -05:00
Andrew Bartlett
2ab6dd9ea5 Remove references to setting the host GUID, as the repl_meta_data
module prohibits it anyway.

Andrew Bartlett
(This used to be commit c5b287c056)
2008-04-02 11:38:58 +11:00
Jelmer Vernooij
7b608fd288 Don't write public functions to protoheaders.
Since the public functions can be used by external parties we should
make changing their signature as hard as possible. It's also a lot
easier to document functions in manually written headers.
(This used to be commit 0528e30cf7)
2008-04-02 00:01:04 +02:00
Jelmer Vernooij
bebb7b890c Add warning to public headers.
(This used to be commit 7bfe359c73)
2008-04-01 16:18:31 +02:00
Jelmer Vernooij
21f1f3aa68 Include right perl directory when installed.
(This used to be commit 9692a48aeb)
2008-04-01 16:08:21 +02:00
Jelmer Vernooij
696ab2662e Install samba-hostconfig library.
(This used to be commit 4d1fb503de)
2008-04-01 16:05:54 +02:00
Jelmer Vernooij
55ff0149ea Install pidl to the same directory as Samba.
(This used to be commit e67d8c7b6a)
2008-04-01 16:03:31 +02:00
Jelmer Vernooij
4708c66fd2 Fix dependency on samba-hostconfig.
(This used to be commit ba91b609f5)
2008-04-01 15:53:45 +02:00
Jelmer Vernooij
39b2fc37f2 Add context pointer to secrets functions.
(This used to be commit 873941d8a8)
2008-04-01 15:26:00 +02:00
Jelmer Vernooij
7fd96c5b04 Add userdata argument to reseed callback function.
(This used to be commit d4272bc6bc)
2008-04-01 15:17:18 +02:00
Jelmer Vernooij
f41b9a9dde Rename libsamba-config to libsamba-hostconfig.
(This used to be commit c46b7e90e3)
2008-04-01 15:08:30 +02:00
Jelmer Vernooij
0ef6489eb1 Add README file explaining param/.
(This used to be commit 03226035aa)
2008-04-01 15:03:24 +02:00
Jelmer Vernooij
14a54761d9 Move ini-like file parser to the utility library.
(This used to be commit 2dc2bb800d)
2008-04-01 14:51:06 +02:00
Andrew Bartlett
3237b14e3f On our way to alpha4...
(This used to be commit d947310b94)
2008-03-29 18:17:15 +11:00
Andrew Bartlett
238a1a52f1 Rework 'compleated' message in provision to be more useful.
In particular, this should draw attention to accidential 'standalone'
server provisions and therefore cause less frustration.

Andrew Bartlett
(This used to be commit e906ae041a)
2008-03-29 17:17:56 +11:00
Andrew Kroeger
e96592fedf Makefile: Allow "make" with no arguments to build all that will be installed.
(This used to be commit 982acd6f80)
2008-03-29 00:06:02 -05:00
Andrew Kroeger
0ea02e8126 mkrelease: Add checks to ensure run from top-level directory of repository.
(This used to be commit 7d4c02fdfc)
2008-03-28 22:53:01 -05:00
Andrew Bartlett
bf0db7eb03 Add a few more safety catches to the mkrelease.sh script.
Andrew Bartlett
(This used to be commit 96eb3f1691)
2008-03-29 14:37:09 +11:00
Andrew Bartlett
1d29ab2536 Don't leave release trees hanging around
Andrew Bartlett
(This used to be commit e06911de33)
2008-03-29 14:23:43 +11:00
Andrew Bartlett
40bcb11d29 Merge branch 'v4-0-test' of git://git.id10ts.net/samba into 4-0-local
(This used to be commit f39af7c2c3)
2008-03-29 14:14:25 +11:00
Andrew Kroeger
7ddcb20d15 mkrelease: Update to work with Git instead of SVN.
(This used to be commit 66efff41a7)
2008-03-28 21:55:09 -05:00
Andrew Bartlett
1c1c6fca66 Fix more valgrind issues.
This passes down the timeout more consistantly, and ensures that no
matter how the modules screw up, we don't free() the memory we are
going to write into the ASN1 packet until we actually write it out.

Andrew Bartlett
(This used to be commit eefd46289b)
2008-03-29 13:32:15 +11:00
Andrew Bartlett
e0c90d6131 Fix some valgrind issues.
These small changes seem to fix some of the early issues in 'make
valgrindtest'

Previously, the subtree_delete code didn't pass on the timeout,
leaving it uninitialised.

The ldap_server/ldap_backend.c change tidies up the talloc hierarchy a
bit.

Andrew Bartlett
(This used to be commit 95314f29a9)
2008-03-29 11:18:00 +11:00
Andrew Bartlett
77cbab18b5 Finally found the magic string to skip the python registry tests.
(I really do wish it was clear what strings should be used in this file)

Until these tests authenticate, we can't pass against Samba4, and they
never could pass against AD.

Andrew Bartlett
(This used to be commit 6e863e5fec)
2008-03-29 09:43:58 +11:00
Andrew Bartlett
5c4e340ee3 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
(This used to be commit 764b7879d2)
2008-03-28 22:04:52 +11:00
Andrew Bartlett
142fbfb3c1 Fix and test python scripts and kerberos
This fixes up the python credentials interface in a number of areas,
with the aim of supporting '-k yes' as a command line option.  (This
enables the use of kerberos).

As such, I've had to change the get_credentials call to take a
loadparm context, so that the credentials can be initialised
correctly.

The test_kinit script has been modified to prove that this continues
to work, as well as to provide greater code coverage of the kerberos
paths.

Andrew Bartlett
(This used to be commit 727ef40c2b)
2008-03-28 21:57:15 +11:00
Stefan Metzmacher
52013b846a torture: fix compiler warnings
metze
(This used to be commit 326ae6ce9c)
2008-03-28 09:40:08 +01:00
Stefan Metzmacher
341c6b46b3 libcli/security: fix compiler warnings
metze
(This used to be commit 91dd223bd4)
2008-03-28 09:39:32 +01:00
Stefan Metzmacher
2e3cf7843f cldap_server: fix compiler warning
metze
(This used to be commit a6cd4e7509)
2008-03-28 09:39:03 +01:00
Stefan Metzmacher
02e8a32f59 libreplace(samba4): let LIBREPLACE depend on LIBREPLACE_NETWORK for now
This should fix the build on solaris.
Later this needs better fixing...

metze
(This used to be commit 89b7955733)
2008-03-28 07:56:20 +01:00
Andrew Kroeger
8f8c56bfbc Convert some more files to GPLv3.
(This used to be commit ebe5e83994)
2008-03-28 01:08:49 -05:00
Andrew Bartlett
71e79728ec Add tool for enabling accounts
(This used to be commit 2e14b4ea64)
2008-03-28 03:46:23 +11:00
Andrew Bartlett
786deaf928 Make the setup/newuser and setup/setpassword scripts actually work...
These need a testsuite, but this will come soon.

Andrew Bartlett
(This used to be commit fbcaa622bd)
2008-03-28 12:08:54 +11:00
Jelmer Vernooij
0cffe98049 Merge branch 'v4-0-local' of git://git.id10ts.net/samba into v4-0-test
(This used to be commit b6c61bee64)
2008-03-28 01:00:48 +01:00
Andrew Bartlett
4eb694389c No longer install SWAT files
Andrew Bartlett
(This used to be commit cd275862c6)
2008-03-28 10:39:22 +11:00
Andrew Bartlett
4ddce8c28c Don't specify what should be a default option in the generated smb.conf
Instead, sub in "", so that the default continued to come from the code.

Andrew Bartlett
(This used to be commit b1829da8f7)
2008-03-28 10:38:12 +11:00
Andrew Bartlett
de80e63efa Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
(This used to be commit 59d8d17093)
2008-03-28 10:19:21 +11:00
Andrew Bartlett
b422a78df2 Fix 'oplocks' in loadparm.
I forgot one more place where I must specify the new config option.  I
wish this was more templated...

Andrew Bartlett
(This used to be commit 5a740f4daa)
2008-03-28 10:18:06 +11:00
Andrew Kroeger
b2c6ba69a4 provision: Increase max NetBIOS name length from 13 to 15.
Issue originally reported by user Julsa-FR on IRC.
(This used to be commit ee9ad77009)
2008-03-27 16:30:18 -05:00
Jelmer Vernooij
e15b35e389 Remove define that appears to cause configure test breakage on Julien's machine.
(This used to be commit f47df57615)
2008-03-27 22:26:37 +01:00
Kai Blin
677dc6aa89 provision: Initialize uninitialized variables if "targetdir" is not
defined and there is no smb.conf file
(This used to be commit 19c29f4738)
2008-03-27 17:49:56 +01:00
Michael Adam
35f33a2640 libreplace: fix coverity ID 517 - untangle close from open in test/os2_delete.c
This is not a proper bug but the code is clearer now
and we are tracking failure of open separate from that of close.

Michael
(This used to be commit 4ae4692bc6)
2008-03-27 11:56:51 +01:00
Andrew Bartlett
d554590d33 Fix how we initialise the oplocks parameter.
Andrew Bartlett
(This used to be commit 08ec91958d)
2008-03-27 21:00:04 +11:00
Andrew Bartlett
91ae032c53 Actually call into lp_oplocks() in share_classic backend.
Andrew Bartlett
(This used to be commit 2c18482b19)
2008-03-27 20:50:39 +11:00
Andrew Bartlett
7f2927528c Fix references to ntvfs share config
Andrew Bartlett
(This used to be commit 4e4152dfd7)
2008-03-27 20:40:40 +11:00
Andrew Bartlett
c24b8cbe53 Merge with metze's change for oplocks to be on by default
Andrew Bartlett
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local

Conflicts:

	source/ntvfs/common/opendb_tdb.c
(This used to be commit 7c7a1a2b1f)
2008-03-27 20:38:36 +11:00
Andrew Bartlett
4fc27c9969 Make oplocks a per-share option.
This even goes via the share options system (a very odd layer of indirection).

Andrew Bartlett
(This used to be commit f2c65f9907)
2008-03-27 20:32:02 +11:00
Stefan Metzmacher
2c9ee20f15 selfteset: oplocks are enabled by default now
metze
(This used to be commit 9342c4f5ff)
2008-03-27 10:12:19 +01:00
Stefan Metzmacher
71e2f7d260 opendb_tdb: enable oplocks per default
metze
(This used to be commit 225a9852ee)
2008-03-27 10:11:48 +01:00
Andrew Bartlett
4bb658d5c8 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
(This used to be commit e109567308)
2008-03-26 15:42:43 +11:00
Andrew Bartlett
d5a71ed633 Remove old js versions of newuser and provision.
Andrew Bartlett
(This used to be commit 861a85985d)
2008-03-26 15:42:20 +11:00
Andrew Bartlett
ff8256ad6c Clean up the ldb python bindings to be 64 bit safe.
Thanks in particular to arkanes and KirkMcDonald on #python for their
assistance, suggesting breaking the DN check.

I eventually found it while trying to cut down on the number of gcc
warnings, which is why we also add printf annotations.

Andrew Bartlett
(This used to be commit ba30e82d4e)
2008-03-26 15:18:17 +11:00
Günther Deschner
07251792d4 Add some more header properties as inline comments to the generated samba3 client.
Guenther
(This used to be commit 8ca4b0b094)
2008-03-25 17:42:08 +01:00
Andrew Bartlett
5738491674 Remove pointless cast
(This used to be commit 9a1466abbd)
2008-03-25 16:36:13 +11:00
Andrew Bartlett
dc49ae599e Remove useless extra argument to samdb_result_account_expires().
Andrew Bartlett
(This used to be commit bc607c334f)
2008-03-25 15:25:13 +11:00
Andrew Bartlett
2d08a03c50 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
(This used to be commit 3903ef9168)
2008-03-25 10:29:35 +11:00
Volker Lendecke
482f33077b Add my copyright
If I remember it right and when I look at the git log, then this way to do the
async functions was designed by me.
(This used to be commit 8d44f997c8)
2008-03-21 10:36:58 +01:00
Volker Lendecke
ce98599c14 Prove that a setuserinfo level 25 does set the pwdlastset field
Very likely this is not the full story, but as it happens so often this proof
is needed to fix a direct s3 bug.
(This used to be commit 16b4a3685b)
2008-03-20 23:17:44 +01:00
Volker Lendecke
21c7afd9b0 Add the workstation to the anon sessetup credentials
Without this patch the RPC-SAMBA3SESSIONKEY against W2k3 gives
INVALID_PARAMETER for the anonymous session setup
(This used to be commit eb459be878)
2008-03-20 23:17:37 +01:00
Volker Lendecke
1c9fe1157c Fix a warning
Without this patch I get
./libcli/security/proto.h:45: warning: 'struct auth_session_info' declared inside parameter list
(This used to be commit 078a6fdb3f)
2008-03-20 23:15:46 +01:00
Andrew Bartlett
89870f2d9a Explain why this attribute should be skipped.
Andrew Bartlett
(This used to be commit 7503f93f2f)
2008-03-20 15:14:49 +11:00
Andrew Bartlett
21507f3b7d Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
(This used to be commit 7c4356084a)
2008-03-20 13:25:05 +11:00
Andrew Bartlett
9a1bec0801 More kludge ACLs!
Rather than killing off the nasty 'kludge ACLs' stuff, this patch
extends it, to ensure that LSA secrets and the registry are also
protected.

Andrew Bartlett
(This used to be commit 2f2b110fb8)
2008-03-20 12:12:10 +11:00
Kai Blin
028ba4682c ntlm_auth: Improve compliance to the Squid helper protocol.
This fixes bug #4235 for Samba4.
(This used to be commit b6bb762105)
2008-03-20 00:44:29 +01:00
Andrew Bartlett
79a25a648d Indent
Andrew Bartlett
(This used to be commit d2b5f40d80)
2008-03-19 12:06:37 +11:00
Andrew Bartlett
a08e951eb8 Remove unused variable.
(This used to be commit 1de21f5fdd)
2008-03-19 11:15:04 +11:00
Andrew Bartlett
5af56a613c More safety around ldb_dn C functions in python bindings.
Ensure that the ldb python binding 'TypeError dn not set' errors are
not in the SWIG wrapper's use of ldb functions, put some more error
checks in.

Andrew Bartlett
(This used to be commit 8d4c831184)
2008-03-19 11:11:55 +11:00
Andrew Bartlett
576540b25c Supply HDB_DB_DIR macro
While we don't use the default HDB directories, the code needs this
macro defined.

Andrew Bartlett
(This used to be commit b5dbdef158)
2008-03-19 11:10:19 +11:00
Andrew Bartlett
aaf62085dd Merge branch 'v4-0-logon' of git://git.id10ts.net/samba into 4-0-local
(This used to be commit 8252b51850)
2008-03-19 11:04:42 +11:00
Andrew Bartlett
b1b37e3776 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
(This used to be commit 400c16e700)
2008-03-19 10:18:35 +11:00
Andrew Bartlett
9e6b0c2871 Merge lorikeet-heimdal -r 787 into Samba4 tree.
Andrew Bartlett
(This used to be commit d88b530522)
2008-03-19 10:17:42 +11:00
Stefan Metzmacher
52669d8472 lib/util: use LIBREPLACE_NETWORK as EXT_NSL doesn't exist anymore
metze
(This used to be commit b7dad8674a)
2008-03-18 18:04:23 +01:00
Stefan Metzmacher
96197fa871 libndr: EXT_NSL doesn't exist anymore, but it wasn't needed anyway
metze
(This used to be commit 33347928e1)
2008-03-18 18:04:23 +01:00
Stefan Metzmacher
d46636950d socket_wrapper: use LIBREPLACE_NETWORK because EXT_SOCKET and EXT_NSL doesn't exist anymore
metze
(This used to be commit 1dd8e37756)
2008-03-18 18:04:22 +01:00
Stefan Metzmacher
0372704fa2 heimdal_build: use LIBREPLACE_NETWORK because EXT_SOCKET and EXT_NSL doesn't exist anymore
metze
(This used to be commit 0fb3d24621)
2008-03-18 18:04:22 +01:00
Michael Adam
a310b0b843 libreplace: replace.c does not need system/network.h anymore.
Michael
(This used to be commit 2d3c2f34f3)
2008-03-18 17:50:23 +01:00
Michael Adam
124f82efe1 libreplace: move rep_socketpair() to its own module.
Prototype is now in system/network.h,
implementation in socketpair.c, and
check in socketpair.m4.

Now the last networking function has vanished from replace.c.

Michael
(This used to be commit 94ac8a25be)
2008-03-18 17:21:18 +01:00
Stefan Metzmacher
7d336254ce ldb: not every shell supports '==' so use '='
metze
(This used to be commit b5eeaf9b27)
2008-03-18 16:53:21 +01:00
Gerald W. Carter
1268be9f88 Fix macro name (no 's' in ifr_addr).
Interface detection on Solaris still failing due to items pointed out here:
http://lists.samba.org/archive/samba-technical/2007-November/056701.html
(cherry picked from commit 37c87acc9d)
(This used to be commit 5757d8dfe9)
2008-03-18 16:40:46 +01:00
Volker Lendecke
6f6d38d24a Fix Coverity ID 554
(cherry picked from commit 471b1b0c58)
(This used to be commit effda48a26)
2008-03-18 16:40:46 +01:00
Volker Lendecke
7fb3963032 Check the return value of fgets
(cherry picked from commit b8aaa9a69f)
(This used to be commit 8f58d39c0c)
2008-03-18 16:40:46 +01:00
Michael Adam
4d16e17e04 libreplace: remove duplicate entry of inet_ntoa from README.
Michael
(This used to be commit 98ee8c8430)
2008-03-18 16:31:15 +01:00
Michael Adam
4500b95c89 libreplace: remove trailing white spaces.
Michael
(This used to be commit 1f9ca7eed9)
2008-03-18 16:30:15 +01:00
Michael Adam
87b48a8126 libreplace: replace inet_ntoa() when it is missing
...not only replace it when it is broken.

This moves the defintion of rep_inet_ntoa from replace.c
to inet_ntoa.c and adds configure checks for existence
of inet_ntoa(). Checks are moved to an include file of its own.

NOTE: The original rep_inet_ntoa in replace.c was wrapped
into a "#ifndef WITH_PTHREADS" but the prototype in replace.h
and the define in system/network.h were not. I removed that
ifndef since the inet_ntoa() function is usually not thread safe
anyways, since it returns a pointer to a static buffer.

So whoever calls inet_ntoa() should be aware that it is not
thread safe anyways.

Michael
(This used to be commit 974c0c45ad)
2008-03-18 16:30:15 +01:00
Michael Adam
58dfb0ff3c libreplace: put inet_aton.c under LGPL instead of GPL.
Michael
(This used to be commit cca5d6626f)
2008-03-18 16:10:47 +01:00
Michael Adam
195853464a smbtorture: fix typos in RAW-OPLOCK output.
Michael
(This used to be commit 9fa4b53b61)
2008-03-18 16:10:46 +01:00
Stefan Metzmacher
7a5438ae11 libreplace: remove unused SOCKET_LIBS and NSL_LIBS
metze
(This used to be commit 62bb177a6e)
2008-03-18 15:59:23 +01:00
Stefan Metzmacher
7b412ccade lib/socket: use LIBREPLACE_NETWORK instead of EXT_SOCKET and EXT_NSL
The configure checks are also in libreplace now.

metze
(This used to be commit 07e931a77f)
2008-03-18 15:59:22 +01:00
Stefan Metzmacher
23c35481fa libreplace: for samba4 create LIBREPLACE_NETWORK as EXT_LIB
metze
(This used to be commit 79037c3133)
2008-03-18 15:59:22 +01:00
Stefan Metzmacher
1ef171f6e0 libreplace: use LIBREPLACE_NETWORK_LIBS within some configure checks
...instead of using SOCKET_LIBS and NSL_LIBS.

metze
(This used to be commit cef2e8d748)
2008-03-18 15:59:22 +01:00
Stefan Metzmacher
cbc5e58b8f libreplace: combine SOCKET_LIBS and NSL_LIBS to LIBREPLACE_NETWORK_LIBS
But keep the old ones untill the callers are fixed.

metze
(This used to be commit e7115dcc8a)
2008-03-18 15:59:22 +01:00
Stefan Metzmacher
d53467b9af ldb: remove configure with 'make realdistclean'
configure.in doesn't exist at all...

metze
(This used to be commit ca414d4e9e)
2008-03-18 15:59:21 +01:00
Stefan Metzmacher
7bf6895b67 ldb: nothing uses "system/network.h" so don't include it
metze
(This used to be commit 087667e0cd)
2008-03-18 15:59:21 +01:00
Stefan Metzmacher
92f6333535 ldb: fix the standalone build
metze
(This used to be commit 91b49365ab)
2008-03-18 15:59:21 +01:00
Stefan Metzmacher
5b35e55130 selftest: fix parsing of Subunit results
This reverts parts of
903eb9a23d
and
9196213c49.

metze
(This used to be commit 5f5fa368c2)
2008-03-18 15:59:21 +01:00
Volker Lendecke
3b63333cf2 Allocate one 0-byte in asprintf replacement when len==0
Some S3 code depends on this.
(cherry picked from commit dc3d5e1645)
(This used to be commit 842d144b4f)
2008-03-18 13:48:21 +01:00
Stefan Metzmacher
297399d877 selftest: use a separate var for printing out sub parts of lines with \r
This restores the bahavior of the $_ variable in the code
that detects expected failures.

metze
(This used to be commit 903eb9a23d)
2008-03-18 13:16:44 +01:00
Kai Blin
a1875b039b idmap: Map SIDs to unixids instead of uids/gids
(This used to be commit 73ac7c4a1c)
2008-03-18 10:55:31 +01:00
Kai Blin
3dddbb5e26 make: Fix make valgrindtest-env
(This used to be commit f56912e3b5)
2008-03-18 10:54:28 +01:00
Stefan Metzmacher
3530099cf2 RAW-BENCH-OPEN: avoid sync calls before the main loop
On multi cpu machines the server may reply to the
first requests while the test is still in setup mode.

Now we setup the first opens, but send them all together
when entering the main loop.

metze
(This used to be commit 3f2d12c61e)
2008-03-17 16:06:07 +01:00
Stefan Metzmacher
b65ad8966a RAW-BENCH-OPEN: fix the output and calculate the total operations
metze
(This used to be commit c84e3abae9)
2008-03-17 15:50:54 +01:00
Stefan Metzmacher
0de47f6b57 selftest: handle progress output in verbose mode
metze
(This used to be commit 9196213c49)
2008-03-17 15:50:49 +01:00
Stefan Metzmacher
3e8124bc66 socket_wrapper: make pcap code more portable
Now the pcap support works on x86_64.

metze
(This used to be commit 61a87bed61)
2008-03-17 15:50:35 +01:00
Andrew Bartlett
87e6d7eab1 Don't require users of credentials.h to have krb5.h and gssapi.h
Rather than require users of Samba4's headers to have krb5-devel
installed (presumably in their system paths), don't expose the minor
functions which require this by default.

Andrew Bartlett
(This used to be commit f14737e4d2)
2008-03-17 15:22:52 +11:00
Stefan Metzmacher
e76c8aa097 pvfs_open: set h->have_opendb_entry directly after odb_open_file()
Otherwise we may not clean up in the destructor.

metze
(This used to be commit 218ec98a16)
2008-03-15 12:36:20 +01:00
Stefan Metzmacher
74d940ca57 pvfs_open: the pvfs_odb_retry structs need to be children of the request
Otherwise they're not cleaned up when the request is finished.

metze
(This used to be commit 055760f0f4)
2008-03-15 12:35:04 +01:00
Stefan Metzmacher
1f65ddb336 pvfs_unlink: disable async retries for wildcard deletes
We would setup multiple retries per client request.

metze
(This used to be commit 951764e284)
2008-03-15 12:22:36 +01:00
Stefan Metzmacher
caea750810 messaging: fix a valgrind warning on 64bit hosts zero out padding
metze
(This used to be commit f555b8e4c3)
2008-03-15 12:21:06 +01:00
Andrew Bartlett
d7299d82c3 Rework memberof handling in slapd.conf (used for OpenLDAP backend)
Instead of using an include file, put the generated configurationd
directly into slapd.conf.

Andrew Bartlett
(This used to be commit 95ac786136)
2008-03-15 19:03:04 +11:00
Stefan Metzmacher
2fd5992038 swig: regenerate _wrap.c files
metze
(This used to be commit 08b41e1069)
2008-03-14 14:33:55 +01:00
Stefan Metzmacher
25a3eb0436 swig: make the code more portable and use NT_STATUS_V() and W_ERROR_V()
metze
(This used to be commit d6fd98a307)
2008-03-14 14:33:54 +01:00
Michael Adam
4b2aee2cd6 libreplace: fix samba4 build (by not setting global LIBS).
This corrects the earlier fix of the standalone build, by setting
LIBS to the desired value only in configure.ac but not in getifaddrs.m4.

Not that this changes the standalone build in that it adds these libs
undconditionally and not only if they are needed by the getifaddrs
replacement functions.

Michael
(This used to be commit ff3af1703d)
2008-03-14 09:39:58 +01:00
Michael Adam
9d0b13bfcc libreplace: add -I$libreplacedir to CPPFLAGS for getifaddrs tests.
This is needed, otherwise $libreplacedir/system/network.h does not
find $libreplacedir/getaddrinfo.h on some systems (solaris, e.g.).

Michael
(This used to be commit 297c3bece0)
2008-03-14 09:04:25 +01:00
Michael Adam
6a4928c630 heimdal_build: fix linkage of asn1_compile and compile_et.
Now inet_aton is available from libreplace.

Michael
(This used to be commit 3b2a3da2f7)
2008-03-14 09:04:24 +01:00
Michael Adam
fe096dd313 libreplace: add an inet_aton() function that calls inet_pton().
inet_aton() is even needed inside libreplace, in the implementation
of rep_getaddrinfo().

Michael
(This used to be commit bcb2f3a880)
2008-03-14 09:02:36 +01:00
Andrew Bartlett
de9b3af624 Allow more 'domain' objects when looking for a unqiue SID.
Andrew Bartlett
(This used to be commit db3b5f16ec)
2008-03-14 12:32:07 +11:00
Andrew Bartlett
9a6422b695 Rework our SAMR test and SAMR server.
Now that we don't create users/domain groups/aliases in the builtin
domain, we hit some bugs in the server-side implementation of the
enumeration functions.

In essence, it turns out to be: don't treat 0 as a special case.

Also, fix up the PDC name to always be returned.  I'm sure nothing
actually uses it, particularly for BUILTIN...

Andrew Bartlett
(This used to be commit 353bb79f56)
2008-03-14 12:26:03 +11:00
Andrew Bartlett
39f03829a6 Check for Administrator as a Alias (copy&paste bug)
Andrew Bartlett
(This used to be commit e7afb31df1)
2008-03-14 10:11:03 +11:00
Andrew Bartlett
bd614d28d4 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
(This used to be commit d50b76ed71)
2008-03-14 09:59:24 +11:00
Stefan Metzmacher
7db5e0a601 build: compile_et also needs inet_aton()
metze
(This used to be commit b6bcd66612)
2008-03-13 16:26:37 +01:00
Stefan Metzmacher
9c7c6c7049 build: we don't rely on bash yet:-) '==' should be just '='
metze
(This used to be commit 17997dd9bc)
2008-03-13 15:56:39 +01:00
Michael Adam
9f6355baa7 fix build of asn1_compile when there is no system inet_aton() function.
Michael
(This used to be commit f1c2207b3d)
2008-03-13 14:31:00 +01:00
Stefan Metzmacher
1710eca259 configure: when detecting python we should disable pyconfig.h
This fixes the detection on HP-UX where the pyconfig.h contains
bogus defines.

metze
(This used to be commit 9391f6f804)
2008-03-13 14:28:50 +01:00
Andrew Bartlett
80f7e9e081 Rework SAMR functions to avoid gendb_search()
The gendb_*() API does not return error codes, and mixes error returns
with the count of returned entries.

Andrew Bartlett
(This used to be commit facbc8dfa5)
2008-03-13 17:26:01 +11:00
Andrew Kroeger
131111f166 kdc: Provide extended error information in AS-REP error replies.
This change utilizes the addition of the e_data parameter to the windc_plugin in
the heimdal code to pass extended information back to the client.  The extended
information is provided in an e-data block as part of the kerberos error
message, and allows the client to determine which specific error condition
occurred.
(This used to be commit 502466ba95)
2008-03-13 01:17:48 -05:00
Andrew Kroeger
a550317253 heimdal: Add parameter to windc_plugin to allow extended return codes.
These changes add a krb5_data parameter named e_data to the windc_plugin to
allow the samba KDC to return extended error information in addition to the
standard KRB5KDC_ERR_* codes.  Windows uses the extended information to provide
detailed information in user dialogs (e.g. account disabled, logon hours
restriction, must change password, etc.).

This particular commit modifies only heimdal code.  Hopefully this can be
submitted and accepted into the upstream heimdal codebase.
(This used to be commit f542362be2)
2008-03-13 01:16:49 -05:00
Andrew Bartlett
44628c43ee Don't use 'dn', this attribute does not exist with the LDAP backend,
or in AD.

Andrew Bartlett
(This used to be commit a3e1f28306)
2008-03-13 16:35:53 +11:00
Andrew Bartlett
8b20113517 Show why a LookupName fails (help debugging)
Andrew Bartlett
(This used to be commit 9bfc475788)
2008-03-13 16:35:11 +11:00
Andrew Bartlett
359be70ed7 Report binding in libnet failure message.
Andrew Bartlett
(This used to be commit def46f6852)
2008-03-13 14:13:31 +11:00
Andrew Bartlett
4a2ba0c047 Bail out, rather than segfault on no domain sid.
Andrew Bartlett
(This used to be commit 7e85f318b5)
2008-03-13 14:12:50 +11:00
Andrew Bartlett
e50d666bf9 Correctly normalise records against OpenLDAP.
Fixing this simple typo allows more of the ldap.js test to pass.

Andrew Bartlett
(This used to be commit 7c80cd18d5)
2008-03-13 14:12:18 +11:00
Andrew Bartlett
536d585c4c Don't search the whole tree for the domains's sid
This change removes a dependency on objectclass=domainDNS, and avoids
a subtree search when we really know exactly where this record is.

Andrew Bartlett
(This used to be commit 52947fc0c0)
2008-03-13 14:11:06 +11:00
Andrew Bartlett
0c88240236 Rework to have member server 'domains' be CN=NETBIOSNAME
This reworks quite a few parts of our provision system to use
CN=NETBIOSNAME as the domain for member servers.

This makes it clear that these domains are not in the DNS structure,
while complying with our own schema (found by OpenLDAP's schema
validation).

Andrew Bartlett
(This used to be commit bda6a38b05)
2008-03-13 11:36:58 +11:00
Andrew Bartlett
58edd6d179 Don't segfault on invalid objectClass input.
If the objectClass found does not include a defaultSecurityDescriptor,
then we should not segfault in the SDDL parser.

Andrew Bartlett
(This used to be commit 5a92771fb5)
2008-03-13 10:27:09 +11:00
Andrew Bartlett
3d9056aa86 Merge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-local
(This used to be commit e9567e3910)
2008-03-13 10:00:57 +11:00
Andrew Bartlett
07a7c8fa0d Update the provision scripts and selftest for LDAP
This should allow us to provision onto an OpenLDAP backend again.

Also ensure we always have a sysvol and netlogon share in the selftest
environment.

Andrew Bartlett
(This used to be commit b2d9b03ba3)
2008-03-13 09:55:06 +11:00
Andrew Bartlett
6f2935d082 Don't talloc_free() the UUID before we return.
This error caused us to put a 0x80 byte at the end of GUID, which was
only detected by OpenLDAP's schema checking.

Andrew Bartlett
(This used to be commit fd99b7719b)
2008-03-13 09:53:32 +11:00