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

12684 Commits

Author SHA1 Message Date
Kai Blin
c7a44fcdc8 r24363: Add template shell and template homedir settings to smb.conf 2007-10-10 15:01:43 -05:00
Jelmer Vernooij
b37d86242d r24350: Remove offsetof() replacement to see if there are actually any
hosts that don't have it.
2007-10-10 15:01:42 -05:00
Jelmer Vernooij
de66bced94 r24345: Add --format=html option to selftest. 2007-10-10 15:01:42 -05:00
Jelmer Vernooij
e3fe7ef92b r24342: Move environments into a separate directory. 2007-10-10 15:01:41 -05:00
Jelmer Vernooij
f4ff4c5f61 r24339: Move output functions to separate files. 2007-10-10 15:01:40 -05:00
Jelmer Vernooij
824833b59a r24338: Add callbacks for starting and finishing tests. 2007-10-10 15:01:40 -05:00
Jelmer Vernooij
48d1aa4fcf r24337: Make libreplace provide offsetof. 2007-10-10 15:01:39 -05:00
Jelmer Vernooij
f90a698387 r24336: Use standard data type uint32_t rather than tdb-specific u32. 2007-10-10 15:01:39 -05:00
Jelmer Vernooij
18ea767d39 r24335: Fix -N support. 2007-10-10 15:01:39 -05:00
Jelmer Vernooij
4e30410124 r24333: Add convenience function for checking the contents of a file in tests. 2007-10-10 15:01:38 -05:00
Volker Lendecke
c77c74efdb r24313: Merge r23377 from 3_2
Patch from Bjoern Jacke <bjoern@j3e.de> to deal
with non-GNU implementations of tr in autogen.sh
2007-10-10 15:01:38 -05:00
Andrew Bartlett
84c1bea458 r24301: The less escape characters the better. This changes the winbind
seperator to /, which is not an escape character, and uses the fact
that we always support / as the DOMAIN/username seperator.

Andrew Bartlett
2007-10-10 15:01:37 -05:00
Andrew Bartlett
bd70b0d106 r24300: Try to get the LOCAL-EVENT test to pass on hosts with epoll() in
glibc, but not in the host kernel.

Andrew Bartlett
2007-10-10 15:01:37 -05:00
Andrew Bartlett
3d2dbcf50d r24286: (missed from previous commit)
A number of machines on the build farm fail because while they use
SOCKET_WRAPPER, they don't compile with --enable-developer.  As such
the winbind tests fail.

We need to ensure that on production systems we never have
SOCKET_WRAPPER set, or this could be a security issue.

Andrew Bartlett
2007-10-10 15:01:37 -05:00
Andrew Bartlett
eccc2d11da r24285: A number of machines on the build farm fail because while they use
SOCKET_WRAPPER, they don't compile with --enable-developer.  As such
the winbind tests fail.

We need to ensure that on production systems we never have
SOCKET_WRAPPER set, or this could be a security issue.

Andrew Bartlett
2007-10-10 15:01:36 -05:00
Andrew Tridgell
912c014b7c r24284: change brlock_tdb.c to use the dbwrap API. This actually makes the
backend abstraction for brlock pointless, but I have left it in place
for now. It would be useful for other clustering systems that can't
map to dbwrap, and would also be useful if we wanted to keep the
remote function call capabilities in ctdb instead of the less
efficient fetch_locked() call in dbwrap
2007-10-10 15:01:36 -05:00
Andrew Tridgell
3767e755db r24283: added a dbwrap API for temporary databases, based on the one from the
s3 clustering code.

This commit just establishes the API. The ctdb backend for this will
come soon.
2007-10-10 15:01:35 -05:00
Andrew Bartlett
a650ad8b37 r24282: Try to fix the occasional Samba4 crash in BASE-BENCH-READWRITE, as
seen in particular on opi.

This looked like a Heimdal problem, but I think it was simply that we
didn't do a talloc_reference() to keep tabs on the memory we were
using, and in between obtaining the pointer and using it, it was
assigned to unrelated memory.

