12 years agoMerge branch 'v4-0-test' of ssh:// into 4-0-local
Andrew Bartlett [Mon, 24 Mar 2008 23:29:35 +0000 (10:29 +1100)]
Merge branch 'v4-0-test' of ssh:// into 4-0-local
(This used to be commit 3903ef9168a18d34517c78536d34e147a9bc01cd)

12 years agoAdd my copyright
Volker Lendecke [Fri, 21 Mar 2008 09:35:54 +0000 (10:35 +0100)]
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 8d44f997c88b97fc40a88eebd50b6df720c0c10f)

12 years agoProve that a setuserinfo level 25 does set the pwdlastset field
Volker Lendecke [Thu, 20 Mar 2008 20:59:46 +0000 (21:59 +0100)]
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 16b4a3685bf59faee22882ee14ddb95918f64e22)

12 years agoAdd the workstation to the anon sessetup credentials
Volker Lendecke [Thu, 20 Mar 2008 20:11:49 +0000 (21:11 +0100)]
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 eb459be878e98cb58c6b5779584e187cdcbf4f91)

12 years agoFix a warning
Volker Lendecke [Thu, 20 Mar 2008 20:10:39 +0000 (21:10 +0100)]
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 078a6fdb3f8e389102a07b81b6b8d87fa8bf17c3)

12 years agoExplain why this attribute should be skipped.
Andrew Bartlett [Thu, 20 Mar 2008 04:14:49 +0000 (15:14 +1100)]
Explain why this attribute should be skipped.

Andrew Bartlett
(This used to be commit 7503f93f2f07f81ada1b5d9ec8fdd3d5509376ae)

12 years agoMerge branch 'v4-0-test' of ssh:// into 4-0-local
Andrew Bartlett [Thu, 20 Mar 2008 02:25:05 +0000 (13:25 +1100)]
Merge branch 'v4-0-test' of ssh:// into 4-0-local
(This used to be commit 7c4356084a389c3a4edc16f06906ce6127a3a59b)

12 years agoMore kludge ACLs!
Andrew Bartlett [Thu, 20 Mar 2008 01:12:10 +0000 (12:12 +1100)]
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

Andrew Bartlett
(This used to be commit 2f2b110fb870132099bad1d4c16ed8962affb3ce)

12 years agontlm_auth: Improve compliance to the Squid helper protocol.
Kai Blin [Wed, 19 Mar 2008 23:42:42 +0000 (00:42 +0100)]
ntlm_auth: Improve compliance to the Squid helper protocol.

This fixes bug #4235 for Samba4.
(This used to be commit b6bb7621053bccc9d06b1b2ee9f71b1b1acf3b70)

12 years agoExtend the ldap.js test to prove faults with the LDAP backend.
Andrew Bartlett [Wed, 19 Mar 2008 01:12:24 +0000 (12:12 +1100)]
Extend the ldap.js test to prove faults with the LDAP backend.

Try to provide more information to see why OpenLDAP isn't quite up to
being a Samba4 Backend.

Andrew Bartlett
(This used to be commit 89458c7d8b46cf5cf6c0dc514bb7e658f48c2adf)

12 years agoIndent
Andrew Bartlett [Wed, 19 Mar 2008 01:06:37 +0000 (12:06 +1100)]

Andrew Bartlett
(This used to be commit d2b5f40d80008ca3269118915409333755b6eac3)

12 years agoRemove unused variable.
Andrew Bartlett [Wed, 19 Mar 2008 00:15:04 +0000 (11:15 +1100)]
Remove unused variable.
(This used to be commit 1de21f5fdd9e377801af25b7ce461bdf7a16e1de)

12 years agoMore safety around ldb_dn C functions in python bindings.
Andrew Bartlett [Wed, 19 Mar 2008 00:11:55 +0000 (11:11 +1100)]
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 8d4c831184cff8bca85daf6cc711b189b5cf3a47)

12 years agoSupply HDB_DB_DIR macro
Andrew Bartlett [Wed, 19 Mar 2008 00:10:19 +0000 (11:10 +1100)]
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 b5dbdef1580a58c0f208e83491946391cd08e570)

