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

118 Commits

Author SHA1 Message Date
Rafal Szczesniak
a20b05183d r20176: Info method returns null object if the user is not found.
rafal
2007-10-10 14:29:18 -05:00
Rafal Szczesniak
3cdd43ebce r20143: a bit of experiments before doing serious changes in ejsnet.
rafal
2007-10-10 14:29:14 -05:00
Rafal Szczesniak
2586958881 r19971: typo fix
rafal
2007-10-10 14:28:42 -05:00
Andrew Bartlett
186766e309 r19731: Modify the ldb_map infrustructure to always map from requested
attributes to backend (remote) attributes.

We can't do a reverse mapping safely where the remote attribute may be
a source for multiple local attributes.  (We end up with the wrong
attributes returned).

In doing this, I've modified the samba3sam.js test to be more
realistic, and fixed some failures in the handling of primaryGroupID.

I've added a new (private) helper function ldb_msg_remove_element() to
avoid a double lookup of the element name.

I've also re-formatted many of the function headers, to fit into
standard editor widths.

Andrew Bartlett
2007-10-10 14:28:15 -05:00
Stefan Metzmacher
d643c3cc5c r19729: - split basedn related tests to a new function
- and add some 'netlogon' attriubte related tests

metze
2007-10-10 14:28:15 -05:00
Stefan Metzmacher
463ed4c004 r19727: make it possible to run the ldap.js tests against non global catalog servers
metze
2007-10-10 14:28:15 -05:00
Andrew Bartlett
6c5f4af01f r18786: I moved the usnChanged code around, and it now loaded in a different
module.  I forgot to commit this last night.

Andrew Bartlett
2007-10-10 14:19:12 -05:00
Jelmer Vernooij
d062e10166 r18721: Fix base and samba3sam EJS tests to work without installation. 2007-10-10 14:19:04 -05:00
Jelmer Vernooij
5c0451842b r18720: Get rid of unused file. 2007-10-10 14:19:04 -05:00
Andrew Tridgell
63760acbb7 r18573: disable the echo.js testing of echo_TestCall() for now.
Jelmer, we need to fix pidl to be able to handle the double pointers
in the ejs generated code
2007-10-10 14:18:48 -05:00
Andrew Bartlett
5ff3f10d4f r17925: Another class we need.
Andrew Bartlett
2007-10-10 14:16:54 -05:00
Simo Sorce
4975659fd7 r17839: do not reference possibleInferiors we have not extracted
trim duplicate may attributes
2007-10-10 14:16:47 -05:00
Simo Sorce
74c40719f2 r17662: some more enhancements to our schema extraction tool,
with a nasty hack in minschema.js that I really hate
2007-10-10 14:16:21 -05:00
Andrew Bartlett
1ddd06f24d r17661: A patch from Martin Kuehl:
This commit extends the samba3sam test suite, which contains tests for
the samba3sam and ldb_map modules, with a lot of tests for inbound,
i.e. add, modify, rename and delete requests.

The tests each add a single record, modify it, rename it, and then
delete it, at each step checking that the operations were successful
and that the right data went into the right partitions.
They are run for an unmapped record, a mapped record with data only in
the remote partition, a mapped record with remote data that is later
modified to include local data, and a mapped record with data in both
the local and remote partitions.

It also adds a function to the backend objects that makes construction
of DNs for their respective partitions more comfortable.

Cheers,
Martin
2007-10-10 14:16:21 -05:00
Simo Sorce
09a3272611 r17651: Commit the set of classess used to generate our schema
and update the schema with the latest additions
2007-10-10 14:16:20 -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
Andrew Bartlett
67c9cd508e r17646: Use authentication if specified.
Andrew Bartlett
2007-10-10 14:16:19 -05:00
Andrew Bartlett
120f7891fa r17598: Patch from Martin Kühl <mkhl@samba.org> to update the samba3sam test
suite, which contains tests for the samba3sam and ldb_map modules,
with a lot of tests for search requests.

The tests add a small set of known records to the database, half of
them with only remote data, half of them split across the local and
remote backends, and test searching these records by DN, by attribute
and with a range of parse trees.

