1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-15 05:57:49 +03:00

351 Commits

Author SHA1 Message Date
Andrew Tridgell
922f28fcbd r9226: make sure we catch rpc faults in the ejs rpc wrappers
(This used to be commit 3ec376141e64f0a504f04b470cb5df78c2e0f5c2)
2007-10-10 13:31:34 -05:00
Andrew Tridgell
924b3cc953 r9218: make the winreg library code handle arbitrary paths more efficiently
and more conveniently (caller doesn't need to know the hive names now)
(This used to be commit dadd7e22fb439f7b18c429a95c75902e4741ba8d)
2007-10-10 13:31:32 -05:00
Andrew Tridgell
2b31c6d9d0 r9210: fixed support for a credentials element in a rpc object in ejs to not
give lots of warnings of missing properties
(This used to be commit 15737abd747cea561eca92103919f4adc22c6fcd)
2007-10-10 13:31:31 -05:00
Andrew Tridgell
e49aeef232 r9178: remove the old server printf code
(This used to be commit 0b96b3bfe370f5f4e44cc1a2a249f766a04c5b07)
2007-10-10 13:31:29 -05:00
Andrew Tridgell
0c15c02411 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
(This used to be commit ea3c3d0a0f79c49c2e93da4956cc509614f92f37)
2007-10-10 13:31:28 -05:00
Andrew Tridgell
2ed26253c1 r9171: - support putting a credentials object in a rpc pipe object to allow authentication
with other than the command line credentials in a rpc pipe
(This used to be commit aae05ebc9c3dc7ad367aed09c54b85184ba7a82e)
2007-10-10 13:31:27 -05:00
Andrew Tridgell
772d58066d r9159: abstract the winreg js functions into a nice library interface
(This used to be commit 5e398700627fb2c16bf39b9c851f640f5412c7d4)
2007-10-10 13:31:25 -05:00
Andrew Tridgell
31fa87f23b r9146: - enable winreg pipe from ejs
- map the result code from rpc calls into the ejs objects

- treat winreg_String like lsa_String, hiding the length elements
(This used to be commit 2f6311c9a34db46f9a4b1f31e865a373b15702bf)
2007-10-10 13:31:23 -05:00
Andrew Tridgell
b99bca5657 r9132: 'pointer' is better for typedef than 'C pointer'
(This used to be commit f91f5eeac9a8b62928233c3925c8ad1b99b32b4e)
2007-10-10 13:31:20 -05:00
Andrew Tridgell
67180c4ccd 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.
(This used to be commit 5f9e00fb7f36f3351f40da93acfe47c911f6f65f)
2007-10-10 13:31:19 -05:00
Tim Potter
b056c7ac34 r9123: Add ejs_pull_DATA_BLOB() and ejs_pull_BOOL() although leave DATA_BLOB
unimplemented for the moment.
(This used to be commit 0e022f8d45a99f0edbbd6369dbf41f73906c6fc4)
2007-10-10 13:31:18 -05:00
Andrew Tridgell
beed5b8532 r9119: added a lp.categories() call in the loadparm js object, to allow
retrieval of the smb.conf parameter categories. This will make writing
a smb.conf editor easier.
(This used to be commit 8db549b1506b5260c9eb16f40bbdae6a7c006fa2)
2007-10-10 13:31:18 -05:00
Tim Potter
1b42035bd9 r9096: Spelling.
(This used to be commit c61b29bdf043792d885528bd7666c9bea9107928)
2007-10-10 13:31:16 -05:00
Andrew Tridgell
84da1a1050 r9082: added the ECMA functions encodeURIComponent() and
decodeURIComponent(), which I am using as part of my object
linearisation code
(This used to be commit f91f705a143b24c2e01b9176850a7089e1a99b86)
2007-10-10 13:31:15 -05:00
Rafal Szczesniak
c11e266cba r9071: Set real and workstation fields in ejs credentials object.
rafal
(This used to be commit eb7a5d09c7a469f94357434c6dadbdf54b52d5db)
2007-10-10 13:31:14 -05:00
Rafal Szczesniak
1702f5ba11 r9070: More fields in ejs credentials object.
rafal
(This used to be commit e819c035f79477b5dd8ee62292a18c9e8532c9f7)
2007-10-10 13:31:14 -05:00
Andrew Tridgell
2a533ec684 r9059: add a basic credentials object for mimir
(This used to be commit 36a9277e878d4db599fcfc02b96d2aaeac0b74dd)
2007-10-10 13:31:13 -05:00
Jelmer Vernooij
7facdcc161 r8985: Automatically generate make dependency rules for
the asn1 and error table files.

This removes the need for HEIMDAL_EXTERNAL
(This used to be commit 2f481ac93c0151b82dab737d49ae8d0d3cbbbbbe)
2007-10-10 13:31:04 -05:00
Jelmer Vernooij
36f64c0f05 r8979: Bunch of makefile fragment inclusion fixes:
- support whitespace
 - support "include " keyword
 - move swig stuff to .mk file
 - support autogenerated makefile portions (use "include echo foo|")
(This used to be commit 43779c09b6a75e03f4cf6e8953a837cddd318aa5)
2007-10-10 13:31:02 -05:00
Jelmer Vernooij
9f611ffdde r8966: Simplify the makefile generation system a bit.
Autogenerate list of binaries (rather then having them hardcoded in build/smb_build/makefile.pm)
Add INSTALLDIR keyword to .mk files
(This used to be commit ce0935112b846486cf705ec69f12350be9c4c89d)
2007-10-10 13:31:00 -05:00
Andrew Tridgell
fc58570940 r8887: fixed the irpc error that caused ia64 to fail the LOCAL-IRPC test
(This used to be commit ce9a262d379b946717d0d4be4731c837e6f7373d)
2007-10-10 13:30:15 -05:00
Andrew Tridgell
bab1eb1e34 r8822: fixed number of arguments in samr lib
(This used to be commit 8eee26bb85472aa45bd42fd28f968a38730e286c)
2007-10-10 13:30:08 -05:00
Andrew Tridgell
f6d2892faa 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);
(This used to be commit f7b49ecd0868c1f0fec75b371f132bbf357ad8c6)
2007-10-10 13:30:08 -05:00
Andrew Bartlett
66b2a04346 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
(This used to be commit 1f071b0609c5c83024db1d4a7d04334a932b8253)
2007-10-10 13:30:05 -05:00
Andrew Tridgell
8fbcde9450 r8742: fixed handling of zero length names in mprObject()
(This used to be commit 8086c37df65ac666aa340141d3584e9bc2c81278)
2007-10-10 13:30:00 -05:00
Andrew Bartlett
b16362fab6 r8700: Propmted by tridge's need to do plaintext auth in ejs, rework the
user_info strcture in auth/