Andrew Bartlett
2007-10-10 15:01:35 -05:00
Andrew Bartlett
43d62181f2 r24277: Tidyup as requested by metze.
Andrew Bartlett
2007-10-10 15:01:35 -05:00
Andrew Tridgell
8e378051e5 r24276: don't mark a stream readable until after the messaging setup is
complete. This is needed because messaging setup with ctdb involve
events, and we don't want a SMB packet to be processed on this stream
until after the stream structure is fully setup
2007-10-10 15:01:34 -05:00
Andrew Tridgell
b04bcf46e1 r24275: - setup the connection to the ctdb daemon
- disable the brlock ctdb backend for now
2007-10-10 15:01:34 -05:00
Andrew Tridgell
be85c48f8d r24274: - merge from ctdb bzr tree
- use ctdb_attach() instead of ctdb_db_handle()

- make ctdb_attach() return an existing db handle if it exists
2007-10-10 15:01:33 -05:00
Andrew Bartlett
5ef26a2ba3 r24273: Fix bug #4817 by <mwallnoefer@yahoo.de>. (Unable to add a computer
from MMC Active Directory Users and Computers).

Windows sets a 14 UCS2 char buffer as the password in this case.

We need to allow random buffers to be accepted as complex passwords,
even if they don't have ASCII upper or lower case characters.  (If
half the bytes are > 127, then it's likely a random buffer).

Also make the test match the documented windows behaviour of '3 of the
4 classes: upper, lower, digit, special'.

Andrew Bartlett
2007-10-10 15:01:33 -05:00
Andrew Bartlett
72f4ae8246 r24263: Fix bug 4846 (unable to copy users in MMC Active Directory Users and
Computers).

We now generate a security descriptor for each object, when it is
created.  This seems to keep MMC happy.  The next step is to honour
it.

Andrew Bartlett
2007-10-10 15:01:32 -05:00
Andrew Bartlett
53c248c264 r24262: Set the objectCategory by default in the objectclass module, rather than using templates.
Modify the samba3sam test to be less fussy, and not use the
objectclass module (which requires proper schema stuff now).

Andrew Bartlett
2007-10-10 15:01:32 -05:00
Andrew Bartlett
c4c3afcdcb r24261: Fix the standalone ldb build after I moved the objectclass module out.
Andrew Bartlett
2007-10-10 15:01:32 -05:00
Andrew Bartlett
af092a361d r24260: Ensure we always override any existing values for these generated
attributes.  Anything else leads to madness.

Andrew Bartlett
2007-10-10 15:01:31 -05:00
Andrew Bartlett
0f7135a468 r24259: Rework the objectclass module to use the new schema, rather than the
ldb_subclass list.

Next step will be to have this module also set the objectCategory and
default ntSecurityDescriptor

Andrew Bartlett
2007-10-10 15:01:31 -05:00
Andrew Bartlett
5f08a686a6 r24249: Thse generated attributes should not be pushed this far down the stack
in any cse.

Andrew Bartlett
2007-10-10 15:01:30 -05:00
Andrew Bartlett
f6566480b7 r24248: Attempt to fix bug #4830 by <mwallnoefer@yahoo.de>. If there is no
payload to the control, we still need to inialise *value, as otherwise
we read uninitialised data later.

Andrew Bartlett
2007-10-10 15:01:30 -05:00
Andrew Bartlett
e5fdcda2a1 r24247: Remove extra newlines from ldb_debug() calls - it already adds one.
Andrew Bartlett
2007-10-10 15:01:30 -05:00
Andrew Bartlett
42bcf85620 r24246: Avoid the annoying 'probable memory leak in ldb' messages, by fixing
some issues in the NBT server (this was a false positive, but easily
worked around) and DRSUAPI server.

We should take care not to use the ldb_context as a talloc pool, and
to always ensure that any results from ldb_search() are moved off that
pool with talloc_steal or talloc_free().

To work around the issue in provision, for which I can find no fault
(other than a lot of work being done in provision), I've moved the
detector trigger to 400 additional blocks.

This fixes Bug #4810 by <mwallnoefer@yahoo.de>

Andrew Bartlett
2007-10-10 15:01:29 -05:00
Andrew Bartlett
50913a401d r24245: Fix bug #4828 - we need to set the samba LDB debug handler early, so
we catch messages pushed out by modules during startup.

This also sets an explict mapping between ldb and Samba debug levels.