12 years agoMerge branch 'v4-0-logon' of git:// into 4-0-local
Andrew Bartlett [Wed, 19 Mar 2008 00:04:42 +0000 (11:04 +1100)]
Merge branch 'v4-0-logon' of git:// into 4-0-local
(This used to be commit 8252b51850f108aa8f43ec25c752a411c32f9764)

12 years agoMerge branch 'v4-0-test' of ssh:// into 4-0-local
Andrew Bartlett [Tue, 18 Mar 2008 23:18:35 +0000 (10:18 +1100)]
Merge branch 'v4-0-test' of ssh:// into 4-0-local
(This used to be commit 400c16e7004bc3a881bb6efb99a273cdac87f70c)

12 years agoMerge lorikeet-heimdal -r 787 into Samba4 tree.
Andrew Bartlett [Tue, 18 Mar 2008 23:17:42 +0000 (10:17 +1100)]
Merge lorikeet-heimdal -r 787 into Samba4 tree.

Andrew Bartlett
(This used to be commit d88b530522d3cef67c24422bd5182fb875d87ee2)

12 years agolib/util: use LIBREPLACE_NETWORK as EXT_NSL doesn't exist anymore
Stefan Metzmacher [Tue, 18 Mar 2008 17:03:18 +0000 (18:03 +0100)]
lib/util: use LIBREPLACE_NETWORK as EXT_NSL doesn't exist anymore

(This used to be commit b7dad8674a3aaa27bc1103a83be75434d413239b)

12 years agolibndr: EXT_NSL doesn't exist anymore, but it wasn't needed anyway
Stefan Metzmacher [Tue, 18 Mar 2008 17:02:23 +0000 (18:02 +0100)]
libndr: EXT_NSL doesn't exist anymore, but it wasn't needed anyway

(This used to be commit 33347928e17dead3485de7dcfb0915da4638da05)

12 years agosocket_wrapper: use LIBREPLACE_NETWORK because EXT_SOCKET and EXT_NSL doesn't exist...
Stefan Metzmacher [Tue, 18 Mar 2008 16:59:31 +0000 (17:59 +0100)]
socket_wrapper: use LIBREPLACE_NETWORK because EXT_SOCKET and EXT_NSL doesn't exist anymore

(This used to be commit 1dd8e3775686badfd35dca23d291af93d8cf5695)

12 years agoheimdal_build: use LIBREPLACE_NETWORK because EXT_SOCKET and EXT_NSL doesn't exist...
Stefan Metzmacher [Tue, 18 Mar 2008 16:58:36 +0000 (17:58 +0100)]
heimdal_build: use LIBREPLACE_NETWORK because EXT_SOCKET and EXT_NSL doesn't exist anymore

(This used to be commit 0fb3d246212e2e7d68c1276dff1628ece9794283)

12 years agolibreplace: replace.c does not need system/network.h anymore.
Michael Adam [Tue, 18 Mar 2008 16:50:23 +0000 (17:50 +0100)]
libreplace: replace.c does not need system/network.h anymore.

(This used to be commit 2d3c2f34f33338ff422047dae9cc262522689328)

12 years agolibreplace: move rep_socketpair() to its own module.
Michael Adam [Tue, 18 Mar 2008 16:20:47 +0000 (17:20 +0100)]
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.

(This used to be commit 94ac8a25be15b55f66eff96fdddc2fdc71a43b1e)

12 years agoldb: not every shell supports '==' so use '='
Stefan Metzmacher [Tue, 18 Mar 2008 15:53:21 +0000 (16:53 +0100)]
ldb: not every shell supports '==' so use '='

(This used to be commit b5eeaf9b27e0116e57825b664642d2b5cfd895f0)

12 years agoFix macro name (no 's' in ifr_addr).
Gerald W. Carter [Thu, 28 Feb 2008 17:58:05 +0000 (11:58 -0600)]
Fix macro name (no 's' in ifr_addr).

Interface detection on Solaris still failing due to items pointed out here:
(cherry picked from commit 37c87acc9d48c1fb5d4806374ca8e992300db1ff)
(This used to be commit 5757d8dfe9e6cf7b662acdf5c3d825f0021822c0)

