1
0
mirror of https://github.com/samba-team/samba.git synced 2025-10-26 23:33:15 +03:00
Commit Graph

545 Commits

Author SHA1 Message Date
Andrew Tridgell
96db975024 r18334: AIX 5.1 doesn't have any of 'users', 'guest', 'other' or 'unknown'
it does have 'usr'
2007-10-10 14:18:11 -05:00
Andrew Bartlett
77b810f548 r18248: Bail out with a error message if this search fails for some reason.
Andrew Bartlett
2007-10-10 14:17:55 -05:00
Stefan Metzmacher
135d096776 r18213: don't list LIBREPLACE depdendecies explicit and
always at it as first private dependencies

metze
2007-10-10 14:17:50 -05:00
Andrew Tridgell
cefcccb519 r18135: almost there .... 2007-10-10 14:17:38 -05:00
Jelmer Vernooij
1adf65b4d7 r18121: Simplify m4 code, hopefully fix Samba4 build problems. 2007-10-10 14:17:35 -05:00
Andrew Tridgell
c079cedb08 r18117: first steps in making samba4 use libreplace 2007-10-10 14:17:34 -05:00
Andrew Bartlett
1a111817a3 r18072: Really delete things in the base partition, after we changed where the
default search scope points to.

Andrew Bartlett
2007-10-10 14:17:11 -05:00
Andrew Bartlett
befac43f59 r17982: One final hack...
When against a real, schema-checking LDAP backend, we need
extensibleObject on the baseDN entry (as entryUUID isn't run for
creating this basic ldif) output.
2007-10-10 14:17:01 -05:00
Jelmer Vernooij
f7afa1cb77 r17930: Merge noinclude branch:
* Move dlinklist.h, smb.h to subsystem-specific directories
 * Clean up ads.h and move what is left of it to dsdb/
   (only place where it's used)
2007-10-10 14:16:54 -05:00
Stefan Metzmacher
7579503bb8 r17888: use talloc_*_ptrtype() macros as wrappers arround the talloc_*_size()
functions to get rid of c++ warnings

metze
2007-10-10 14:16:51 -05:00
Andrew Bartlett
32996ca9d6 r17876: Require one less patch for the LDAP backend to work.
This lets the modules or backend generate the host and domain GUID,
rather than the randguid() function.  These can still be specified
from the command line.

Andrew Bartlett
2007-10-10 14:16:50 -05:00
Stefan Metzmacher
ba866665f5 r17791: get rid of another compiler warning
metze
2007-10-10 14:16:43 -05:00
Andrew Bartlett
d5814b689e r17704: Add comments suggesting how to get the LDAP backend working.
Shutdown and reload the LDB, so the entryUUID module knows to read the
schema (will be changed once we have a central schema store and
notifications).

Andrew Bartlett
2007-10-10 14:16:28 -05:00
Simo Sorce
8dd1c1c05b r17648: update minschema.js
this version returns also oMSyntax and oMObjectClass and also
use the right value for the objects CNs

add a nasty hack to ejs' mprLdbMessage() to handle binary blobs situations
2007-10-10 14:16:19 -05:00
Stefan Metzmacher
f20e251bfd r17586: merge lib/netif into lib/socket and use -lnsl -lsocket on the
configure check for the interfaces.

should fix the build on some old sun boxes

metze
2007-10-10 14:15:39 -05:00
Andrew Bartlett
8a6908200b r17548: It is a good idea to commit the fix (from mkhl) before the test that
shows the need for...

Martin Kuhl writes:

The ejs function `substitute_var' returns `undefined' when the first
argument ends in a pattern that should be substituted.

For that reason, the second assertion fails in the following test-case:

,----
| libinclude("base.js");
|
| var obj = new Object();
| obj.FOO = "foo";
| obj.BAR = "bar";
| var str1 = "${FOO}:${BAR}";
| var str2 = "${FOO}:${BAR} "; // note the space after the brace
| var sub1 = substitute_var(str1, obj);
| var sub2 = substitute_var(str2, obj);
|
| assert(str1 + " " == str2);
| assert(sub1 + " " == sub2);
`----

The problem is that the function `split' returns a single-element
array in both cases:
a) the string to split doesn't contain the split pattern
b) the string ends with the split pattern

