1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-25 06:04:04 +03:00

91 Commits

Author SHA1 Message Date
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
Jelmer Vernooij
8ff1358f40 r9915: Some more mappings. Fix weird sAMAccountName values. 2007-10-10 13:36:21 -05:00
Jelmer Vernooij
4c3b37d660 r9912: Fix another bug in ldb_map. 2007-10-10 13:36:21 -05:00
Jelmer Vernooij
ebed25b47d r9908: Generate posixUser and posixGroup as well 2007-10-10 13:36:21 -05:00
Jelmer Vernooij
76e943d441 r9899: Be more conservative about what is sent to the remote server in ldb_map. 2007-10-10 13:36:21 -05:00
Jelmer Vernooij
d6dce7ef3e r9857: Fix rename/delete issues 2007-10-10 13:36:18 -05:00
Jelmer Vernooij
31cd5d55a9 r9855: Finish ldb_map testsuite
Update PLAN
Some more small other fixes
2007-10-10 13:36:18 -05:00
Jelmer Vernooij
5cbe1e6b70 r9849: Extend testsuite a bit more. 2007-10-10 13:36:17 -05:00
Jelmer Vernooij
b7992de4b7 r9842: More error checks in the ldb_map modules, extend testsuite 2007-10-10 13:36:17 -05:00
Jelmer Vernooij
77f24ed131 r9813: Conver testsuite for samba3sam module to EJS 2007-10-10 13:35:04 -05:00
Andrew Tridgell
47c11fd886 r9599: fix formatting of echo output 2007-10-10 13:34:33 -05:00
Andrew Tridgell
1ead49f8e8 r9491: fixed up a few scripts that need to be updated for the new GetOptions syntax. Mimir, its
a good idea to use grep -r to find places that need fixing when you change the syntax of
a call :-)
2007-10-10 13:34:21 -05:00
Andrew Tridgell
dae90b6959 r9383: remove unused file 2007-10-10 13:33:31 -05:00
Andrew Tridgell
f217f08b67 r9345: used the data blob functions in the echo.js test code 2007-10-10 13:33:26 -05:00
Andrew Tridgell
bda6943c31 r9342: removed extra libinclude of base.js 2007-10-10 13:33:26 -05:00
Andrew Tridgell
75d0cf78ec r9341: updated the winreg test program to take advantage of the new EnumValue
functionality. It now completely enumerates a winreg tree.

This would make a good basis for a js version of regshell if someone
felt like taking that on.
2007-10-10 13:33:26 -05:00
Andrew Tridgell
dadd7e22fb r9218: make the winreg library code handle arbitrary paths more efficiently
and more conveniently (caller doesn't need to know the hive names now)
2007-10-10 13:31:32 -05:00
Andrew Tridgell
33bb76ed4e r9160: use the winreg lib in the test program 2007-10-10 13:31:25 -05:00
Andrew Tridgell
10043db676 r9153: added a sample program for enumerating winreg via js 2007-10-10 13:31:24 -05:00
Andrew Tridgell
f7b49ecd08 r8821: continue the trend to move to a more OO style of interface for our js
calls. This changes the generated RPC and IRPC calls to use the 'this'
object pointer instead of requiring the passing of the object on each
call. So typical usage is now:

var echo = echo_init();
var io = irpcObj();

status = echo.connect("ncacn_np:server");
assert(status.is_ok);

io.input.in_data = 7;
status = echo.AddOne(io);
assert(status.is_ok);
2007-10-10 13:30:08 -05:00
Andrew Tridgell
3a1c6a176e r8745: make ldap.js cleanup after itself 2007-10-10 13:30:01 -05:00
Andrew Tridgell
bdca9537a2 r8743: automatically find the basedn in ldap.js 2007-10-10 13:30:01 -05:00
Andrew Bartlett
0cc58f5c3c r8740: Extend the rdn_name module to handle adding the rdn as an attribute. ie:
dn: cn=foo,ou=bar
objectClass: person

implies

dn: cn=foo,ou=bar
objectClass: person
cn: foo
(as well as a pile more default attributes)

We also correct the case in the attirbute to match that in the DN
(win2k3 behaviour) and I have a testsuite (in ejs) to prove it.

This module also found a bug in our provision.ldif, so and reduces
code complexity in the samdb module.

Andrew Bartlett
2007-10-10 13:30:00 -05:00
Andrew Bartlett
325f6d24df r8738: Test (using ejs!) the basic operation of the ldb modules.
ejs seems to test this stuff very nicely!

Andrew Bartlett
2007-10-10 13:30:00 -05:00
Andrew Tridgell
19ae68f59a r8652: added a test for the boolean bug just fixed 2007-10-10 13:29:50 -05:00
Andrew Tridgell
2dc493eea6 r8639: moved loadparm calls into an ejs object 2007-10-10 13:29:48 -05:00
Andrew Tridgell
a978484738 r8638: continue the trend of maknig our C functions true ejs objects by making the string functions
into an object. To keep existing code working I have added:

  string_init(global);

into base.js. That brings the functions into the global scope for our
existing scripts
2007-10-10 13:29:48 -05:00
Andrew Tridgell
42ae50db81 r8636: fixed the ejs ldb test to work with the new ldb.search() syntax, and
add it to our test suite so it will be maintained
2007-10-10 13:29:47 -05:00