jelmer/openchange-samba.git
16 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.

Michael

16 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 '='

metze

16 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:
http://lists.samba.org/archive/samba-technical/2007-November/056701.html
(cherry picked from commit 37c87acc9d48c1fb5d4806374ca8e992300db1ff)

16 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)

16 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)

16 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.

Michael

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

Michael

16 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.

Michael

16 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.

Michael

16 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.

Michael

16 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

metze

16 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.

metze

16 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

metze

16 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.

metze

16 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)]
libreplace: combine SOCKET_LIBS and NSL_LIBS to LIBREPLACE_NETWORK_LIBS

But keep the old ones untill the callers are fixed.

metze

16 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'

configure.in doesn't exist at all...

metze

16 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

metze

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

metze

16 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
903eb9a23d80576f5df2d90a0e025f2366ffe4c6
and
9196213c49532ac60349ff55e66430b7c80b09c2.

metze

16 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)

16 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.

metze

16 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

16 years agomake: Fix make valgrindtest-env
Kai Blin [Tue, 18 Mar 2008 09:53:25 +0000 (10:53 +0100)]
make: Fix make valgrindtest-env

16 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.

metze

16 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

metze

16 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

metze

16 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.

metze

16 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

16 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.

metze

16 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.

metze

16 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.

metze

16 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

metze

16 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

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

metze

16 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()

metze

16 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 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

16 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.).

Michael

16 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.

Michael

16 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().

Michael

16 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

16 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

16 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

16 years agoMerge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
Andrew Bartlett [Thu, 13 Mar 2008 22:59:24 +0000 (09:59 +1100)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local

16 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()

metze

16 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 '='

metze

16 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.

Michael

16 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.

metze

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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
validation).

Andrew Bartlett

16 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

16 years agoMerge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-local
Andrew Bartlett [Wed, 12 Mar 2008 23:00:57 +0000 (10:00 +1100)]
Merge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-local

16 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
environment.

Andrew Bartlett

16 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

16 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

16 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.

metze

16 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

metze

16 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

metze

16 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

metze

16 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

metze

16 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()

metze

16 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.

metze

16 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

metze

16 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

metze

16 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!

metze

16 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

metze

16 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

metze

16 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.
Jeremy.

16 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

metze

16 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
exemptions.
Jeremy.

16 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.
Jeremy.

16 years agopvfs: return NT_STATUS_NOT_IMPLEMENTED on RAW_RENAME_NTTRANS
Stefan Metzmacher [Tue, 11 Mar 2008 18:29:18 +0000 (19:29 +0100)]
pvfs: return NT_STATUS_NOT_IMPLEMENTED on RAW_RENAME_NTTRANS

metze

16 years agosmb_server: pass down RAW_RENAME_NTTRANS to the ntvfs layer
Stefan Metzmacher [Tue, 11 Mar 2008 18:28:34 +0000 (19:28 +0100)]
smb_server: pass down RAW_RENAME_NTTRANS to the ntvfs layer

metze

16 years agoevents_signal: pass down the correct siginfo_t struct to the event handler
Stefan Metzmacher [Mon, 10 Mar 2008 11:46:17 +0000 (12:46 +0100)]
events_signal: pass down the correct siginfo_t struct to the event handler

metze

16 years agolibcli/raw: add RAW_RENAME_NTTRANS support
Stefan Metzmacher [Tue, 11 Mar 2008 18:11:57 +0000 (19:11 +0100)]
libcli/raw: add RAW_RENAME_NTTRANS support

metze