12 years agoFix Coverity ID 554
Volker Lendecke [Sat, 15 Mar 2008 21:27:05 +0000 (22:27 +0100)]
Fix Coverity ID 554
(cherry picked from commit 471b1b0c58bc2def5d2fe9d98401def34724d447)
(This used to be commit effda48a2670325fed56e158539417c6f95381b8)

12 years agoCheck the return value of fgets
Volker Lendecke [Sat, 23 Feb 2008 09:42:43 +0000 (10:42 +0100)]
Check the return value of fgets
(cherry picked from commit b8aaa9a69fd6217ce0387ef8e84f316706186d70)
(This used to be commit 8f58d39c0c621e9da85308d721a146352cc4939e)

12 years agolibreplace: remove duplicate entry of inet_ntoa from README.
Michael Adam [Tue, 18 Mar 2008 15:31:15 +0000 (16:31 +0100)]
libreplace: remove duplicate entry of inet_ntoa from README.

(This used to be commit 98ee8c84300757d778733a458c6ca3e6022b40ea)

12 years agolibreplace: remove trailing white spaces.
Michael Adam [Tue, 18 Mar 2008 12:10:22 +0000 (13:10 +0100)]
libreplace: remove trailing white spaces.

(This used to be commit 1f9ca7eed965904f67cf78fbac007432b8a057fd)

12 years agolibreplace: replace inet_ntoa() when it is missing
Michael Adam [Tue, 18 Mar 2008 11:16:47 +0000 (12:16 +0100)]
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.

(This used to be commit 974c0c45ad42644348e0b55454715b12158f1028)

12 years agolibreplace: put inet_aton.c under LGPL instead of GPL.
Michael Adam [Fri, 14 Mar 2008 14:53:38 +0000 (15:53 +0100)]
libreplace: put inet_aton.c under LGPL instead of GPL.

(This used to be commit cca5d6626fe395f08fd4c8b2344e4e43646cb987)

12 years agosmbtorture: fix typos in RAW-OPLOCK output.
Michael Adam [Tue, 18 Mar 2008 12:02:32 +0000 (13:02 +0100)]
smbtorture: fix typos in RAW-OPLOCK output.

(This used to be commit 9fa4b53b61064c910b8f5c9c676c971023b8670c)

12 years agolibreplace: remove unused SOCKET_LIBS and NSL_LIBS
Stefan Metzmacher [Tue, 18 Mar 2008 14:01:34 +0000 (15:01 +0100)]
libreplace: remove unused SOCKET_LIBS and NSL_LIBS

(This used to be commit 62bb177a6e4a3e1f949b78c7cd7583f2e1271739)

12 years agolib/socket: use LIBREPLACE_NETWORK instead of EXT_SOCKET and EXT_NSL
Stefan Metzmacher [Tue, 18 Mar 2008 13:59:10 +0000 (14:59 +0100)]
lib/socket: use LIBREPLACE_NETWORK instead of EXT_SOCKET and EXT_NSL

The configure checks are also in libreplace now.

(This used to be commit 07e931a77f21e025281b6285f4ce7aebf1106b86)

12 years agolibreplace: for samba4 create LIBREPLACE_NETWORK as EXT_LIB
Stefan Metzmacher [Tue, 18 Mar 2008 13:55:05 +0000 (14:55 +0100)]
libreplace: for samba4 create LIBREPLACE_NETWORK as EXT_LIB

(This used to be commit 79037c31334e271a718fcac234148038814b591e)

12 years agolibreplace: use LIBREPLACE_NETWORK_LIBS within some configure checks
Stefan Metzmacher [Tue, 18 Mar 2008 13:53:59 +0000 (14:53 +0100)]
libreplace: use LIBREPLACE_NETWORK_LIBS within some configure checks

...instead of using SOCKET_LIBS and NSL_LIBS.

(This used to be commit cef2e8d748756f61c248ad6660e85dd1ac36308a)

12 years agolibreplace: combine SOCKET_LIBS and NSL_LIBS to LIBREPLACE_NETWORK_LIBS
Stefan Metzmacher [Tue, 18 Mar 2008 13:52:36 +0000 (14:52 +0100)]

But keep the old ones untill the callers are fixed.

(This used to be commit e7115dcc8a0a4f420de7a901e3a21d4f35a6fcf9)

