1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-14 12:23:52 +03:00
Commit Graph

205 Commits

Author SHA1 Message Date
Jelmer Vernooij
27eefbd905 r9805: Add 'data' property to param EJS object
Write out new smb.conf file. Parameters that have disappeared
between Samba 3 and 4 will optionally be prefixed with 'samba3:'
2007-10-10 13:35:03 -05:00
Jelmer Vernooij
bb0cef581a r9800: Add EJS interface to param. tridge, sorry this overlaps a bit
with your loadparm interface. :-/
2007-10-10 13:35:03 -05:00
Jelmer Vernooij
b7c09df9e5 r9793: Be more verbose, check for errors in upgrade script. 2007-10-10 13:35:02 -05:00
Jelmer Vernooij
d9541535e3 r9770: Couple other bugfixes
Update TODO-list
2007-10-10 13:34:58 -05:00
Jelmer Vernooij
1376a1fe44 r9762: Add support for reading good old smbpasswd files
Fix password support
Make base64 decode/encode functions available to EJS
2007-10-10 13:34:57 -05:00
Jelmer Vernooij
a8f309aa81 r9756: One-way upgrade from Samba3->Samba4 basically works now
Still need to polish some rough edges
2007-10-10 13:34:56 -05:00
Jelmer Vernooij
8baa2ac377 r9754: Upgrading with the command line utility now works, at least partially (-:
Upgrading using SWAT should work as well now.
2007-10-10 13:34:56 -05:00
Jelmer Vernooij
b1d9ef8998 r9746: Add "staff" as possible alternative to wheel
(should fix standard provisioning on AIX)
2007-10-10 13:34:56 -05:00
Jelmer Vernooij
435e4c6389 r9744: - [upgrade.js] Start working on smb.conf conversion.
- [ldb_map] Support storing non-mappable data in a fallback LDB
2007-10-10 13:34:55 -05:00
Jelmer Vernooij
d569465dc4 r9735: More work on generating a valid Samba4 configuration using the
Samba3 data (both console and SWAT)
2007-10-10 13:34:55 -05:00
Jelmer Vernooij
7e3b94dfb9 r9722: Initial attempt at converting samba3dump to EJS.. 2007-10-10 13:34:53 -05:00
Jelmer Vernooij
b1844905d2 r9718: Work a bit on the SWAT interface 2007-10-10 13:34:53 -05:00
Andrew Tridgell
a22d0d02ee r9707: r11080@blu: tridge | 2005-08-28 12:41:12 +1000
make sure we leave the account enabled after creating a new user
2007-10-10 13:34:52 -05:00
Andrew Tridgell
881452c7b7 r9568: updated the winreg js library for CreateKey, and add a --createkey
option to the winreg tool
2007-10-10 13:34:29 -05:00
Andrew Tridgell
47cf409cdf r9497: - converted the winreg library to a more OO style of interface
- added a reg.typestring() method that returns a string representation of a type
2007-10-10 13:34:22 -05:00
Andrew Tridgell
6f69eeb8f2 r9465: handle encoding and decoding of pointers, representing them as a
string containing "(POINTER)"
2007-10-10 13:34:18 -05:00
Andrew Tridgell
3a9c63923f r9355: return the EnumKey and EnumValue list we have so far when we get a rpc fault 2007-10-10 13:33:27 -05:00
Andrew Tridgell
8354b01612 r9338: fixed the winreg IDL to be correct for the EnumKey and EnumValue
calls. The previous IDL was just a workaround for the limitations of
our older rpc infrastructure. Now that Jelmer has added much improved
string support using the charset keyword we can correctly implemenent
the unusual winreg string buffers.

Jelmer, note the little comment I put on winreg_StringBuf() about why
I couldn't use [value()] for the length field.

This also fixes EnumKey() and EnumValue() to use NTTIME fields for the
last_changed_time. I don't know why we were using a pair of uint32's,
as it is just a NTTIME.
2007-10-10 13:33:25 -05:00
Andrew Tridgell
ceb7669e59 r9227: cleanup and simplify the AJAJ code 2007-10-10 13:31:34 -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
0b96b3bfe3 r9178: remove the old server printf code 2007-10-10 13:31:29 -05:00
Andrew Tridgell
ea3c3d0a0f r9174: ejs does not include the special variable 'length' in for loops over objects,
so we need to check for it separately in the object lineariser
2007-10-10 13:31:28 -05:00
Andrew Tridgell
5e39870062 r9159: abstract the winreg js functions into a nice library interface 2007-10-10 13:31:25 -05:00
Andrew Tridgell
5f9e00fb7f r9131: started adding the server side code for "AJAJ" (asynchronous javascript and javascript)
This is rather like AJAX, but passes around javascript objects between
the client and server, taking advantage of the fact that we have the
same language on both client and server.
2007-10-10 13:31:19 -05:00
Andrew Tridgell
8eee26bb85 r8822: fixed number of arguments in samr lib 2007-10-10 13:30:08 -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 Bartlett
1f071b0609 r8790: Finish the migration of aliases and privilages with SamSync, by adding
templating support for foreignSecurityPrincipals to the samdb module.
This is an extension beyond what microsoft does, and has been very
useful :-)

The setup scripts have been modified to use the new template, as has
the SAMR and LSA code.

