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

336 Commits

Author SHA1 Message Date
Jelmer Vernooij
442d147f6d r9746: Add "staff" as possible alternative to wheel
(should fix standard provisioning on AIX)
(This used to be commit b1d9ef899821376d7883fa126a14c06ed1b16601)
2007-10-10 13:34:56 -05:00
Jelmer Vernooij
0a72d9a5f7 r9744: - [upgrade.js] Start working on smb.conf conversion.
- [ldb_map] Support storing non-mappable data in a fallback LDB
(This used to be commit 435e4c6389b9d9b545beec8036289620ee5883db)
2007-10-10 13:34:55 -05:00
Jelmer Vernooij
0549763600 r9735: More work on generating a valid Samba4 configuration using the
Samba3 data (both console and SWAT)
(This used to be commit d569465dc4def55c27878028f2fc762960f453d8)
2007-10-10 13:34:55 -05:00
Andrew Bartlett
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 6202267f6ec1446d6bd11d1d37d05a977bc8d315)
2007-10-10 13:34:54 -05:00
Jelmer Vernooij
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 765a30a0493cbd150f53335c6648e8e56ef6dc23)
2007-10-10 13:34:53 -05:00
Jelmer Vernooij
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 42605f4444998e3063ffd1bea17425ff825f6132)
2007-10-10 13:34:53 -05:00
Jelmer Vernooij
d152839e29 r9722: Initial attempt at converting samba3dump to EJS..
(This used to be commit 7e3b94dfb9c421793dab7813b96ca63da4b33960)
2007-10-10 13:34:53 -05:00
Jelmer Vernooij
d6cd54fb0a r9718: Work a bit on the SWAT interface
(This used to be commit b1844905d2c1ca26aef0ccba799ff16383348fc1)
2007-10-10 13:34:53 -05:00
Andrew Tridgell
9b0662bb44 r9707: r11080@blu: tridge | 2005-08-28 12:41:12 +1000
make sure we leave the account enabled after creating a new user
(This used to be commit a22d0d02eed8b960f5fde4211b0d2967c500f4a4)
2007-10-10 13:34:52 -05:00
Andrew Tridgell
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 a8748cab865c765f844336087a386c01e60add62)
2007-10-10 13:34:52 -05:00
Andrew Tridgell
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 b3d491b210a8b889a25efcb273e70fefbd01b7f7)
2007-10-10 13:34:51 -05:00
Jelmer Vernooij
37059d70d9 r9700: Change DATA_BLOB in ejs back to struct datablob
Support writing idmap mappings to winbind.ldif
(This used to be commit 3709def35303f1afed0f344628fe2c89250ee087)
2007-10-10 13:34:49 -05:00
Jelmer Vernooij
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 b7b079167d5c6616f7c5c4afb7dd80c15707cfd9)
2007-10-10 13:34:42 -05:00
Andrew Tridgell
2e35b72086 r9645: fixed the ejs GetOptions() call to look at the first option passed (this is what broke --help)
(This used to be commit 88a7e9e00f3714f89067ef97dfca46bc0688222e)
2007-10-10 13:34:36 -05:00
Andrew Tridgell
10dcfca9f1 r9580: put the libinclude() after the GetOptions so the smb.conf is loaded to
get the libjs path
(This used to be commit ee0b693ffaf02e75d3d740c36fffb9ea75e54431)
2007-10-10 13:34:31 -05:00
Andrew Tridgell
4a37c7ebbe r9568: updated the winreg js library for CreateKey, and add a --createkey
option to the winreg tool
(This used to be commit 881452c7b7cc00222328f743c2c0c4ece39f4c96)
2007-10-10 13:34:29 -05:00
Andrew Tridgell
cfa981c656 r9566: fix an uninitialised variable
(This used to be commit 7082440a70c5f85606538b7a35a1cc8f41eb7eeb)
2007-10-10 13:34:29 -05:00
Andrew Tridgell
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 84c756b25ccb2bd75360bdb9b7b7643975d1f3b3)
2007-10-10 13:34:23 -05:00
Andrew Tridgell
d857d1a965 r9500: userAuth() takes a creds object, not a general object now ...
(This used to be commit 57e6eb9c66ba539a593524d8cfd8836a840ac1ba)
2007-10-10 13:34:23 -05:00
Andrew Tridgell
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 4afb16d7b24b1d1ed359048a89950924b363e44a)
2007-10-10 13:34:23 -05:00
Andrew Tridgell
60eb9f87a0 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
(This used to be commit 47cf409cdf501fc3e2b0c65688a9ef1d702278a5)
2007-10-10 13:34:22 -05:00
Andrew Tridgell
2dd966a465 r9496: added a regToVar() function that converts a registry blob variable to a ejs variable.
(This used to be commit 76ffc200794cdae6dcd7d07adb5617f1b09fe435)
2007-10-10 13:34:22 -05:00
Andrew Tridgell
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 516ba6d20bd1bd8d0235028515e94a8c4fd6574d)
2007-10-10 13:34:21 -05:00
Andrew Tridgell
fef7a81478 r9491: fixed up a few scripts that need to be updated for the new GetOptions syntax. Mimir, its
a good idea to use grep -r to find places that need fixing when you change the syntax of
a call :-)
(This used to be commit 1ead49f8e823a69dbd9cd3df3f5be04dc17e0d1f)
2007-10-10 13:34:21 -05:00
Rafal Szczesniak
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 1990793b23d6198a85ce1bdf6ad43e12015db203)
2007-10-10 13:34:20 -05:00
Andrew Tridgell
f4aa80d88f r9465: handle encoding and decoding of pointers, representing them as a
string containing "(POINTER)"
(This used to be commit 6f69eeb8f258063f1ac911ab38e667e7743ccba3)
2007-10-10 13:34:18 -05:00
Andrew Tridgell
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 3d6739eaa6e1b56d67bc7d9b5350a6911c96597a)
2007-10-10 13:34:18 -05:00
Simo Sorce
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 692e35b7797e39533dd2a1c4b63d9da30f1eb5ba)
2007-10-10 13:33:32 -05:00
Andrew Tridgell
80f75d4138 r9377: made winreg a user tool (I find it quite useful). I expect it to get the ability
to add/remove keys and values in the future.