12 years agoldb: remove configure with 'make realdistclean'
Stefan Metzmacher [Tue, 18 Mar 2008 13:31:49 +0000 (14:31 +0100)]
ldb: remove configure with 'make realdistclean' doesn't exist at all...

(This used to be commit ca414d4e9e96b90100c46b006825bc8e935ba0b4)

12 years agoldb: nothing uses "system/network.h" so don't include it
Stefan Metzmacher [Tue, 18 Mar 2008 13:29:43 +0000 (14:29 +0100)]
ldb: nothing uses "system/network.h" so don't include it

(This used to be commit 087667e0cd66ea615b5aa43538192fe1d7de87ae)

12 years agoldb: fix the standalone build
Stefan Metzmacher [Tue, 18 Mar 2008 13:29:13 +0000 (14:29 +0100)]
ldb: fix the standalone build

(This used to be commit 91b49365abed6f67e2b3c18b0090b4e6ff1df935)

12 years agoselftest: fix parsing of Subunit results
Stefan Metzmacher [Tue, 18 Mar 2008 14:36:03 +0000 (15:36 +0100)]
selftest: fix parsing of Subunit results

This reverts parts of

(This used to be commit 5f5fa368c2ca472409c0082400b6e26029dfd7b5)

12 years agoAllocate one 0-byte in asprintf replacement when len==0
Volker Lendecke [Sat, 15 Mar 2008 20:47:22 +0000 (21:47 +0100)]
Allocate one 0-byte in asprintf replacement when len==0

Some S3 code depends on this.
(cherry picked from commit dc3d5e16452bf30055638ba3cfe99097fb557156)
(This used to be commit 842d144b4fb0981250157f72956e732709663107)

12 years agoselftest: use a separate var for printing out sub parts of lines with \r
Stefan Metzmacher [Tue, 18 Mar 2008 08:36:29 +0000 (09:36 +0100)]
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.

(This used to be commit 903eb9a23d80576f5df2d90a0e025f2366ffe4c6)

12 years agoidmap: Map SIDs to unixids instead of uids/gids
Kai Blin [Wed, 5 Mar 2008 23:52:37 +0000 (00:52 +0100)]
idmap: Map SIDs to unixids instead of uids/gids
(This used to be commit 73ac7c4a1ce937bddd3c52d048665cd0078c6aaa)

12 years agomake: Fix make valgrindtest-env
Kai Blin [Tue, 18 Mar 2008 09:53:25 +0000 (10:53 +0100)]
make: Fix make valgrindtest-env
(This used to be commit f56912e3b545325e941ee898337c5483ec435e39)

12 years agoRAW-BENCH-OPEN: avoid sync calls before the main loop
Stefan Metzmacher [Mon, 17 Mar 2008 11:11:44 +0000 (12:11 +0100)]
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.

(This used to be commit 3f2d12c61e95475009baf77c3e0fbea2abecc17a)

12 years agoRAW-BENCH-OPEN: fix the output and calculate the total operations
Stefan Metzmacher [Mon, 17 Mar 2008 08:59:30 +0000 (09:59 +0100)]
RAW-BENCH-OPEN: fix the output and calculate the total operations

(This used to be commit c84e3abae9781c0cbea5fee00bafe70967fb6468)

12 years agoselftest: handle progress output in verbose mode
Stefan Metzmacher [Mon, 17 Mar 2008 14:17:19 +0000 (15:17 +0100)]
selftest: handle progress output in verbose mode

(This used to be commit 9196213c49532ac60349ff55e66430b7c80b09c2)

12 years agosocket_wrapper: make pcap code more portable
Stefan Metzmacher [Mon, 17 Mar 2008 13:08:57 +0000 (14:08 +0100)]
socket_wrapper: make pcap code more portable

Now the pcap support works on x86_64.

(This used to be commit 61a87bed61ef661d98131239976be95c6a8b4d96)

12 years agoDon't require users of credentials.h to have krb5.h and gssapi.h
Andrew Bartlett [Mon, 17 Mar 2008 04:22:52 +0000 (15:22 +1100)]
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 f14737e4d2040d2f401a3b20c5e78d0d793cfc3a)