This moves it to a pattern much like that found in ntvfs, with
functions to migrate between PAIN, HASH and RESPONSE passwords.

Instead of make_user_info*() functions, we simply fill in the control
block in the callers, per recent dicussions on the lists.  This
removed a lot of data copies as well as error paths, as we can grab
much of it with talloc.

Andrew Bartlett
(This used to be commit ecbd2235a3e2be937440fa1dc0aecc5a047eda88)
2007-10-10 13:29:55 -05:00
Andrew Tridgell
a369f0ecaf r8678: setup for gdb backtrace in 'make test'
(This used to be commit acf8c8fd4995acef47390df5a7d4e611c597367d)
2007-10-10 13:29:53 -05:00
Andrew Bartlett
f8c1258d01 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
(This used to be commit 2303e24be74570187b23c3d31d0433263c83ba7e)
2007-10-10 13:29:53 -05:00
Andrew Tridgell
4163622a0b r8661: added strstr() ejs function in string lib
(This used to be commit a569fc8924e8c8edbdfa7efc89ad99659af8c379)
2007-10-10 13:29:51 -05:00
Andrew Bartlett
6173fad231 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
(This used to be commit 4a8ef7197ff938942832034453f843cb8a50f2d1)
2007-10-10 13:29:51 -05:00
Andrew Tridgell
7a8ac75887 r8659: return ldif formatted attributes in the ejs ldb search call, so sids show up as strings
not binary blobs
(This used to be commit d2c29a5a51f68cabb9ef587376bf0a6b936cdd76)
2007-10-10 13:29:50 -05:00
Andrew Bartlett
24d2107324 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
(This used to be commit 940ed9827f5ab83b668a60a2b0110567dd54c3e2)
2007-10-10 13:29:50 -05:00
Andrew Tridgell
2fd92cb1b4 r8648: automatically redirect to provisioning if not yet provisioned when the
home page in swat is accessed
(This used to be commit 78fb559c08d55c01f5ede81d43cdd857cce8d338)
2007-10-10 13:29:49 -05:00
Andrew Tridgell
2f5f01567b 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
(This used to be commit c2691ef7126ddcee5f95970b78759b40a049d0a7)
2007-10-10 13:29:48 -05:00
Andrew Tridgell
d5ac1f9bf4 r8640: continue the trend by moving the ejs random calls into an object
(This used to be commit ed4fb68ef7c28e415408e923bd9eefcd2d60f355)
2007-10-10 13:29:48 -05:00
Andrew Tridgell
86d628a292 r8639: moved loadparm calls into an ejs object
(This used to be commit 2dc493eea6f9d87c40ad0dc755f528ce0b33ca47)
2007-10-10 13:29:48 -05:00
Andrew Tridgell
620301858a 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
(This used to be commit a978484738168b82441c4dc4f5f803d349769a4b)
2007-10-10 13:29:48 -05:00
Andrew Tridgell
3d59490a40 r8637: added sys.stat() and sys.lstat() calls
(This used to be commit 5dbdf4fb3317964541339615b7ecbf174a2dc00b)
2007-10-10 13:29:48 -05:00
Andrew Tridgell
240ca36cf2 r8635: make object inheritance with the builtin objects easy by allowing
callers to optionally supply an existing object to add the properties
to. So you can do:

 var rpc = samr_init();
 lsa_init(rpc);