This suite should be extensive enough to ensure that behaviour of
search requests doesn't break.
2007-10-10 14:16:15 -05:00
Simo Sorce
25cde0f730 r17597: fix prefix path handling 2007-10-10 14:16:15 -05:00
Andrew Bartlett
c2c72565e4 r17547: Add test by mkhl for some of our variable substituion behaviour.
Andrew Bartlett
2007-10-10 14:15:36 -05:00
Andrew Bartlett
1a5ade30dc r17546: Test the loading of per-partition modules.
Andrew Bartlett
2007-10-10 14:15:36 -05:00
Andrew Bartlett
c1349cfd8d r17544: Add execute bit to js script.
Andrew Bartlett
2007-10-10 14:15:36 -05:00
Andrew Bartlett
f69a842314 r17543: Patch from Martin Kühl <martin.kuehl@gmail.com> to extend the
samba3sam test cases for ldb_map, and to include this into our default
'make test'.
2007-10-10 14:15:36 -05:00
Andrew Bartlett
af2bece4d3 r17525: This is a merge from the Google Summer of Code 2006 project by Martin Kühl
<mkhl@samba.org>.

Martin took over the work done last year by Jelmer, in last year's
SoC.  This was a substanital task, as the the ldb modules API changed
significantly during the past year, with the addition of async calls.

This changeset reimplements and enables the ldb_map ldb module and
adapts the example module and test case, both named samba3sam, to the
implementation.

The ldb_map module supports splitting an ldb database into two parts
(called the "local" and "remote" part) and storing the data in one of
them (the remote database) in a different format while the other acts
as a fallback.
This allows ldb to e.g. store to and load data from a remote LDAP
server and present it according to the Samba4 schema while still
allowing the LDAP to present and modify its data separately.

A complex example of this is the samba3sam module (by Jelmer
Vernooij), which maps data between the samba3 and samba4 schemas.

A simpler example is given by the entryUUID module (by Andrew
Bartlett), which handles some of the differences between AD and
OpenLDAP in operational attributes.  It principally maps objectGUID,
to and from entryUUID elements.  This is also an example of a module
that doesn't use the local backend as fallback storage.

This merge also splits the ldb_map.c file into smaller, more
manageable parts.
2007-10-10 14:15:33 -05:00
Andrew Bartlett
eadc24ed29 r17380: An expanded test, cross-referencing the global catalog to the main port.
Andrew Bartlett
2007-10-10 14:15:20 -05:00
Andrew Bartlett
ad463c1a52 r17302: Testing!
This confirms that records are replicated into the correct databases,
and that the case insensitive flags really work.

Andrew Bartlett
2007-10-10 14:15:08 -05:00
Andrew Bartlett
90c07b8801 r17299: Improve the partition module to replicate attribute records into all
partitions.

Test that we do that correctly.

Andrew Bartlett
2007-10-10 14:15:08 -05:00
Andrew Bartlett
5abe3c4f5f r16934: Expand the ldb test to demonstrate partition behaviour, including the
global USN and global transactions.

Andrew Bartlett
2007-10-10 14:10:01 -05:00
Andrew Bartlett
2728b60dfa r16914: Add more tests for the partition module.
Andrew Bartlett
2007-10-10 14:09:59 -05:00
Andrew Bartlett
ac9d3cb5b0 r16167: Add tests for the changes to use hex digits, including some tests
commented out until we fix some more things on our server.

Andrew Bartlett
2007-10-10 14:09:03 -05:00
Andrew Bartlett
0201f0df3f r16110: Start some simple rootDSE LDAP tests in ejs.
Andrew Bartlett
2007-10-10 14:09:00 -05:00
Andrew Bartlett
f763970caf r16072: Do basic wildcard searching in the ejs LDAP test.
Unfortunetly this didn't find the wildcard bug, but at least it tests
something...

Andrew Bartlett
2007-10-10 14:08:57 -05:00
Andrew Bartlett
52b4e83a1c r16068: Check against the correct result in the ldap.js test
Andrew Bartlett
2007-10-10 14:08:56 -05:00
Andrew Bartlett
9ddcfacbce r16066: The OSX AD plugin uses objectCategory searches a lot, and uses them
both fully qualified and in the 'short' form.  Now we test and support
this query format.

Andrew Bartlett
2007-10-10 14:08:55 -05:00
Andrew Bartlett
4e39d7bb24 r16061: Prove that removing the objectClass list in the samldb module breaks things.
With this fix, we now correctly detect computers again, and get the
correct objectCategory, which is important for the OSX AD plugin.