12 years agopvfs_open: set h->have_opendb_entry directly after odb_open_file()
Stefan Metzmacher [Sat, 15 Mar 2008 11:36:20 +0000 (12:36 +0100)]
pvfs_open: set h->have_opendb_entry directly after odb_open_file()

Otherwise we may not clean up in the destructor.

(This used to be commit 218ec98a1694080748d1ac12baa90ffcda364833)

12 years agopvfs_open: the pvfs_odb_retry structs need to be children of the request
Stefan Metzmacher [Sat, 15 Mar 2008 11:35:04 +0000 (12:35 +0100)]
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.

(This used to be commit 055760f0f4aadd2079b0a4999b59ac3dbe5edf8a)

12 years agopvfs_unlink: disable async retries for wildcard deletes
Stefan Metzmacher [Sat, 15 Mar 2008 11:22:36 +0000 (12:22 +0100)]
pvfs_unlink: disable async retries for wildcard deletes

We would setup multiple retries per client request.

(This used to be commit 951764e28407a53ea4dd39d34388fab1b2259785)

12 years agomessaging: fix a valgrind warning on 64bit hosts zero out padding
Stefan Metzmacher [Sat, 15 Mar 2008 11:21:06 +0000 (12:21 +0100)]
messaging: fix a valgrind warning on 64bit hosts zero out padding

(This used to be commit f555b8e4c35f69fdc1fb34427d882580eecad284)

12 years agoRework memberof handling in slapd.conf (used for OpenLDAP backend)
Andrew Bartlett [Sat, 15 Mar 2008 08:03:04 +0000 (19:03 +1100)]
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 95ac786136aebfe5ededeb3fb81cbd4e296e3988)

12 years agoswig: regenerate _wrap.c files
Stefan Metzmacher [Fri, 14 Mar 2008 13:33:18 +0000 (14:33 +0100)]
swig: regenerate _wrap.c files

(This used to be commit 08b41e10699c7bb8058ab0ab61f17a1bbfcc1ce4)

12 years agoswig: make the code more portable and use NT_STATUS_V() and W_ERROR_V()
Stefan Metzmacher [Fri, 14 Mar 2008 13:32:26 +0000 (14:32 +0100)]
swig: make the code more portable and use NT_STATUS_V() and W_ERROR_V()

(This used to be commit d6fd98a307f83fd492ef73bf6ec281f9f11286f2)

12 years agolibreplace: fix samba4 build (by not setting global LIBS).
Michael Adam [Fri, 14 Mar 2008 08:39:58 +0000 (09:39 +0100)]
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 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.

(This used to be commit ff3af1703ddc9e5383f32156bc5be8351f795e76)

12 years agolibreplace: add -I$libreplacedir to CPPFLAGS for getifaddrs tests.
Michael Adam [Fri, 14 Mar 2008 07:52:16 +0000 (08:52 +0100)]
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.).

(This used to be commit 297c3bece094ddb5f268b02e61e33f512ccfe6f5)

12 years agoheimdal_build: fix linkage of asn1_compile and compile_et.
Michael Adam [Fri, 14 Mar 2008 08:04:00 +0000 (09:04 +0100)]
heimdal_build: fix linkage of asn1_compile and compile_et.

Now inet_aton is available from libreplace.

(This used to be commit 3b2a3da2f73020b1d3b08a05a479de380b2aa5c4)

12 years agolibreplace: add an inet_aton() function that calls inet_pton().
Michael Adam [Fri, 14 Mar 2008 07:49:34 +0000 (08:49 +0100)]
libreplace: add an inet_aton() function that calls inet_pton().

inet_aton() is even needed inside libreplace, in the implementation
of rep_getaddrinfo().

(This used to be commit bcb2f3a880f8da8f9bedb7a8e61d7d7b533f1919)

12 years agoAllow more 'domain' objects when looking for a unqiue SID.
Andrew Bartlett [Fri, 14 Mar 2008 01:32:07 +0000 (12:32 +1100)]
Allow more 'domain' objects when looking for a unqiue SID.

Andrew Bartlett
(This used to be commit db3b5f16ec8d9b83d8a82a535a4847dce5923663)

12 years agoRework our SAMR test and SAMR server.
Andrew Bartlett [Fri, 14 Mar 2008 01:26:03 +0000 (12:26 +1100)]
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 353bb79f568f20c8469cb9458f7b14c24612ad23)

