1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-15 16:59:09 +03:00
Commit Graph

408 Commits

Author SHA1 Message Date
a3a7881d39 r9798: Add generic functions for handling smb.conf files (the parameters don't to be pre-declared). Also doesn't use any globals, so multiple files can be loaded at once.
Currently uses the prefix "param" for all functions and structures; suggestions for better ones are welcome...

Remove old smb.conf-parsing code from libsamba3.
(This used to be commit 414e5f7f6d)
2007-10-10 13:35:02 -05:00
7be4cf8c1d r9770: Couple other bugfixes
Update TODO-list
(This used to be commit d9541535e3)
2007-10-10 13:34:58 -05:00
ec934124db r9762: Add support for reading good old smbpasswd files
Fix password support
Make base64 decode/encode functions available to EJS
(This used to be commit 1376a1fe44)
2007-10-10 13:34:57 -05:00
c9ace93ce2 r9756: One-way upgrade from Samba3->Samba4 basically works now
Still need to polish some rough edges
(This used to be commit a8f309aa81)
2007-10-10 13:34:56 -05:00
d4f22109ee r9755: Fix crash bug in SWAT login
(This used to be commit 6e3e964fb4)
2007-10-10 13:34:56 -05:00
11f3f0fa6c r9754: Upgrading with the command line utility now works, at least partially (-:
Upgrading using SWAT should work as well now.
(This used to be commit 8baa2ac377)
2007-10-10 13:34:56 -05:00
0549763600 r9735: More work on generating a valid Samba4 configuration using the
Samba3 data (both console and SWAT)
(This used to be commit d569465dc4)
2007-10-10 13:34:55 -05:00
24186a80eb r9728: A *major* update to the credentials system, to incorporate the
Kerberos CCACHE into the system.

This again allows the use of the system ccache when no username is
specified, and brings more code in common between gensec_krb5 and
gensec_gssapi.

It also has a side-effect that may (or may not) be expected: If there
is a ccache, even if it is not used (perhaps the remote server didn't
want kerberos), it will change the default username.

Andrew Bartlett
(This used to be commit 6202267f6e)
2007-10-10 13:34:54 -05:00
14ebeffc46 r9725: Fix full output mode of samba3dump as well. Thanks to tridge for
a bit for explanation about js.
(This used to be commit 765a30a049)
2007-10-10 13:34:53 -05:00
176da2a281 r9724: Rewrite samba3dump in JS. The summary works now, but the full output
is triggering some obscure EJS assert..
(This used to be commit 42605f4444)
2007-10-10 13:34:53 -05:00
d152839e29 r9722: Initial attempt at converting samba3dump to EJS..
(This used to be commit 7e3b94dfb9)
2007-10-10 13:34:53 -05:00
8da7ab52eb r9706: r11042@blu: tridge | 2005-08-28 12:40:09 +1000
a NULL expression is valid in a ldb search
(This used to be commit a8748cab86)
2007-10-10 13:34:52 -05:00
c98c6aa561 r9702: r9680@blu: tridge | 2005-08-27 18:45:08 +1000
- fixed ncacn_ip_tcp to use the generic async name resolution methods,
   so NBT names now work (as requested several times by abartlet!)

 - changed resolve_name() to take an event_context, so it doesn't cause
   the whole process to block

 - cleaned up the talloc_find_parent_bytype() calls to go via a cleaner
   event_context_find() call
(This used to be commit b3d491b210)
2007-10-10 13:34:51 -05:00
37059d70d9 r9700: Change DATA_BLOB in ejs back to struct datablob
Support writing idmap mappings to winbind.ldif
(This used to be commit 3709def353)
2007-10-10 13:34:49 -05:00
95ed275dbb r9698: Fix a bit of memory management
More minor bugfixes
Support mapping objectclasses and do mapping on 'dn' field as well (not just msg->dn)
(This used to be commit b7b079167d)
2007-10-10 13:34:42 -05:00
2e35b72086 r9645: fixed the ejs GetOptions() call to look at the first option passed (this is what broke --help)
(This used to be commit 88a7e9e00f)
2007-10-10 13:34:36 -05:00
cfa981c656 r9566: fix an uninitialised variable
(This used to be commit 7082440a70)
2007-10-10 13:34:29 -05:00
8f9478b09d r9504: use some low level ejs hackery to give much better exception error messages in both
the web server and smbscript. We can now give backtraces for all internal asserts, not
just high level errors
(This used to be commit 84c756b25c)
2007-10-10 13:34:23 -05:00
d857d1a965 r9500: userAuth() takes a creds object, not a general object now ...
(This used to be commit 57e6eb9c66)
2007-10-10 13:34:23 -05:00
185adae2f9 r9499: added error checking to the userAuth() call. SWAT is still failing, but at least it now
tells us why
(This used to be commit 4afb16d7b2)
2007-10-10 13:34:23 -05:00
2dd966a465 r9496: added a regToVar() function that converts a registry blob variable to a ejs variable.
(This used to be commit 76ffc20079)
2007-10-10 13:34:22 -05:00
da6dc01ae2 r9492: it is more usual to return 'undefined' instead of 'false' on a call failing (unless the
call is returning a boolean anyway).

Unfortunately the new GetOptions syntax loses the ability for the caller to know why the
command line arguments were bad. Maybe we would be better always returning an object and
having an is_error element?
(This used to be commit 516ba6d20b)
2007-10-10 13:34:21 -05:00
55e746ad56 r9477: Convert popt options to an ejs object. Doesn't seem to break anything
except of popt help (-h) option (unexpected ?).

rafal
(This used to be commit 1990793b23)
2007-10-10 13:34:20 -05:00
81556a9078 r9464: fixed a problem with child pointers copied into non-allocated mpr variables. We
now use the same free technique as is used for mpr strings, rather than relying on
being a child of the variable
(This used to be commit 3d6739eaa6)
2007-10-10 13:34:18 -05:00
3e4c4cff21 r9391: Convert all the code to use struct ldb_dn to ohandle ldap like distinguished names
Provide more functions to handle DNs in this form
(This used to be commit 692e35b779)
2007-10-10 13:33:32 -05:00
29e5e9e1e3 r9344: started adding calls for manipulation of data blobs in ejs
added:

  blobToArray()
  blobFromArray()
  blobCompare()
(This used to be commit cc5a3e9cc3)
2007-10-10 13:33:26 -05:00
bc6d35135d r9340: print the [in] contents when debugging even if the marshalling
failed. This makes it easier to track down marshalling bugs.
(This used to be commit a7a1752ca4)
2007-10-10 13:33:25 -05:00
ba6d3075bc r9339: treat arrays of uint8 values as a special DATA_BLOB type in the ejs
interfaces to RPC. This makes large blobs of data much saner. Tim, you
will probably want to do the same for the smb_interfaces.h generated
code.

Next we will need ways of extracting different data types from these
blobs, for example asking for the blob to be interpreted as a utf16
string, or as a little-endian integer. That will allow for registry
scripting to be quite sane.
(This used to be commit a8bca2e8e2)
2007-10-10 13:33:25 -05:00
922f28fcbd r9226: make sure we catch rpc faults in the ejs rpc wrappers
(This used to be commit 3ec376141e)
2007-10-10 13:31:34 -05:00
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 15737abd74)
2007-10-10 13:31:31 -05:00
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 aae05ebc9c)
2007-10-10 13:31:27 -05:00
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 2f6311c9a3)
2007-10-10 13:31:23 -05:00
b99bca5657 r9132: 'pointer' is better for typedef than 'C pointer'
(This used to be commit f91f5eeac9)
2007-10-10 13:31:20 -05:00
b056c7ac34 r9123: Add ejs_pull_DATA_BLOB() and ejs_pull_BOOL() although leave DATA_BLOB
unimplemented for the moment.
(This used to be commit 0e022f8d45)
2007-10-10 13:31:18 -05:00
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 8db549b150)
2007-10-10 13:31:18 -05:00
1b42035bd9 r9096: Spelling.
(This used to be commit c61b29bdf0)
2007-10-10 13:31:16 -05:00
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 f91f705a14)
2007-10-10 13:31:15 -05:00
c11e266cba r9071: Set real and workstation fields in ejs credentials object.
rafal
(This used to be commit eb7a5d09c7)
2007-10-10 13:31:14 -05:00
1702f5ba11 r9070: More fields in ejs credentials object.
rafal
(This used to be commit e819c035f7)
2007-10-10 13:31:14 -05:00
2a533ec684 r9059: add a basic credentials object for mimir
(This used to be commit 36a9277e87)
2007-10-10 13:31:13 -05:00
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 ce0935112b)
2007-10-10 13:31:00 -05:00
fc58570940 r8887: fixed the irpc error that caused ia64 to fail the LOCAL-IRPC test
(This used to be commit ce9a262d37)
2007-10-10 13:30:15 -05:00
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 f7b49ecd08)
2007-10-10 13:30:08 -05:00
8fbcde9450 r8742: fixed handling of zero length names in mprObject()
(This used to be commit 8086c37df6)
2007-10-10 13:30:00 -05:00
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 ecbd2235a3)
2007-10-10 13:29:55 -05:00
a369f0ecaf r8678: setup for gdb backtrace in 'make test'
(This used to be commit acf8c8fd49)
2007-10-10 13:29:53 -05:00
4163622a0b r8661: added strstr() ejs function in string lib
(This used to be commit a569fc8924)
2007-10-10 13:29:51 -05:00
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 d2c29a5a51)
2007-10-10 13:29:50 -05:00
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 c2691ef712)
2007-10-10 13:29:48 -05:00
d5ac1f9bf4 r8640: continue the trend by moving the ejs random calls into an object
(This used to be commit ed4fb68ef7)
2007-10-10 13:29:48 -05:00