1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-23 20:23:50 +03:00
Commit Graph

12622 Commits

Author SHA1 Message Date
Michael Adam
b97acdc67b r23980: Fix one more use of pwrite in expand_file.
Michael
2007-10-10 15:01:15 -05:00
Michael Adam
eb524df0a5 r23979: Fix another occurence of (written != requested) as an
error condition to write. This is in tdb_new_database.

Fix one call to tdb_new_database in tdb_open_ex to not
overwrite the newly propagated errno (typically ENOSPC).

Michael
2007-10-10 15:01:14 -05:00
Michael Adam
868cdb1781 r23978: Merge r23161 from Samba3:
Add TDB_VOLATILE as open_flag to activate the per-hashchain dead record
optimization.
2007-10-10 15:01:14 -05:00
Michael Adam
7f415d1223 r23977: Im prove the pwrite-patch to tdb_expand_file of r23972:
* prevent infinite loops due to 0 bytes written:
  try once more. if we still get 0 as return,
  set errno to ENOSPC and return -1 (error)

* replace int by correct types (ssize_t and size_t).

* print a warning log message in case "written < requested to write"
  usually this means, that the next call to pwrite will fail
  with return value -1 and set errno accordingly.

  Note that the former error condition "written != requested to write"
  is not a correct error condition of write/pwrite. If this is due
  to an error, a subsequent call to (p)write will reveal the cause
  (typically "no space left on device" - ENOSPC).

Michael
2007-10-10 15:01:13 -05:00
Michael Adam
4c3c6363f8 r23972: Fix a bug in pwrite error detection in tdb_expand_file():
The proper error condition is (ret == -1) instead of
(ret != number_of_byte_told_to_write).

Michael
2007-10-10 15:01:13 -05:00
Andrew Bartlett
d61061052d r23966: It isn't great, but at least now we have some access control in SWAT
This patch prevents non-root and non-administrator users from running
the provision, upgrade and vampire pages.  *I think* the rest of SWAT
is LDB operations, or otherwise authenticated, so we should now be
secure.

I wish I had a better way to 'prove' we got this right, but this is better than nothing, and moves us closer to an alpha.