12 years agoCheck for Administrator as a Alias (copy&paste bug)
Andrew Bartlett [Thu, 13 Mar 2008 23:11:03 +0000 (10:11 +1100)]
Check for Administrator as a Alias (copy&paste bug)

Andrew Bartlett
(This used to be commit e7afb31df1f12a3cd39ed9b95d76edc6ff0d6a70)

12 years agoMerge branch 'v4-0-test' of ssh:// into 4-0-local
Andrew Bartlett [Thu, 13 Mar 2008 22:59:24 +0000 (09:59 +1100)]
Merge branch 'v4-0-test' of ssh:// into 4-0-local
(This used to be commit d50b76ed71ab6bc8e63926540638df5af10202ae)

12 years agobuild: compile_et also needs inet_aton()
Stefan Metzmacher [Thu, 13 Mar 2008 15:26:37 +0000 (16:26 +0100)]
build: compile_et also needs inet_aton()

(This used to be commit b6bcd66612eb3e507da94eb6f05e5d0317a8276c)

12 years agobuild: we don't rely on bash yet:-) '==' should be just '='
Stefan Metzmacher [Thu, 13 Mar 2008 14:55:56 +0000 (15:55 +0100)]
build: we don't rely on bash yet:-) '==' should be just '='

(This used to be commit 17997dd9bcd385fcf27646d832ad824cc2a0800a)

12 years agofix build of asn1_compile when there is no system inet_aton() function.
Michael Adam [Thu, 13 Mar 2008 13:30:23 +0000 (14:30 +0100)]
fix build of asn1_compile when there is no system inet_aton() function.

(This used to be commit f1c2207b3d9411eac27cb85891f62e9d05bf5118)

12 years agoconfigure: when detecting python we should disable pyconfig.h
Stefan Metzmacher [Thu, 13 Mar 2008 13:27:10 +0000 (14:27 +0100)]
configure: when detecting python we should disable pyconfig.h

This fixes the detection on HP-UX where the pyconfig.h contains
bogus defines.

(This used to be commit 9391f6f80461be2b214a881782aecf7df8a4aba3)

12 years agoRework SAMR functions to avoid gendb_search()
Andrew Bartlett [Thu, 13 Mar 2008 06:26:01 +0000 (17:26 +1100)]
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 facbc8dfa5188fdd610f400b5be6e05bc33b0820)

12 years agokdc: Provide extended error information in AS-REP error replies.
Andrew Kroeger [Thu, 13 Mar 2008 04:21:14 +0000 (23:21 -0500)]
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
(This used to be commit 502466ba950bfd104518b9eb9586896c1e076343)

12 years agoheimdal: Add parameter to windc_plugin to allow extended return codes.
Andrew Kroeger [Thu, 13 Mar 2008 04:11:48 +0000 (23:11 -0500)]
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 f542362be25e7182a0836de7a0163f6b9fce9408)

12 years agoDon't use 'dn', this attribute does not exist with the LDAP backend,
Andrew Bartlett [Thu, 13 Mar 2008 05:35:53 +0000 (16:35 +1100)]
Don't use 'dn', this attribute does not exist with the LDAP backend,
or in AD.

Andrew Bartlett
(This used to be commit a3e1f2830679a56366f0080115de504cdb0144f7)

12 years agoShow why a LookupName fails (help debugging)
Andrew Bartlett [Thu, 13 Mar 2008 05:35:11 +0000 (16:35 +1100)]
Show why a LookupName fails (help debugging)

Andrew Bartlett
(This used to be commit 9bfc4757887ceabb4c621d62c140515794679250)

12 years agoReport binding in libnet failure message.
Andrew Bartlett [Thu, 13 Mar 2008 03:13:31 +0000 (14:13 +1100)]
Report binding in libnet failure message.

Andrew Bartlett
(This used to be commit def46f6852075e1efe2bb7c5a7cffa5defdbb4ee)

12 years agoBail out, rather than segfault on no domain sid.
Andrew Bartlett [Thu, 13 Mar 2008 03:12:50 +0000 (14:12 +1100)]
Bail out, rather than segfault on no domain sid.