Andrew Bartlett
2007-10-10 15:01:29 -05:00
Kai Blin
6b92b816fc r24157: Merge from kai/samba4-gsoc.git;h=728deba680f8cf85cab168a6278a2cf657f65fdb
Make WBSRV_SAMBA3_SET_STRING use safe_strcpy instead of strncpy.
2007-10-10 15:01:28 -05:00
Andrew Bartlett
59cba32c09 r24146: It is not an error for a Win2k3-only server not to support the NT4
replication call.

Andrew Bartlett
2007-10-10 15:01:28 -05:00
Andrew Bartlett
078671d501 r24127: Set the Domain SID into the libnet context, and have libnet_UserInfo
return full SIDs for the user SID and primary group sid.

This should help kai with his getpwnam work in winbind.

Andrew Bartlett
2007-10-10 15:01:27 -05:00
Andrew Bartlett
9a8315019e r24118: Start fixing #4842 (usrmgr polcies menu not working) by removing range
restriction on the maximum returned size.  There isn't a good reason
to have a limit on this one.

Andrew Bartlett
2007-10-10 15:01:27 -05:00
Andrew Bartlett
44c193272b r24112: Complete initialistion of the libnet_ctx when setting up the domain.
We need to set the access_mask and the domain name, or else libnet
will try to do this itself.

This seems to fix the issues Kai was having.

Andrew Bartlett
2007-10-10 15:01:27 -05:00
Andrew Bartlett
ec69f41d09 r24111: Untested code is broken code, untested code is broken code...
Apologies for my previous commit, which should never have been
commited untested.

Andrew Bartlett
2007-10-10 15:01:26 -05:00
Andrew Bartlett
0908d8232e r24110: I hate seeing callers manually filling in the composite context. Use
the helper functions instead (and in kai's new code, which just copied
the previous bad practice).

Andrew Bartlett
2007-10-10 15:01:25 -05:00
Kai Blin
a6a45ab970 r24109: Add a wb_name2domain call 2007-10-10 15:01:25 -05:00
Kai Blin
75e41da039 r24108: Split out samba3_parse_domuser to a seperate file and rename, so it can be
used for a name2domain call.
2007-10-10 15:01:25 -05:00
Andrew Bartlett
db0f81734d r24083: Don't fail the test (looking for the user in the enum) if we didn't
create the user in the first place.

Andrew Bartlett
2007-10-10 15:01:24 -05:00
Andrew Bartlett
d42150ff0a r24082: Following the removal of a fanstsy condition from the SAMR testsuite,
allow the server side to enumerate all domain controllers and domain
members...

Andrew Bartlett
2007-10-10 15:01:24 -05:00
Andrew Bartlett
3e332ff771 r24081: Domain Controllers are also shown in this enumeration.
Andrew Bartlett
2007-10-10 15:01:23 -05:00
Andrew Bartlett
3bfa6dbf7d r24080: Set the primary group (matching windows) when creating new users in
SAMR.  This can't be done in the ldb templates code, as it doesn't
happen over direct LDAP.

As noted in bug #4829.

Andrew Bartlett
2007-10-10 15:01:23 -05:00
Andrew Bartlett
efaf91b9d5 r24075: As suggested by metze, match the behaviour of ntvfs_posix, and remove
the backend data (effectivly closing the handle) when we close an IPC
FD.

This should fix #4821.

Andrew Bartlett
2007-10-10 15:01:22 -05:00
Andrew Bartlett
5e07417ada r24074: Test both permitted logon hours and permitted workstations in the
RPC-SAMLOGON test.

This showed that, as noted by bug #4823, we didn't test for invalid
workstations.  In fact, the code had been ported across, but because
untested code is broken code, it never worked...

Andrew Bartlett
2007-10-10 15:01:21 -05:00
Andrew Bartlett
a4939ab629 r24061: Anther part of bug #4823, which is that until now Samba4 didn't parse
the logon hours, even if set.

This code happily stolen from the great work in Samba3 :-)

Andrew Bartlett
2007-10-10 15:01:21 -05:00
Andrew Bartlett
d053b8e218 r24060: Fix bug #4806 by Matthias Wallnöfer <mwallnoefer@yahoo.de>: We need to
include the attribute allowedChildClassesEffective for MMC to allow
the creation of containers.

This may need further refinement, but it seems to work for now.

Andrew Bartlett
2007-10-10 15:01:21 -05:00