add it to the standard tests, ensuring that we know if winreg
breaks. This is particularly important as winreg uses such unusual IDL
constructs
(This used to be commit e4ca36bda34cf5e6fecaef5fe60e5dd397ebee3c)
2007-10-10 13:33:30 -05:00
Andrew Tridgell
4e3cacdaa8 r9355: return the EnumKey and EnumValue list we have so far when we get a rpc fault
(This used to be commit 3a9c63923fbb21dfb8e5fc549dde8fad8cb8f354)
2007-10-10 13:33:27 -05:00
Andrew Tridgell
29e5e9e1e3 r9344: started adding calls for manipulation of data blobs in ejs
added:

  blobToArray()
  blobFromArray()
  blobCompare()
(This used to be commit cc5a3e9cc3b44f418eb5dfcd4e855a36c5ac8327)
2007-10-10 13:33:26 -05:00
Andrew Tridgell
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 a7a1752ca47a18b325a0ad0984cf7d02da1e2afe)
2007-10-10 13:33:25 -05:00
Andrew Tridgell
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 a8bca2e8e27c953c0413693326ec3b5ecf17ba41)
2007-10-10 13:33:25 -05:00
Andrew Tridgell
9fffd12799 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.
(This used to be commit 8354b016122cc4f3cff042b3ada1de07e1614eb7)
2007-10-10 13:33:25 -05:00
Andrew Tridgell
8942ac69f0 r9227: cleanup and simplify the AJAJ code
(This used to be commit ceb7669e5991e9dda759d60a09a0a65e6caba991)
2007-10-10 13:31:34 -05:00
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