and you end up with 'rpc' having both the samr and lsa functions and
constants available.
(This used to be commit 6a1ed328e27769bd52899fc2437a43fc17104eff)
2007-10-10 13:29:47 -05:00
Andrew Tridgell
d6c20a5c8a r8633: check for valid input to ejs_userAuth()
(This used to be commit 8e788ae3094220e5ea195cdf85abb6763a834abd)
2007-10-10 13:29:46 -05:00
Andrew Tridgell
e9c925f872 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.
(This used to be commit 9e07c08a71908e99c2f44efc40a3249facd6850f)
2007-10-10 13:29:46 -05:00
Andrew Tridgell
8f16aa6c17 r8603: we have to use the same db name as the rest of smbd uses so the ldb connect
works when already open
(This used to be commit 1183f54c8dee28c136b4dc72bc059a6175fe09e4)
2007-10-10 13:29:44 -05:00
Andrew Tridgell
da88ef65e0 r8602: allow options in ldb connect calls
(This used to be commit 4c1d6a97c0c9df2848a16afb1b4eed4b20963bef)
2007-10-10 13:29:44 -05:00
Andrew Tridgell
82f1a9474d 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
(This used to be commit 78d6303814382f7835212f5045f12180e396b540)
2007-10-10 13:29:42 -05:00
Andrew Tridgell
0e7b9f84ce r8589: - support --version option to smbstatus
- print samba version at startup
(This used to be commit eb3e4bbe7f4a8f48c9246275ad6ef21ed0b4d357)
2007-10-10 13:29:42 -05:00
Andrew Tridgell
cb060f8bac r8584: added --nbt option to smbstatus for nbt server statistics
(This used to be commit 26a676a4e3596d34aee391bf132f2525972c81df)
2007-10-10 13:29:41 -05:00
Andrew Tridgell
ef948e53b7 r8583: nicer smbstatus output
(This used to be commit 0578bcdf7f8919509a78a5c64f94aa5de7e90416)
2007-10-10 13:29:41 -05:00
Andrew Tridgell
afe0fffc44 r8582: added sys.httptime() call, to display a NTTIME as a http time string
(This used to be commit 632f7bbe3e81af1ee89301765f8bfb72d4c9f3d7)
2007-10-10 13:29:41 -05:00
Andrew Tridgell
6615b40601 r8581: fixed handling of 64 bit integers in rpc calls from ejs
(This used to be commit 2ae6a338466bf287ea2180d5ad7313ba116b88ca)
2007-10-10 13:29:41 -05:00
Andrew Tridgell
a32fe0f293 r8577: added management calls to list current tree connects
(This used to be commit 658befc1e4df44bee1f365a730951001f0f36640)
2007-10-10 13:29:40 -05:00