Andrew Bartlett
(This used to be commit 7e85f318b571d1a909dffad0ecd661468ed497ca)

12 years agoCorrectly normalise records against OpenLDAP.
Andrew Bartlett [Thu, 13 Mar 2008 03:12:18 +0000 (14:12 +1100)]
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 7c80cd18d5cd9cbf32dac15a4734f5a3c67cd0e7)

12 years agoDon't search the whole tree for the domains's sid
Andrew Bartlett [Thu, 13 Mar 2008 03:11:06 +0000 (14:11 +1100)]
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 52947fc0c019e57438a21e54953601b6cc08eb49)

12 years agoRework to have member server 'domains' be CN=NETBIOSNAME
Andrew Bartlett [Thu, 13 Mar 2008 00:36:58 +0000 (11:36 +1100)]
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

Andrew Bartlett
(This used to be commit bda6a38b055fed2394e65cdc0b308a1442116402)

12 years agoDon't segfault on invalid objectClass input.
Andrew Bartlett [Wed, 12 Mar 2008 23:27:09 +0000 (10:27 +1100)]
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 5a92771fb55149fcf24f21f30e4c6a622bef44f8)

12 years agoMerge branch 'v4-0-test' of git:// into 4-0-local
Andrew Bartlett [Wed, 12 Mar 2008 23:00:57 +0000 (10:00 +1100)]
Merge branch 'v4-0-test' of git:// into 4-0-local
(This used to be commit e9567e39106efb7443ed2c5df3492208b1c1d766)

12 years agoUpdate the provision scripts and selftest for LDAP
Andrew Bartlett [Wed, 12 Mar 2008 22:55:06 +0000 (09:55 +1100)]
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

Andrew Bartlett
(This used to be commit b2d9b03ba3434e76d4d476233a198728523d17f9)

12 years agoDon't talloc_free() the UUID before we return.
Andrew Bartlett [Wed, 12 Mar 2008 22:53:32 +0000 (09:53 +1100)]
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 fd99b7719bcb503e2695b2cbad0230fa23a094ca)

12 years agoUpgrade provision-backend to python.
Andrew Bartlett [Wed, 12 Mar 2008 21:08:05 +0000 (08:08 +1100)]
Upgrade provision-backend to python.

This required a large rework of the provision code, so as to move much
of the 'guess' logic into subprocedures, rather than just inline in
the provision code.

Andrew Bartlett
(This used to be commit a0754c2a857217ca831c2295b17255d8f38dfbc2)

12 years agopvfs_open: retry pvfs_open() after an EGAIN or EWOULDBLOCK from open()
Stefan Metzmacher [Wed, 12 Mar 2008 13:02:11 +0000 (14:02 +0100)]
pvfs_open: retry pvfs_open() after an EGAIN or EWOULDBLOCK from open()

In case a unix application as an oplock or share mode on
a file we need to retry periodicly as there's no way
to get a notification from the kernel when the oplock
is released.

(This used to be commit 4d40f3a02643b4cdacee31f0b7bc9fc77cc9869a)

12 years agopvfs_open: pass O_NONBLOCK to open() so that we'll not block with kernel oplocks
Stefan Metzmacher [Mon, 10 Mar 2008 11:48:02 +0000 (12:48 +0100)]
pvfs_open: pass O_NONBLOCK to open() so that we'll not block with kernel oplocks

(This used to be commit eeb0b8c349552517b521f1b8d7d9341e0ef630f2)

12 years agoopendb_tdb: use sys_lease to setup kernel oplocks
Stefan Metzmacher [Fri, 7 Mar 2008 11:21:11 +0000 (12:21 +0100)]
opendb_tdb: use sys_lease to setup kernel oplocks

(This used to be commit e473068bddfaa9028ab8ee49291035313b35fed3)

12 years agontvfs/sysdep: implement linux kernel oplocks based F_SETLEASE
Stefan Metzmacher [Fri, 7 Mar 2008 11:19:06 +0000 (12:19 +0100)]
ntvfs/sysdep: implement linux kernel oplocks based F_SETLEASE

(This used to be commit 3f165d3114519c317b9e7c871bb61d4fcbb8fb09)