To work around this, the following patch tests this condition and
returns `undefined' only if the string to split (`list[i]') really
didn't contain a closing brace.
2007-10-10 14:15:37 -05:00
Andrew Bartlett
177b713288 r17534: Try another group for 'wheel' on True64. 2007-10-10 14:15:34 -05:00
Andrew Bartlett
009d090594 r17499: Open the main database only the minimum times during a provision.
This causes things to operate as just one transaction (locally), and
to make a minimum of TCP connections when connecting to a remote LDAP
server.

Taking advantage of this, create another file to handle loading the
Samba4 specific schema extensions.  Also comment out 'middleName' and
reassign the OID to one in the Samba4 range, as it is 'stolen' from a
netscape range that is used in OpenLDAP and interenet standards for
'ref'.

Andrew Bartlett
2007-10-10 14:15:30 -05:00
Stefan Metzmacher
679ac74e71 r17341: pass a messaging context to auth_context_create()
and gensec_server_start().

calling them with NULL for event context or messaging context
is no longer allowed!

metze
2007-10-10 14:15:17 -05:00
Stefan Metzmacher
0397911b41 r17339: pass the event context and messaging context together to the
smb ejs functions

metze
2007-10-10 14:15:16 -05:00
Andrew Bartlett
31225b9cb6 r17330: Enable the partitions module.
This module redirects various samdb requests into different modules,
depending on the prefix.  It also makes moving to an LDAP backend
easier, as it is just a different partition backend.

This adds yet another stage to the provision process, as we must setup
the partitions before we setup the magic attributes.

Andrew Bartlett
2007-10-10 14:15:15 -05:00
Simo Sorce
a89cc346b9 r17206: Add a modular API for share configuration.
Commit the classic backwards compatible module which is the default one
2007-10-10 14:10:18 -05:00
Andrew Bartlett
82f5f6c03d r16265: Fix 'newuser' command.
Andrew Bartlett
2007-10-10 14:09:09 -05:00
Andrew Bartlett
b49a4fbb57 r16264: Add, but do not yet enable, the partitions module.
This required changes to the rootDSE module, to allow registration of
partitions.  In doing so I renamed the 'register' operation to
'register_control' and 'register_partition', which changed a few more
modules.

Due to the behaviour of certain LDAP servers, we create the baseDN
entry in two parts: Firstly, we allow the admin to export a simple
LDIF file to add to their server.  Then we perform a modify to add the
remaining attributes.

To delete all users in partitions, we must now search and delete all
objects in the partition, rather than a simple search from the root.
Against LDAP, this might not delete all objects, so we allow this to
fail.

In testing, we found that the 'Domain Controllers' container was
misnamed, and should be 'CN=', rather than 'OU='.

To avoid the Templates being found in default searches, they have been
moved to CN=Templates from CN=Templates,${BASEDN}.

Andrew Bartlett
2007-10-10 14:09:09 -05:00
Andrew Bartlett
0053d06d9f r16168: Make the example match the actual function.
This was very confusing until I really looked at it.

Andrew Bartlett
2007-10-10 14:09:04 -05:00
Andrew Bartlett
4e8d7b7fb3 r16063: Make is clearer when we can't write to the smb.conf
Find more possible posix group names for the 'domain users' group, as
the existing options don't exist in OSX.

Andrew Bartlett
2007-10-10 14:08:55 -05:00
Jelmer Vernooij
cef5cc6464 r15805: Fix incompatible type assignment. Caught by the IBM checker. 2007-10-10 14:08:25 -05:00
Andrew Tridgell
c6d20c2245 r15731: module init functions should return NTSTATUS, not void 2007-10-10 14:08:10 -05:00
Jelmer Vernooij
bf5da20869 r15585: Revive pidl's SWIG file generator. It now generates simple
object oriented wrappers for the interfaces (still need to fix
the actual function calls)
2007-10-10 14:06:00 -05:00
Jelmer Vernooij
b79092d7ee r15581: Remove unused include 2007-10-10 14:06:00 -05:00
Tim Potter
11150b3140 r15391: Wrap up the nbt_name_query() function as a bit of an experiment. It
seemed to work quite well and this technique might be good for
generating an interface to use for automated testing.