Andrew Bartlett
2007-10-10 14:08:55 -05:00
Andrew Bartlett
f72079029a r16028: Re-add the objectclass module, in the new async scheme.
Add a test to show that we need this, and to prove it works (for add
at least).

Andrew Bartlett
2007-10-10 14:08:51 -05:00
Simo Sorce
7ddec83a60 r13356: test utf8 usernames 2007-10-10 13:51:48 -05:00
Andrew Bartlett
7a9c8eee4b r12998: A big update to samldb.c
This updates the module to handle both SID allocation and nextRid
updating while importing users.  (As imported users already have a
SID, so don't go via the allocation step).  We also ensure that SIDs
in the database are unquie at create time.

Furthermore, at allocation time, we double-check the SID isn't already
in use, and that we don't create a foriegnSecurityPrincipal for a
'local' sid.

Also create random samAccountName entries for users without one (we
were setting $000000-000000000000).

We may want to seperate the uniqueness code from the rest of samldb,
and into a module with the objectguid code, which needs similar
checks.  These checks also need to apply to modification, or those
modifications denied outright.

Also update part of the testsuite to validate this.

Andrew Bartlett
2007-10-10 13:51:15 -05:00
Andrew Bartlett
a5e7c17c34 r12892: Add a 'Migrate from Windows' page to our installation section in SWAT.
Doing this required reworking ejsnet, particularly so it could take a
set of credentials, not just a username and password argument.

This required fixing the ejsnet.js test script, which now adds and
deletes a user, and is run from 'make test'.  This should prevent it
being broken again.

Deleting a user from ejsnet required that the matching backend be
added to libnet, hooking fortunetly onto already existing code for the
actual deletion.

The js credentials interface now handles the 'set machine account' flag.

New functions have been added to provision.js to wrap the basic
operations (so we can write a command line version, as well as the web
based version).

Andrew Bartlett
2007-10-10 13:50:59 -05:00
Andrew Tridgell
f4f99f9af3 r12324: use command line credentials if available in ldap.js 2007-10-10 13:47:29 -05:00
Rafal Szczesniak
5a338b04f3 r11587: Trivial testing code giving an idea of how could using
subcontexts look like.

rafal
2007-10-10 13:45:54 -05:00
Andrew Tridgell
69264362bd r11467: yay! mmc now accepts our schema. The trick was to get all the OID
mappings right for the attributeTypes field of the aggregate schema

now to add the display specifiers and I won't need the proxy module
any more
2007-10-10 13:45:40 -05:00
Andrew Tridgell
3af867a3f4 r11463: more progress on the schema generator. mmc now accepts all parts
except the attributeTypes fields of the Aggregrate record. Proxying
just that field and the display specifiers gives us a working mmc
client

hopefully i'll work out what it doesn't like about the attributeTypes
field soon
2007-10-10 13:45:40 -05:00
Andrew Tridgell
38ea11510c r11436: this is work in progress for generating the schema we need for our ADS
ldap server. It's still not quite right, and I'm chasing down a few
errors that mmc throws up, but its a lot closer than it was. I had to
change the approach quite substantially over the last couple of days,
but this approach now seems to be working out.
2007-10-10 13:45:37 -05:00
Rafal Szczesniak
deb561ea4a r11309: A trivial test script for ejs libnet interface.
rafal
2007-10-10 13:45:17 -05:00
Andrew Tridgell
7b0ae77757 r10990: the beginnings of a program designed to work out the minimal schema
needed to represent all the current records on a ADS LDAP server. The
idea is we will use something based on this code to work out exactly
what schema elements we will need for our initial ADS schema. I plan
on expanding this code to automatically work out attribute properties,
and write out a schema file that we can load into ldb.

Interestingly, it looks like we only need 43 objectclasses and around
200 attributes to represent all records of a newly installed w2k3 ADS
server.
2007-10-10 13:39:51 -05:00
Andrew Tridgell
915878d7ce r10919: fixed the ldb test for the new operational module 2007-10-10 13:39:43 -05:00
Jelmer Vernooij
04b8c473d7 r10577: Fix error in ReadFile() 2007-10-10 13:39:06 -05:00
Jelmer Vernooij
30ba8fdc3d r10576: Add testprog for named pipes. Also add GNUmakefile's for cross-compilation
using mingw32
2007-10-10 13:39:06 -05:00
Jelmer Vernooij
152c1a37b5 r9919: Remove debug statement from samba3sam
Add SOC STATUS doc
2007-10-10 13:36:22 -05:00