Other cleanups in LSA remove the assumption that the short domain name
is the first component of the realm.

Also add a lot of useful debug messages, to make it clear how/why the
SamSync may have gone wrong.  Many of these should perhaps be hooked
into an error string.

Andrew Bartlett
2007-10-10 13:30:05 -05:00
Andrew Bartlett
2303e24be7 r8677: The first part of the domain name may not be equal to the netbios domain name.
Remove the use of flatname from the main domain object, we no longer
reference it.

Andrew Bartlett
2007-10-10 13:29:53 -05:00
Andrew Bartlett
4a8ef7197f r8660: Use templates for the initial provision of user and computer accounts.
This ensures the templating code is used, and also makes it clearer
what I need to duplicate in the vampire area.

Also fix a silly bug in the template application code (the samdb
module) that caused templates to be compleatly unused (my fault, from
my commit last night).

Andrew Bartlett
2007-10-10 13:29:51 -05:00
Andrew Bartlett
940ed9827f r8650: Use the timestamps and a new objectguid module rather than placing
boilerplate attributes in every entry in provision.ldif.

The next step will be to use templates.

Andrew Bartlett
2007-10-10 13:29:50 -05:00
Andrew Tridgell
78fb559c08 r8648: automatically redirect to provisioning if not yet provisioned when the
home page in swat is accessed
2007-10-10 13:29:49 -05:00
Andrew Tridgell
c2691ef712 r8643: - make lp_configfile() work again
- get rid of redundeny dyn_CONFIGFILE argument to lp_load()

- fixed provisioning to work with completely pristine install,
  creating an initial smb.conf is none is present

- added lp.set() and lp.reload() to loadparm ejs object interface
2007-10-10 13:29:48 -05:00
Andrew Tridgell
ed4fb68ef7 r8640: continue the trend by moving the ejs random calls into an object 2007-10-10 13:29:48 -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
9e07c08a71 r8629: - moved the getDomainList() call out of smbcalls_auth.c and into libjs/auth.js
- tried to make the ejs_userAuth() call work for the sam, not just for
  unix auth. I didn't get this working. Andrew, when you get a chance
  can you see what I'm doing wrong? I suspect its because we aren't
  supplying a challenge, but a challenge doesn't really make sense in a
  'is this username/password' correct call.
2007-10-10 13:29:46 -05:00
Andrew Tridgell
1183f54c8d r8603: we have to use the same db name as the rest of smbd uses so the ldb connect
works when already open
2007-10-10 13:29:44 -05:00
Andrew Tridgell
78d6303814 r8590: added server status utility functions for checking on the status of a task via irpc
- for stream tasks, returns the number of connections

- for non-stream tasks, returns "RUNNING"

For both, return "DISABLED" or "NOT RESPONDING" appropriately
2007-10-10 13:29:42 -05:00
Andrew Tridgell
26a676a4e3 r8584: added --nbt option to smbstatus for nbt server statistics 2007-10-10 13:29:41 -05:00
Andrew Tridgell
658befc1e4 r8577: added management calls to list current tree connects 2007-10-10 13:29:40 -05:00
Andrew Tridgell
4ecaf72a31 r8575: the beginnings of a smbstatus command 2007-10-10 13:29:40 -05:00
Andrew Tridgell
71004aa165 r8570: delete all records in the old db when provisioning, rather than using
sys.unlink(). This allows smbd to see the new db without restarting.
2007-10-10 13:29:39 -05:00
Andrew Tridgell
a3f3292e66 r8561: as with the other ejs subsystems, make nss into a object 2007-10-10 13:29:38 -05:00
Andrew Tridgell
b6ef32ddd1 r8558: move newuser logic into the provision.js lib 2007-10-10 13:29:37 -05:00
Andrew Tridgell
cf35818648 r8488: after discussions with simo, moved to a full OO interface, so you don't need to keep
a 'db' variable around. The ldb object knows what it is connected to.

Added a simple ldb testsuite in testprogs/ldb.js
2007-10-10 13:23:08 -05:00
Andrew Tridgell
98c9c4ecb8 r8486: switched to a separate connection operation in ldb interface
(a suggestion from simo)
2007-10-10 13:23:08 -05:00
Andrew Tridgell
9991e924e9 r8484: switched the sys_*() calls to the OO interface
tim, do you want to do the cli_*() calls now?
2007-10-10 13:23:08 -05:00
Andrew Tridgell
57d7a585e8 r8483: switched our generated ejs rpc code over to the new OO interface. This
means we don't pollute the name space, and also makes for faster
startup times as we only create variables for the pipes that we use,
not all pipes
2007-10-10 13:23:08 -05:00
Andrew Tridgell
3093057d97 r8481: switched ldb ejs called over to an OO interface, so you do:
var ldb = ldb_init();

res = ldb.search(dbfile, "(objectClass=user)");

you can also do:

ldbSearch = ldb.search;
res = ldbSearch(dbfile, "(objectClass=user)");

if you want the old interface (ie. you can use this to import
functions into the global or local namespace).
2007-10-10 13:23:07 -05:00
Andrew Tridgell
433f9d0a61 r8445: if a system doesn't have "nogroup" then try "nobody" 2007-10-10 13:23:04 -05:00