Signed-off-by: Stefan Metzmacher <metze@samba.org>
16 years agoTest trans2 renames with oplocks. It looks like trans2 renames
Jeremy Allison [Tue, 11 Mar 2008 17:21:09 +0000 (10:21 -0700)]
Test trans2 renames with oplocks. It looks like trans2 renames
ignore share modes and oplock breaks :-(.
Jeremy.

16 years agoFix provision script to work without smb.conf location specified.
Andrew Bartlett [Tue, 11 Mar 2008 03:41:10 +0000 (14:41 +1100)]
Fix provision script to work without smb.conf location specified.

Andrew Bartlett

16 years agoExtend testsuite to cover specifying a domain SID.
Andrew Bartlett [Tue, 11 Mar 2008 03:21:53 +0000 (14:21 +1100)]
Extend testsuite to cover specifying a domain SID.

Andrew Bartlett

16 years agoMake error handling in ldb more consistant.
Andrew Bartlett [Tue, 11 Mar 2008 03:20:42 +0000 (14:20 +1100)]
Make error handling in ldb more consistant.

This change ensures we give an immidiate error if the DN won't parse.

Also clean up strcmp use to be more standard.

Andrew Bartlett

16 years agoopendb_tdb: keep struct opendb_file arround for the lifetime of struct odb_lock
Stefan Metzmacher [Sat, 8 Mar 2008 07:55:12 +0000 (08:55 +0100)]
opendb_tdb: keep struct opendb_file arround for the lifetime of struct odb_lock

That means we only have to parse the record once
and as the tdb record is locked the in memory copy
is always the same as the one in the tdb.

metze

16 years agoopendb_tdb: correctly initialize modified to false
Stefan Metzmacher [Sat, 8 Mar 2008 07:58:41 +0000 (08:58 +0100)]
opendb_tdb: correctly initialize modified to false

Otherwise this variable would never change its value...

metze

16 years agowe now define PACKAGE_BUGREPORT in config.h
Stefan Metzmacher [Sat, 8 Mar 2008 08:20:55 +0000 (09:20 +0100)]
we now define PACKAGE_BUGREPORT in config.h

metze

16 years agopvfs_open: fix the odb_open_file() callers
Stefan Metzmacher [Fri, 7 Mar 2008 17:28:48 +0000 (18:28 +0100)]
pvfs_open: fix the odb_open_file() callers

metze

16 years agoopendb: force odb_can_open() before odb_open_file()
Stefan Metzmacher [Fri, 7 Mar 2008 17:23:34 +0000 (18:23 +0100)]
opendb: force odb_can_open() before odb_open_file()

Now there's only odb_can_open() which handles the
share_access rules.

And odb_open_file() only adds the new opendb_entry into the
database and calculates the granted oplock level.

metze

16 years agopvfs_open: always call odb_can_open() before odb_open_file()
Stefan Metzmacher [Fri, 7 Mar 2008 16:50:17 +0000 (17:50 +0100)]
pvfs_open: always call odb_can_open() before odb_open_file()

odb_open_file() will later change to not redo the logic of
odb_can_open().

metze

16 years agoopendb_tdb: pass down struct messaging_context directly to odb_oplock_break_send()
Stefan Metzmacher [Fri, 7 Mar 2008 09:33:57 +0000 (10:33 +0100)]
opendb_tdb: pass down struct messaging_context directly to odb_oplock_break_send()

metze

16 years agovfs_cifs: disable level2 oplocks if the frontend client doesn't support them
Stefan Metzmacher [Fri, 7 Mar 2008 18:12:14 +0000 (19:12 +0100)]
vfs_cifs: disable level2 oplocks if the frontend client doesn't support them

metze

16 years agoRerun SWIG.
Jelmer Vernooij [Fri, 7 Mar 2008 17:20:12 +0000 (18:20 +0100)]
Rerun SWIG.

16 years agotorture: fix escape sequence in test_chkpath().
Michael Adam [Fri, 7 Mar 2008 14:00:37 +0000 (15:00 +0100)]
torture: fix escape sequence in test_chkpath().

Michael

16 years agoconfigure: Add major version 4 to AC_INIT call.
Michael Adam [Fri, 7 Mar 2008 13:59:19 +0000 (14:59 +0100)]
configure: Add major version 4 to AC_INIT call.

Michael

16 years agoTreat maxPwdAge == 0 as passwords never expire.
Andrew Kroeger [Fri, 7 Mar 2008 11:56:04 +0000 (05:56 -0600)]
Treat maxPwdAge == 0 as passwords never expire.

16 years agoEnhance mappings of NTSTATUS to KRB5KDC errors.
Andrew Kroeger [Thu, 6 Mar 2008 12:08:32 +0000 (06:08 -0600)]
Enhance mappings of NTSTATUS to KRB5KDC errors.

The enhanced mappings allow the Windows client to determine whether a user's
password needs to be changed (and allows them to change it), or if they cannot
logon at all.

Changes still need to be made to allow additional data to be returned.  Windows
uses that additional data to display more detailed dialogs to the user.  The
additional information is returned in an e-data struct of type PA-PW-SALT that
contains the more-detailed NTSTATUS error code.

16 years agoUpdate account expiration to use new samdb_result_account_expires() function.
Andrew Kroeger [Thu, 6 Mar 2008 12:07:28 +0000 (06:07 -0600)]
Update account expiration to use new samdb_result_account_expires() function.

16 years agoAdd samdb_result_account_expires() function.
Andrew Kroeger [Thu, 6 Mar 2008 12:02:46 +0000 (06:02 -0600)]
Add samdb_result_account_expires() function.

Windows uses 2 different values to indicate an account doesn't expire: 0 and
9223372036854775807 (0x7FFFFFFFFFFFFFFFULL).

This function looks up the value of the accountExpires attribute and if the
value is either value indicating the account doesn't expire,
0x7FFFFFFFFFFFFFFFULL is returned.

This simplifies the tests for account expiration.  There is no need to check
elsewhere in the code for both values, therefore a simple greater-than
expression can be used.

16 years agoaccountExpires: Windows default is 9223372036854775807, not -1.
Andrew Kroeger [Thu, 6 Mar 2008 11:56:49 +0000 (05:56 -0600)]
accountExpires: Windows default is 9223372036854775807, not -1.