Tested by doing a nbt lookup against smbd.
2007-10-10 14:05:32 -05:00
Tim Potter
d67e055f86 r15389: Add some better torture tests for LdbMessage.
Fix up behaviour of Ldb.__setitem__() function.  It should overwrite the
element data.

Add wrapper for ldb_msg_sanity_check().
2007-10-10 14:05:31 -05:00
Tim Potter
7e30e8ba57 r15348: Start adding a dict interface and tests to LdbMessage class. 2007-10-10 14:05:23 -05:00
Tim Potter
370e5b0f8a r15345: Add a read-only test to tdb torture tester. 2007-10-10 14:05:21 -05:00
Jelmer Vernooij
4ec89bce87 r15331: Integrate LIBSMB and LIBCLI into new LIBCLI_SMB 2007-10-10 14:05:18 -05:00
Jelmer Vernooij
c19c2b51d3 r15328: Move some functions around, remove dependencies.
Remove some autogenerated headers (which had prototypes now autogenerated by pidl)
Remove ndr_security.h from a few places - it's no longer necessary
2007-10-10 14:05:17 -05:00
Jelmer Vernooij
d9f1c19f58 r15300: Only enable SWIG shared libs if python is available 2007-10-10 14:05:04 -05:00
Jelmer Vernooij
adc8a019b6 r15207: Introduce PRIVATE_DEPENDENCIES and PUBLIC_DEPENDENCIES as replacement
for REQUIRED_SUBSYSTEMS.
2007-10-10 14:04:18 -05:00
Jelmer Vernooij
7af59357b9 r15191: Avoid uint_t as it's not standard. 2007-10-10 14:04:15 -05:00
James Peach
1b8891a2f3 r15187: Introduce new param type P_BYTES. This lets config options which specify
byte counts be given in convenient units.
2007-10-10 14:04:14 -05:00
Stefan Metzmacher
e896c32614 r15077: map SID_BUILTIN_USERS
metze
2007-10-10 14:04:07 -05:00
Tim Potter
fa8d0dc14a r14968: Move tdb and ldb swig wrappers in to lib/tdb and lib/ldb directories. 2007-10-10 14:00:48 -05:00
Tim Potter
d50661ed4e r14915: Work in progress - getting ldb_add() working. 2007-10-10 14:00:16 -05:00
Jelmer Vernooij
222723e443 r14906: Move SWIG-specific files to scripting/swig/ 2007-10-10 14:00:14 -05:00
Tim Potter
5b722fcd4b r14901: More work on ldb swig interface. Wrap some more functions. 2007-10-10 14:00:13 -05:00
Tim Potter
a40d6c7922 r14897: Do more error checking of tdb function returns and raise IOError or
KeyError exceptions as appropriate.

Add a close() function to the wrapper as we can't rely on the
Python garbage collector destroying the object and closing the tdb file
at any particular time.
2007-10-10 14:00:13 -05:00
Tim Potter
9327fd07d6 r14881: Unpack ldb_message_element and ldb_val arrays. Python can now access
all parts of a ldb_result:

@BASEINFO has 2 elements
        elt[0]: val[0]: sequenceNumber = 2
        elt[1]: val[0]: distinguishedName = @BASEINFO
name=foo has 2 elements
        elt[0]: val[0]: foo = bar
        elt[1]: val[0]: distinguishedName = name=foo

Cleanup some swig junk that was only necessary when including config.h
and function prototypes that used the PRINTF_ATTRIBUTE() macro.

Add some more comments.
2007-10-10 14:00:12 -05:00
Tim Potter
73b233ee1b r14880: Doc. 2007-10-10 14:00:12 -05:00
Tim Potter
60f7f14baa r14879: Fix bug unpacking ldb_messages.
Start decoding more of ldb_message and ldb_message_result.
2007-10-10 14:00:11 -05:00
Tim Potter
704787978a r14878: Write swig wrappers for ldb_init() and ldb_connect().
Start wrapper for ldb_search().  Currently it returns a list of swig
ldb_message objects.  More unpacking of results required.
2007-10-10 14:00:11 -05:00