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

107 Commits

Author SHA1 Message Date
Andrew Bartlett
acd190d8f6 r14200: Now we have real USN support, don't force the values in the provision
scripts.

This tests the real module, and avoids duplication.

Andrew Bartlett
(This used to be commit 0859ba59ae00029177cd63366fc59efe8b19c973)
2007-10-10 13:56:59 -05:00
Simo Sorce
b56282dec7 r13369: let's have a way to show the samba4 version through ejs
and use it in provisioning to fullfill rfc 3045 requirements
(This used to be commit 3fb9571a76481560304a826fc945983d52123299)
2007-10-10 13:51:50 -05:00
Andrew Tridgell
f705108a8a r13102: fixed the vampire code to correctly setup foreign sids and default
unix name mappings
(This used to be commit dc74d8ccf15b9324cd8b90ef9d41cf293b9de8e3)
2007-10-10 13:51:25 -05:00
Andrew Tridgell
29478d3c23 r13098: make check for workgroup and realm case insensitive
(This used to be commit 0cacd69dd57254cb1b51ad7969993bc24bae86c7)
2007-10-10 13:51:24 -05:00
Andrew Tridgell
0fb2e148d1 r13097: move the creation of the default sam name -> unix name mappings into
the main provision logic, so it can also be used as part of the
vampire process
(This used to be commit 95e90169f4e5887ee88116179d96f28f9e06796e)
2007-10-10 13:51:24 -05:00
Stefan Metzmacher
627983ced0 r13084: fix 'make test'!
I would sugguest to run 'make test && make valgrind' before each commit
at this stage...

metze
(This used to be commit b7a0a778cc77f294aac589416b05dc676696d11e)
2007-10-10 13:51:23 -05:00
Andrew Tridgell
82b6a5c9fc r13076: catch a easy to make error during vampire install
(This used to be commit 1c49ce8df0fd2150c68d0bf4162f1ef69ff3392a)
2007-10-10 13:51:22 -05:00
Jelmer Vernooij
a54a66ddf1 r13062: Fix upgrade of WINS entries
(This used to be commit cc4cab341e51d26c90534777eae65b7683ed93ce)
2007-10-10 13:51:20 -05:00
Andrew Tridgell
5d91a37002 r12947: added some error checking that I stumbled across while testing domain migration
(This used to be commit c7951d17b1c4f53dd710d6a0fcf87ce678be3ff1)
2007-10-10 13:51:12 -05:00
Andrew Bartlett
ba07f94438 r12945: Try to move closer to getting Samba3 import working again.
There still a few things to work out

