summaryrefslogtreecommitdiff
path: root/source4/scripting/libjs
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r19427: print out the currect nameStefan Metzmacher1-1/+1
metze (This used to be commit 0fcdc8c243f50da5a1203370740ac8d022a5cfdc)
2007-10-10r19334: Commit commented provisioning code to activate the schemaSimo Sorce1-0/+32
(This used to be commit 57ee79c15579d1bbe7c0d3202b84a06b75320e40)
2007-10-10r19318: Because we don't test the vampire code in SWAT very regularly, it ↵Andrew Bartlett1-2/+4
bit-rotted. Fix up interfaces and interaction between the two.. Andrew Bartlett (This used to be commit 9b77d285d8cd8999547c0d17e97681d236acbdb0)
2007-10-10r19258: Don't delete the contents of the partitions twice, and in particularAndrew Bartlett1-17/+6
don't delete their contents until we have specified the new partition locations. However, preserve the important part of tridge's change, that is to ensure that no database index is present when the mass delete occours. In my testing, it is best to leave the index until the provision is compleated. Andrew Bartlett (This used to be commit 962219df7dc53ce6f6889f4b71ee19850c7ff7b5)
2007-10-10r19252: - fixed 'erase' argument to setup_ldb()Andrew Tridgell1-2/+21
- when wiping a ldb, wipe within each naming context first. By not wiping the naming contexts we didn't wipe the partitions, which caused a massive slowdown in re-provisioning due to re-indexing of the schema. (This used to be commit b62437214cf7c98c81598c4f37c91ab284928dbb)
2007-10-10r19216: Merge from SAMBA_4_0_RELEASE:Andrew Bartlett1-0/+1
Move default for subobj.LDAPMODULES into scripting/libjs/provision.js so that SWAT can provision again. Andrew Bartlett (This used to be commit a4aafe307d6d1396fa79b0c48b0a36cbf682f0ce)
2007-10-10r18977: Seperate these asserts, so we know which fired.Andrew Bartlett1-1/+2
Andrew Bartlett (This used to be commit 9b2003618b28cb045e74937803e9aad773781803)
2007-10-10r18880: JSON-RPC work in progressDerrell Lipman1-1/+1
(This used to be commit 34bffbaebf50c2a75c91285d5ec82e8f377981cc)
2007-10-10r18567: fixed the winreg js code for the new names of the fields in winreg.idlAndrew Tridgell1-6/+6
When changing a field name in idl, please remember to check for use of those functions in any js code as well. (This used to be commit 7005806aa6842ffc3d5ed98682f2aefc59759580)
2007-10-10r18334: AIX 5.1 doesn't have any of 'users', 'guest', 'other' or 'unknown'Andrew Tridgell1-1/+1
it does have 'usr' (This used to be commit 96db975024a744f42a0418e379df1da6c4079fe6)
2007-10-10r18248: Bail out with a error message if this search fails for some reason.Andrew Bartlett1-0/+4
Andrew Bartlett (This used to be commit 77b810f548fffc1298978cc92c842f5e4fc13786)
2007-10-10r18072: Really delete things in the base partition, after we changed where theAndrew Bartlett1-4/+3
default search scope points to. Andrew Bartlett (This used to be commit 1a111817a361faab04e73b666624ce554f000034)
2007-10-10r17982: One final hack...Andrew Bartlett1-0/+3
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. (This used to be commit befac43f59c4688f6c6827eb2e4e916c1056a740)
2007-10-10r17876: Require one less patch for the LDAP backend to work.Andrew Bartlett1-4/+21
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 (This used to be commit 32996ca9d62568006f8bee85a1f2f37c64c04fb5)
2007-10-10r17704: Add comments suggesting how to get the LDAP backend working.Andrew Bartlett1-3/+23
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 (This used to be commit d5814b689eedfc4c4701beb18a516db716a466f1)
2007-10-10r17548: It is a good idea to commit the fix (from mkhl) before the test thatAndrew Bartlett1-1/+1
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. (This used to be commit 8a6908200b1e459bc9067a9d1f9635185a7eee16)
2007-10-10r17534: Try another group for 'wheel' on True64.Andrew Bartlett1-1/+1
(This used to be commit 177b713288be9c5d559a27d65e16521cbeefc958)
2007-10-10r17499: Open the main database only the minimum times during a provision.Andrew Bartlett1-84/+62
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 (This used to be commit 009d0905947dec9bab81d8e6de5cb424807ffd35)
2007-10-10r17330: Enable the partitions module.Andrew Bartlett1-1/+4
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 (This used to be commit 31225b9cb6ef6fcb7bd831043999b1b44ef1b128)
2007-10-10r17206: Add a modular API for share configuration.Simo Sorce1-0/+7
Commit the classic backwards compatible module which is the default one (This used to be commit a89cc346b9296cb49929898d257a064a6c2bae86)
2007-10-10r16265: Fix 'newuser' command.Andrew Bartlett1-1/+1
Andrew Bartlett (This used to be commit 82f5f6c03d005741613c5b00705613c4078c844e)
2007-10-10r16264: Add, but do not yet enable, the partitions module.Andrew Bartlett1-19/+150
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 (This used to be commit b49a4fbb57f10726bd288fdc9fc95c0cbbe9094a)
2007-10-10r16063: Make is clearer when we can't write to the smb.confAndrew Bartlett1-5/+8
Find more possible posix group names for the 'domain users' group, as the existing options don't exist in OSX. Andrew Bartlett (This used to be commit 4e8d7b7fb310a668ae8653bc06036c94249b2b2a)
2007-10-10r15077: map SID_BUILTIN_USERSStefan Metzmacher1-0/+1
metze (This used to be commit e896c32614fd4fd80a124ccfe49332e319f717f9)
2007-10-10r14200: Now we have real USN support, don't force the values in the provisionAndrew Bartlett1-16/+0
scripts. This tests the real module, and avoids duplication. Andrew Bartlett (This used to be commit 0859ba59ae00029177cd63366fc59efe8b19c973)
2007-10-10r13369: let's have a way to show the samba4 version through ejsSimo Sorce1-1/+1
and use it in provisioning to fullfill rfc 3045 requirements (This used to be commit 3fb9571a76481560304a826fc945983d52123299)
2007-10-10r13102: fixed the vampire code to correctly setup foreign sids and defaultAndrew Tridgell1-21/+35
unix name mappings (This used to be commit dc74d8ccf15b9324cd8b90ef9d41cf293b9de8e3)
2007-10-10r13098: make check for workgroup and realm case insensitiveAndrew Tridgell1-2/+2
(This used to be commit 0cacd69dd57254cb1b51ad7969993bc24bae86c7)
2007-10-10r13097: move the creation of the default sam name -> unix name mappings intoAndrew Tridgell1-6/+75
the main provision logic, so it can also be used as part of the vampire process (This used to be commit 95e90169f4e5887ee88116179d96f28f9e06796e)
2007-10-10r13084: fix 'make test'!Stefan Metzmacher1-5/+0
I would sugguest to run 'make test && make valgrind' before each commit at this stage... metze (This used to be commit b7a0a778cc77f294aac589416b05dc676696d11e)
2007-10-10r13076: catch a easy to make error during vampire installAndrew Tridgell1-0/+5
(This used to be commit 1c49ce8df0fd2150c68d0bf4162f1ef69ff3392a)
2007-10-10r13062: Fix upgrade of WINS entriesJelmer Vernooij1-1/+1
(This used to be commit cc4cab341e51d26c90534777eae65b7683ed93ce)
2007-10-10r12947: added some error checking that I stumbled across while testing ↵Andrew Tridgell1-1/+16
domain migration (This used to be commit c7951d17b1c4f53dd710d6a0fcf87ce678be3ff1)
2007-10-10r12945: Try to move closer to getting Samba3 import working again.Andrew Bartlett1-6/+20
There still a few things to work out Andrew Bartlett (This used to be commit 701558b5fe917555416eb0d100ef756f8ef7cf65)
2007-10-10r12929: Fix more implict global and shadowing variables.Andrew Bartlett1-5/+5
Andrew Bartlett (This used to be commit def31956181833db4c8e5079b745ca60fdf35136)
2007-10-10r12928: This patch improves the interaction between the vampire and provsion ↵Andrew Bartlett1-16/+48
code. Previously, we had to know (or guess) the host and domain guid at the provision stage. Now we query the database post-provision, to extract the values and fill in the zone file. This allows us to generate a correct zone file in the Windows migration case. In an effort to make SWAT easier to use, I have removed and renamed some of the provision options. I have also fixed a nasty issue in my js code. I had implictly declared a global variable of the name 'join', with disasterious results for any subsequent user of the string utility function: esp exception - ASSERT at lib/appweb/ejs/ejsParser.c:2064, 0 Backtrace: [ 0] substitute_var:20 -> list[i] = join("", list2) [ 1] setup_file:9 -> data = substitute_var(data, subobj) Andrew Bartlett (This used to be commit a38ceefd11f8b748f30383ef36a4752f178bfca1)
2007-10-10r12892: Add a 'Migrate from Windows' page to our installation section in SWAT.Andrew Bartlett1-0/+26
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 (This used to be commit a5e7c17c348c45e61699cc1626a0d5eae2df4636)
2007-10-10r12891: We no longer manually set the 'name' attribute.Andrew Bartlett1-2/+1
Andrew Bartlett (This used to be commit 7b169aad3f94f1695b1f99cc91ff928cb2ca0389)
2007-10-10r12823: Fix up the provison and newuser code in SWAT. This also cleans up theAndrew Bartlett1-21/+30
main provision script a bit, as the argument list was getting out of control. (It has been replaced in part with an object). This also returns the session_info from the auth code into ejs. We still need access control allowing only root to re-provision. Andrew Bartlett (This used to be commit 002cdcf3cab6563909d31edc5d825e857dc0a732)
2007-10-10r12749: Fix the newuser script.Andrew Bartlett1-6/+4
Andrew Bartlett (This used to be commit 42cdad5e3f06c307baf80396fd8449b803ef84c3)
2007-10-10r12739: Add support for using credentials in the provision process.Andrew Bartlett1-16/+21
This should allow us to provision to a 'normal' LDAP server. Also add in 'session info' hooks (unused). Both of these need to be hooked in on the webserver. Andrew Bartlett (This used to be commit b349d2fbfefd0e0d4620b9e8e0c4136f900be1ae)
2007-10-10r12704: role => server roleJelmer Vernooij1-4/+4
(This used to be commit 5884a7effff0b11e82c9d273dbd0407b0f2eb02d)
2007-10-10r12703: Fix handling of short passdb backends (also reported by Steinar ↵Jelmer Vernooij1-2/+4
Gunderson) (This used to be commit 4c562c42b43d98f4c6bdbacc5cb1dd5e65bc3418)
2007-10-10r12699: correctly escape invalid DN characters (reported by Steinar H. ↵Jelmer Vernooij1-1/+1
Gunderson). this still doesn't work as a bug in ldb causes it to not understand escaped characters in DNs when parsing DNs (This used to be commit 10da56fb6cc57b6c0650a8dc81ded5faa643a96e)
2007-10-10r12697: Support empty fullname fields in unix accountsJelmer Vernooij1-0/+4
(This used to be commit 3d70ebca0b706ae22bc7a3f48c2247c450c42026)
2007-10-10r12695: A dot is allowed in NetBIOS names.Jelmer Vernooij1-2/+2
(This used to be commit f4ac7d6359b5a6de04a6ea518dec99f4c9b49b3d)
2007-10-10r12533: Get the ldb.errstring() out to the user on failure. It helps a lotAndrew Bartlett1-2/+9
with debugging! Andrew Bartlett (This used to be commit fe36cb6767ce99432e2778037aad334170dca173)
2007-10-10r12252: With this change (hack) we can now do an provision onto Samba4's LDAPAndrew Bartlett1-1/+4
server. Now to try another one... Andrew Bartlett (This used to be commit 175f616d74ac3567a35713343be0c63c96c5aede)
2007-10-10r12227: I realised that I wasn't yet seeing authenticated LDAP for the ldbAndrew Bartlett1-9/+9
backend. The idea is that every time we open an LDB, we can provide a session_info and/or credentials. This would allow any ldb to be remote to LDAP. We should also support provisioning to a authenticated ldap server. (They are separate so we can say authenticate as foo for remote, but here we just want a token of SYSTEM). Andrew Bartlett (This used to be commit ae2f3a64ee0b07575624120db45299c65204210b)
2007-10-10r11995: A big kerberos-related update.Andrew Bartlett1-0/+3
This merges Samba4 up to current lorikeet-heimdal, which includes a replacement for some Samba-specific hacks. In particular, the credentials system now supplies GSS client and server credentials. These are imported into GSS with gss_krb5_import_creds(). Unfortunetly this can't take an MEMORY keytab, so we now create a FILE based keytab as provision and join time. Because the keytab is now created in advance, we don't spend .4s at negprot doing sha1 s2k calls. Also, because the keytab is read in real time, any change in the server key will be correctly picked up by the the krb5 code. To mark entries in the secrets which should be exported to a keytab, there is a new kerberosSecret objectClass. The new routine cli_credentials_update_all_keytabs() searches for these, and updates the keytabs. This is called in the provision.js via the ejs wrapper credentials_update_all_keytabs(). We can now (in theory) use a system-provided /etc/krb5.keytab, if krb5Keytab: FILE:/etc/krb5.keytab is added to the secrets.ldb record. By default the attribute privateKeytab: secrets.keytab is set, pointing to allow the whole private directory to be moved without breaking the internal links. (This used to be commit 6b75573df49c6210e1b9d71e108a9490976bd41d)