Andrew Bartlett
2007-10-10 15:01:13 -05:00
Andrew Bartlett
d0a994d0ce r23964: Update blackbox selftest scripts to cover more code, and to more
consistantly report errors.  (Some were being lost due to the "echo
foo | cmd" calling convention).

Andrew Bartlett
2007-10-10 15:01:12 -05:00
Andrew Bartlett
72ca8e3b2a r23961: Allow SWAT to operate on x86_64 machines.
On machines with a 4 byte int, and a 8 byte pointer, the ESP could would fail.

The problem is that 0 != NULL.  0 is an int (4 bytes) and NULL is a
pointer (8), and this matters critically to varargs functions.

If a 0 was passed as the 'terminating' argument, then only 4 bytes
would be written to the stack, but va_arg(ap, char *) would try and
pull 8, reading uninitalised memory.

Andrew Bartlett
2007-10-10 15:01:11 -05:00
Andrew Bartlett
18d2680f35 r23960: Don't destory the 'reason' for terminating the service before printing it.
Andrew Bartlett
2007-10-10 15:01:11 -05:00
Rafal Szczesniak
c257363adb r23959: add more monitor messages support that's been sitting around on my
laptop for a while.

rafal
2007-10-10 15:01:11 -05:00
Michael Adam
dc0104be9a r23950: unlink before rename is superfluous.
Michael
2007-10-10 15:01:10 -05:00
Michael Adam
bf7774360b r23925: Use NULL instead of 0 for a void * argument. 2007-10-10 15:01:10 -05:00
Andrew Bartlett
417e0ef87f r23912: We always accept / as a seperator, and it is far less confusing
compared with a shell-escape (\).

Fixes bug #4765

Andrew Bartlett
2007-10-10 15:01:09 -05:00
Andrew Bartlett
07a9db1438 r23907: Fix bug 4790 reported by mwallnoefer@yahoo.de:
Before the provisioning enters to the function provision_default_paths (in
scripting/libjs/provision.js), the variable subobj.DNSDOMAIN isn't properly set
(for example for the filename of the DNS zonefile).

Andrew Bartlett
2007-10-10 15:01:09 -05:00
Andrew Bartlett
70bf693685 r23905: SATOH Fumiyasu <fumiyas@osstech.jp> points out that we want &&, not ; here...
(We don't want to make a distclean of the main user tree, just because
they don't have the parent directory checked out).

Andrew Bartlett
2007-10-10 15:01:08 -05:00
Stefan Metzmacher
8da4e9a9ac r23895: reapply rev 23493:
regenerate lex.c files with flex 2.5.33
this makes sure we include config.h as first header

hopefully fixes the build on SerNet-aix

abartlet: please don't revert that again with your next
          heimdal merge...:-)

metze
2007-10-10 15:01:08 -05:00
Andrew Bartlett
365778a993 r23890: Allow wbinfo -a to work against Samba4's winbind.
Add a test for wbinfo -a to test_member.sh

Reimplement the server-side 'pam_auth' and 'pam_auth_crap' calls to
use the same SamLogon code as auth_winbind uses.

In my previous code, we did not bind to the LSA and SAMR pipes, before
attempting operations.  We now do this (how we passed any tests before
is beyond me).

This required some rework, particularly to make it easier to setup
secondary connections.  The new rpc_secondary_auth_connection()
function also performs the bind.

The dcerpc_connect.c file was getting to big, so things have been
merged into dcerpc_secondary.c.

Andrew Bartlett
2007-10-10 15:01:08 -05:00
Andrew Bartlett
f47e5f7161 r23881: A quick fix from davecb@spamcop.net to be more portable to non-GNU
make in autogen.sh.

Andrew Bartlett
2007-10-10 15:01:07 -05:00
Andrew Bartlett
a1b6c9ecb9 r23880: Don't crash when we run wbinfo -a against our own winbind when we are a DC.
Next step is to make it work...

Andrew Bartlett
2007-10-10 15:01:07 -05:00
Kai Blin
f45ae8a878 r23876: Prepare to run nsstest from make test, just not add it to tests_all.sh yet. 2007-10-10 15:01:06 -05:00
Andrew Bartlett
923d67ea9d r23875: As pointed out by mwallnoefer@yahoo.de:
On default Active Directory installations, the NETLOGON share isn't
an indipendent directory. In fact it's mapped to the subdirectory
"scripts" from the share SYSVOL under <Domain name>.

Andrew Bartlett
2007-10-10 15:01:06 -05:00
Alexander Bokovoy
6c95eabac6 r23862: Explain who requested unknown dependency. Helps a lot in chasing dependency hell when trimming down s4 platform 2007-10-10 15:01:05 -05:00
Stefan Metzmacher
0d27c1b54e r23860: export WINBINDD_SOCKET_DIR into the testenv
metze
2007-10-10 15:01:05 -05:00
Andrew Bartlett
45cadf3bc0 r23859: Work to have Group Policy work 'out of the box' in Samba4.
This involves creating the SYSVOL and NETLOGON shares at provision
time, and creating the right subdirectories.

This also changes the behaviour of lp.get("foo") in ejs - we now
return undefined, rather than syntax error, if the parameter doesn't
exist (perhaps because the share isn't defined).

Andrew Bartlett
2007-10-10 15:01:05 -05:00
Michael Adam
1685057927 r23853: Fix a very misleading error message in tdbbackup.
Michael
2007-10-10 15:01:04 -05:00
Andrew Bartlett
0fc9b015d7 r23852: Merge Samba 3.2's wbinfo into Samba4, so Kai can use it for testing.
Andrew Bartlett
2007-10-10 15:00:53 -05:00
Stefan Metzmacher
759b5d94b3 r23851: export _ABS versions of PREFIX and SRCDIR
metze
2007-10-10 14:59:24 -05:00
Andrew Bartlett
46abf82675 r23849: ldap_server: Provide more info in debug traces
blackbox tests:  increase test coverage by running more options.

Andrew Bartlett
2007-10-10 14:59:24 -05:00
Andrew Bartlett
b5a9d507a3 r23848: Thanks to derrell for pointing out that I had not finished my patch to
split out the auth methods.

This caused all SWAT logins to fail, except when using local system
authentication.

Andrew Bartlett
2007-10-10 14:59:24 -05:00
Michael Adam
9b8789a4b5 r23821: Extend the winreg test by a test for DeleteKey on a
key that has subkeys. This should return WERR_ACCESS_DENIED.

Michael
2007-10-10 14:59:23 -05:00
Andrew Bartlett
6679003c05 r23816: A little more static, but leave the dead code testjoin.c as documentation.
Andrew Bartlett
2007-10-10 14:59:23 -05:00
Andrew Bartlett
625a9e6c04 r23815: Thanks to Matthias Wallnoefer <mwallnoefer@yahoo.de> for pointing out
that we had the wrong objectClass for OU=Domain
Controllers,${DOMAINDN} (was CN=Domain Controllers,${DOMAINDN})

This fixes both the SAMR server and the LDIF templates.

Andrew Bartlett
2007-10-10 14:59:22 -05:00
Andrew Bartlett
64fcec1da6 r23812: Remove more code found as dead by the find_static script, and make
other functions just static.

Andrew Bartlett
2007-10-10 14:59:22 -05:00
Andrew Bartlett
5609bd9d21 r23811: Try to ensure struct nbt_name is always pre-declared. Might fix the
build on aico.

Andrew Bartlett
2007-10-10 14:59:21 -05:00
Andrew Bartlett
dc27a7e41c r23810: Make things static, and remove unsued code.
This includes some of the original ildap ldap client API.  ldb
provides a much easier abstraction on this to use, and doesn't use
these functions.

Andrew Bartlett
2007-10-10 14:59:21 -05:00
Andrew Bartlett
9a38ddc86f r23809: Don't give users the fantasy that we can control choice of GENSEC
security mechanisms at the moment.  I'll put this back when I
implement the functionality.

Andrew Bartlett
2007-10-10 14:59:21 -05:00
Andrew Tridgell
1b105097e3 r23807: added hex_encode_talloc() 2007-10-10 14:59:20 -05:00
Andrew Tridgell
b196077cbb r23806: update Samba4 with the latest ctdb code.
This doesn't get the ctdb code fully working in Samba4, it just gets
it building and not breaking non-clustered use of Samba. It will take
a bit longer to update some of the calling ctdb_cluster.c code to make
it work correctly in Samba4.

Note also that Samba4 now only links to the client portion of
ctdb. For the moment I am leaving the ctdbd as a separate daemon,
which you install separately from http://ctdb.samba.org/.
2007-10-10 14:59:20 -05:00
Andrew Tridgell
3121f91493 r23805: this directory is not used any more 2007-10-10 14:59:19 -05:00
Andrew Tridgell
c0111223e2 r23802: fixed URL in XML 2007-10-10 14:59:19 -05:00
Andrew Tridgell
5c9b19271e r23801: The FSF has moved around a lot. This fixes their Mass Ave address. 2007-10-10 14:59:18 -05:00
Andrew Tridgell
01e3fe7533 r23800: LGPL is now called GNU Lesser General Public License
not GNU Library General Public License
2007-10-10 14:59:17 -05:00
Andrew Tridgell
db92b76a00 r23799: updated old Franklin Street FSF addresses to new URL 2007-10-10 14:59:16 -05:00
Andrew Tridgell
40c0919aaa r23798: updated old Temple Place FSF addresses to new URL 2007-10-10 14:59:15 -05:00
Andrew Tridgell
9f77c40a8e r23797: started fixing old FSF addresses. Fixed pcap2nbench COPYING file 2007-10-10 14:59:15 -05:00
Andrew Tridgell
76c6bfdeb5 r23796: main COPYING file for samba4, plus some formatting varients 2007-10-10 14:59:14 -05:00
Andrew Tridgell
84b468b2f8 r23795: more v2->v3 conversion 2007-10-10 14:59:14 -05:00
Andrew Tridgell
9d37f1ec07 r23794: convert more code from LGPLv2+ to LGPLv3+ 2007-10-10 14:59:13 -05:00
Andrew Tridgell
fcf38a38ac r23792: convert Samba4 to GPLv3
There are still a few tidyups of old FSF addresses to come (in both s3
and s4). More commits soon.
2007-10-10 14:59:12 -05:00
Andrew Bartlett
3f3da9c471 r23762: Fix DN renames over LDAP, and instrument the partition module. Add a
test to prove the behaviour of LDAP renames etc.

Fix LDB to return correct error code when failing to rename one DN
onto another.

Andrew Bartlett
2007-10-10 14:59:11 -05:00