Andrew Bartlett
(This used to be commit 701558b5fe917555416eb0d100ef756f8ef7cf65)
2007-10-10 13:51:12 -05:00
Andrew Bartlett
747b5cce53 r12929: Fix more implict global and shadowing variables.
Andrew Bartlett
(This used to be commit def31956181833db4c8e5079b745ca60fdf35136)
2007-10-10 13:51:07 -05:00
Andrew Bartlett
f3db23ac75 r12928: This patch improves the interaction between the vampire and provsion 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-10 13:51:07 -05:00
Andrew Bartlett
58f78fa182 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
(This used to be commit a5e7c17c348c45e61699cc1626a0d5eae2df4636)
2007-10-10 13:50:59 -05:00
Andrew Bartlett
792951a365 r12891: We no longer manually set the 'name' attribute.
Andrew Bartlett
(This used to be commit 7b169aad3f94f1695b1f99cc91ff928cb2ca0389)
2007-10-10 13:50:58 -05:00
Andrew Bartlett
75ef0ba513 r12823: Fix up the provison and newuser code in SWAT. This also cleans up the
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-10 13:50:02 -05:00
Andrew Bartlett
27f997e682 r12749: Fix the newuser script.
Andrew Bartlett
(This used to be commit 42cdad5e3f06c307baf80396fd8449b803ef84c3)
2007-10-10 13:49:49 -05:00
Andrew Bartlett
8f4dc51345 r12739: Add support for using credentials in the provision process.
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-10 13:49:48 -05:00
Jelmer Vernooij
a7d517d6da r12704: role => server role
(This used to be commit 5884a7effff0b11e82c9d273dbd0407b0f2eb02d)
2007-10-10 13:49:43 -05:00
Jelmer Vernooij
65bf7621d9 r12703: Fix handling of short passdb backends (also reported by Steinar Gunderson)
(This used to be commit 4c562c42b43d98f4c6bdbacc5cb1dd5e65bc3418)
2007-10-10 13:49:43 -05:00
Jelmer Vernooij
34be0772d2 r12699: correctly escape invalid DN characters (reported by Steinar H. 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-10 13:49:41 -05:00
Jelmer Vernooij
6c81984ddb r12697: Support empty fullname fields in unix accounts
(This used to be commit 3d70ebca0b706ae22bc7a3f48c2247c450c42026)
2007-10-10 13:49:40 -05:00
Jelmer Vernooij
92461359f7 r12695: A dot is allowed in NetBIOS names.
(This used to be commit f4ac7d6359b5a6de04a6ea518dec99f4c9b49b3d)
2007-10-10 13:49:39 -05:00
Andrew Bartlett
5811b6dac5 r12533: Get the ldb.errstring() out to the user on failure. It helps a lot
with debugging!

Andrew Bartlett
(This used to be commit fe36cb6767ce99432e2778037aad334170dca173)
2007-10-10 13:47:52 -05:00
Andrew Bartlett
6589e93b1b r12252: With this change (hack) we can now do an provision onto Samba4's LDAP
server.  Now to try another one...

Andrew Bartlett
(This used to be commit 175f616d74ac3567a35713343be0c63c96c5aede)
2007-10-10 13:47:24 -05:00
Andrew Bartlett
a1827a1deb r12227: I realised that I wasn't yet seeing authenticated LDAP for the ldb
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-10 13:47:22 -05:00
Andrew Bartlett
9c6b7f2d62 r11995: A big kerberos-related update.
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)
2007-10-10 13:46:56 -05:00
Andrew Tridgell
09932e0383 r11956: removed the old rootdse.ldif, and the provision.js code that uses it
(This used to be commit 4b56c129c6f1654f9dbe37bc950a836f15c48b3d)
2007-10-10 13:46:50 -05:00
Stefan Metzmacher
509be8d902 r11781: rename tree to tcons to match the sessions substructure of smbsrv_connection
metze
(This used to be commit acd3e644e030a3544ddc6cdcd4e0ec9617732cba)
2007-10-10 13:46:26 -05:00
Andrew Tridgell
b00252c5b8 r11501: change provision code to use the new display specifiers
(This used to be commit 696fa87a212e65d6337c39a84f682b64b52593a5)
2007-10-10 13:45:45 -05:00
Andrew Tridgell
318ac84440 r11500: fixed a bug in the variable substition code using the new limit argument to split()
(This used to be commit 25131efea8c1a2b0bfa7f999766ebcbab8fa8006)
2007-10-10 13:45:45 -05:00
Andrew Tridgell
4764eb7a93 r11496: add a minimal ads-compatible schema into our sam.ldb setup. This is
needed for mmc management of Samba4.
(This used to be commit cbbce4fe403efc0b9e63052c2aa1fbb5972f2abe)
2007-10-10 13:45:45 -05:00
Andrew Tridgell
917ca215bb r11475: removed a extraneous ldb_delete() call (i had it there for debugging)
(This used to be commit daa9dcd8f4b1dde801091ec64faa8158481d171c)
2007-10-10 13:45:42 -05:00
Andrew Tridgell
c845ab1e60 r11474: - enable ldb transactions from ejs
- speed up provisioning a bit using a ldb transaction (also means you
  can't end up with a ldb being half done)
(This used to be commit 91dfe304cf688bb81b69ff3192ac84b78b34b311)
2007-10-10 13:45:41 -05:00
Andrew Tridgell
783851099b r11458: fixed our ejs smbscript interfaces to use arrays where appropriate. In
js arrays are a special type of object where the length property is
automatic, and cannot be modified manually. Our code was manually
setting length, which made it abort when someone passed in a real ejs
array. To fix this we need to create real arrays instead of objects,
and remove the code that manually sets the length
(This used to be commit ebdd1393fde44a0a35446d1a922d29a7c1769ba7)
2007-10-10 13:45:39 -05:00
Andrew Tridgell
c5b99e3c69 r11363: fixed a problem with provisioning when hklm already exists (the
problem is really caused by hklm not having objectclass attributes on
its records, but this is a workaround)
(This used to be commit 62d5253a033f47335ceefade9ad7d98ddfc19584)
2007-10-10 13:45:26 -05:00
Andrew Tridgell
75d3a8f6dc r11285: fixed winreg.js for the recent change to winreg.idl
(This used to be commit 27f46b4f18346ea03d8626a380e417b00f7a88d1)
2007-10-10 13:45:13 -05:00
Andrew Bartlett
17be61b7b9 r11222: Small provision fixes: canonicalName is now generated, and the DC=
list should be from the dnsdomain (ie lowercae).

Andrew Bartlett
(This used to be commit 10d692a1c216134b301b5851ce1e71ed93cc6164)
2007-10-10 13:45:05 -05:00
Andrew Bartlett
8103ef3974 r11217: Ensure the realm is substituted in UPPER case.
Andrew Bartlett
(This used to be commit 0c29f0e30d64be09baad792eb2850aa0b8fa9981)
2007-10-10 13:45:04 -05:00
Andrew Bartlett
642b42424a r11203: Use different variable names to make it easier to tell which assert fired.
Andrew Bartlett
(This used to be commit df6a40c2d261804f1cd4feb24572135a4c62a802)
2007-10-10 13:45:01 -05:00
Stefan Metzmacher
c3c26c9008 r11087: - add type,name,scope as attributes to winsRecords,
so you can use them in search filters,
  only for administration not used inside the winserver code
- fix the samba3 ugrade scripts to create a correct samba4 wins.ldb

metze
(This used to be commit 9f3b6746d86583c48097da48c28f50f075bbd3e3)
2007-10-10 13:44:46 -05:00
Jelmer Vernooij
bb9c9ec69c r10515: Handle replacement of "domain logons" and "domain master" by "server role"
(This used to be commit c5e3a1c55d9e21f9ee618169dc05c69ee9c9c5b1)
2007-10-10 13:38:59 -05:00
Andrew Tridgell
bcc3ce695e r10193: r11632@blu: tridge | 2005-08-30 23:08:27 +1000
if we fail to erase a ldb during provision by traversing
 and deleting records (an in-place erase) then just unlink it
 and start it again. This makes provisioning much more robust
 to changes in ldb that make it not backward compatible with
 old DBs.
(This used to be commit 173655aec25c462b8b90b850df65ae6f95f44efb)
2007-10-10 13:38:07 -05:00
Jelmer Vernooij
342d229b40 r10190: Do some very basic input checking when provisioning.
(This used to be commit 87f25fe49caa78422582337c5208a331ef5b8c15)
2007-10-10 13:38:06 -05:00
Jelmer Vernooij
aae4b1a951 r9951: Add another value to the default HKLM.
Convert Samba3 policy "refuse machine pw change" to registry value.
(This used to be commit a143234ac7622ef3ef87c80224927551a1452e4b)
2007-10-10 13:36:24 -05:00
Jelmer Vernooij
1170f02e23 r9925: Fix swapped nt/lm password hashes - caught by Andrew Bartlett
(This used to be commit 4f0ee80f6cc1639f612a50ddb8d99ee36d8ce8d6)
2007-10-10 13:36:22 -05:00
Jelmer Vernooij
e2e2508b58 r9899: Be more conservative about what is sent to the remote server in ldb_map.
(This used to be commit 76e943d4416e38ce4cce27d5403bc3e133d0025b)
2007-10-10 13:36:21 -05:00
Jelmer Vernooij
05db3024ba r9854: Finish ldb_map testsuite
Update PLAN
Some more small other fixes
(This used to be commit de2bde2526ffaf521253e3b9e58fc11417986321)
2007-10-10 13:36:18 -05:00
Jelmer Vernooij
222fdd5237 r9842: More error checks in the ldb_map modules, extend testsuite
(This used to be commit b7992de4b7d42a55e00509c887a269a07c19627d)
2007-10-10 13:36:17 -05:00
Jelmer Vernooij
0712cbdab4 r9834: More tests for the upgrade from Samba3
(This used to be commit d2db164d6f674cada470e871c558c75f98244141)
2007-10-10 13:36:17 -05:00
Jelmer Vernooij
2f23a8cec1 r9830: Fix support for importing registry values. Extended the examplre registry tdb.
(This used to be commit 11e2a1938966f3aa9e9c25433181c20843951a6b)
2007-10-10 13:36:16 -05:00