12 years agontvfs/sysdep: add sys_lease abstraction to later support kernel oplocks
Stefan Metzmacher [Fri, 7 Mar 2008 11:19:06 +0000 (12:19 +0100)]
ntvfs/sysdep: add sys_lease abstraction to later support kernel oplocks

(This used to be commit b399f0c872f32bb791da196102a5872c20e62100)

12 years agopvfs_open: pass down &f->handle->fd to odb_open_file()
Stefan Metzmacher [Sat, 8 Mar 2008 08:20:08 +0000 (09:20 +0100)]
pvfs_open: pass down &f->handle->fd to odb_open_file()

(This used to be commit 80f5f9362100b971fa12ffee33705b745131770e)

12 years agoopendb: pass down a pointer to the fd in odb_open_file()
Stefan Metzmacher [Sat, 8 Mar 2008 08:12:09 +0000 (09:12 +0100)]
opendb: pass down a pointer to the fd in odb_open_file()

This prepares kernel oplock support.

(This used to be commit 9db9b6d85d80a8aaa8bd432afaef9bb634d7364d)

12 years agontvfs/cifs: fix the fnum on RAW_RENAME_NTTRANS
Stefan Metzmacher [Wed, 12 Mar 2008 16:34:16 +0000 (17:34 +0100)]
ntvfs/cifs: fix the fnum on RAW_RENAME_NTTRANS

(This used to be commit b43f1a53dd185cc51a3fb8a18e311abb77c2a7c9)

12 years agopvfs_rename: implement RAW_RENAME_NTTRANS as noop as w2k3
Stefan Metzmacher [Wed, 12 Mar 2008 14:12:26 +0000 (15:12 +0100)]
pvfs_rename: implement RAW_RENAME_NTTRANS as noop as w2k3

(This used to be commit 40563583f7ef3d8d1a3426c6c12eaecd18af215c)

12 years agoRAW-RENAME: w2k3 just ignores a NTTRANS-RENAME!
Stefan Metzmacher [Wed, 12 Mar 2008 14:10:57 +0000 (15:10 +0100)]
RAW-RENAME: w2k3 just ignores a NTTRANS-RENAME!

(This used to be commit cd1b8efc5d8dc1eec03fe1bf1eb58dbded9584eb)

12 years agoRAW-STREAMS: do a exit on the session after each sub tests
Stefan Metzmacher [Wed, 12 Mar 2008 13:21:50 +0000 (14:21 +0100)]
RAW-STREAMS: do a exit on the session after each sub tests

(This used to be commit 3f7fef8b8c567379649611637d69c89d77d11d6c)

12 years agoRAW-STREAMS: do what the comments say
Stefan Metzmacher [Wed, 12 Mar 2008 13:21:21 +0000 (14:21 +0100)]
RAW-STREAMS: do what the comments say

(This used to be commit eb68a8ed4fa214ad2e858a7fbdf9b5376cda6e04)

12 years agoAdded test_nttransrename() to test Metze's new code.
Jeremy Allison [Tue, 11 Mar 2008 22:27:08 +0000 (15:27 -0700)]
Added test_nttransrename() to test Metze's new code.
(This used to be commit 4556fafede8691c6a12670695ff108e9e59aff98)

12 years agoRAW-SEARCH: skip RESUME_KEY tests against samba3
Stefan Metzmacher [Tue, 11 Mar 2008 20:58:29 +0000 (21:58 +0100)]
RAW-SEARCH: skip RESUME_KEY tests against samba3

(This used to be commit ca5b37747107bd2941f7415fe609c8293a6b5f7c)

12 years agoSamba3.2 now passes a lot more tests - remove the S3 specific
Jeremy Allison [Tue, 11 Mar 2008 20:39:04 +0000 (13:39 -0700)]
Samba3.2 now passes a lot more tests - remove the S3 specific
(This used to be commit a70719d579a7eefbfd973267b95a87aaa6b649b0)

12 years agoSamba3 now passes the test_raw_oplock_exclusive3 test.
Jeremy Allison [Tue, 11 Mar 2008 19:37:20 +0000 (12:37 -0700)]
Samba3 now passes the test_raw_oplock_exclusive3 test.
(This used to be commit b2007956aa4534f22ad7fd85b0aee0be769548ae)