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

10919 Commits

Author SHA1 Message Date
Derrell Lipman
94eddd62ad r19059: allow dash in URLs
(This used to be commit 3dade8d761c4a342cf5ee9dba8d10812eb22b877)
2007-10-10 14:20:32 -05:00
Derrell Lipman
4b17a6dfbb r19055: JSON-RPC is working! It passes the small qooxdoo JSON-RPC test suite
perfectly.

This check in covers the remaining fixes and enhancements to complete the
server.  In a subsequent check-in, I need to learn about the new qooxdoo
packaging mechanism.  Although it'd be nice to have the whole source tree,
that's huge and needn't be in samba svn.  It's now supposed to be very easy to
package qooxdoo, so I'll figure out how that's done and then check in the
relevant small number of files.

Steps after that involve generating the stubs to allow various ejs functions
to be called via JSON-RPC.

Derrell
(This used to be commit 5bfebbda7a5d28d4deb31c54a8feb24c4416cbf6)
2007-10-10 14:20:32 -05:00
Rafal Szczesniak
71ec249e02 r19053: match the flag values with the actual equivalents in samr.idl
rafal
(This used to be commit 07aee708118070f99d42e8a25e28680e79c8f49c)
2007-10-10 14:20:32 -05:00
Derrell Lipman
a9430fb4eb r19052: clarify what actually does what
(This used to be commit 0218a1798978f92491fbf88eaffbc3226b640b5e)
2007-10-10 14:20:31 -05:00
Derrell Lipman
882d352151 r19051: JSON-RPC server work-in-progress. It's almost working.
(This used to be commit 6e9cb2ed1cf87aed322fd7821237d088c2fef340)
2007-10-10 14:20:31 -05:00
Gerald Carter
a22d785d7c r19049: Samba 3 client fixes
* Make sure to check for NULL pointers when dealing with
  [out,unique] before assigning valoues
* Detect RPC faults and return immediately
(This used to be commit c96dae478c2fee2fede9c853a71c8079bbb8ba47)
2007-10-10 14:20:31 -05:00
Derrell Lipman
91814f4b00 r19048: ensure our memory gets cleaned up even upon exception
(This used to be commit bcf5e98a8c83791db93a9024b3433f9d5ee3cc7e)
2007-10-10 14:20:31 -05:00
Stefan Metzmacher
389e6549ba r19036: add LOCAL-REPLACE and reorder the testlist
metze
(This used to be commit c8070c38f2915e8f56fef62242d3ab9a202e4c34)
2007-10-10 14:20:31 -05:00
Stefan Metzmacher
bc619e7328 r19035: add LOCAL-REPLACE test
metze
(This used to be commit e95a1ab2cd568ef5492dfae130cb2e937ac15194)
2007-10-10 14:20:30 -05:00
Stefan Metzmacher
6ddc797e3a r19033: prepare to use the libreplace testsuite as LOCAL-REPLACE in smbtorture
metze
(This used to be commit 71fc73e11cee89f1b52cda5a32468a74a38cecc3)
2007-10-10 14:20:30 -05:00
Stefan Metzmacher
03cb0224d4 r19032: let the getdents replacement fail and see what the build-farm says.
metze
(This used to be commit 4ed53dfafcbafbad8f2cde65e84dc0fe32fa62f8)
2007-10-10 14:20:30 -05:00
Stefan Metzmacher
37806f79cd r19029: test if opendir() on a file sets errno = ENOTDIR
metze
(This used to be commit 6b5f06b059583f9d685d71d48299ab334581c179)
2007-10-10 14:20:30 -05:00
Volker Lendecke
1344f23546 r19027: Modify RPC-SAMBA3-SPOOLSS so that it can be activated in the build farm
(This used to be commit 7304abe5958fde1940439f7d95da96e16ea4bc57)
2007-10-10 14:20:30 -05:00
Rafal Szczesniak
94bc020f84 r19025: - remove read-only and policy dependent fields and flags
- do not stop NET-API-USERMODIFY test when a single field fails
- add account flags to the fields tested
- separate "cleanup" step from closing domain at the end

rafal
(This used to be commit 16fde3b8e2c93ec10e43bb09334bf460db8ac70b)
2007-10-10 14:20:29 -05:00
Rafal Szczesniak
89e4387a08 r19024: remove read-only and policy dependent fields and flags
from user modify routines.

rafal
(This used to be commit 7ca0d3dbcb9193c0f023e7c43764c7557925bb0e)
2007-10-10 14:20:29 -05:00
Stefan Metzmacher
c4f106c414 r19023: lets see what the build-farm says about trying the
getdirentries() based readdir() replacement first.

metze
(This used to be commit 268c8bc7ef63ca7fd7900bd0aec345b895512c68)
2007-10-10 14:20:29 -05:00
Derrell Lipman
a9a532aa0c r19022: eliminate a warning
(This used to be commit d48b2d83057b8e78e3ed31f56578e18ef9b9aed6)
2007-10-10 14:20:29 -05:00
Derrell Lipman
deca12d7be r19021: match the prototype for a trigger function
(This used to be commit f2f191891582af7dcb6d38c14e4ef7afc361299a)
2007-10-10 14:20:29 -05:00
Derrell Lipman
882910a2a8 r19020: move jsonrpc_include to a more appropriate location in the file, and call the setup function for parsing literals.
(This used to be commit bb07f606dedde5c63f190229b8dbb85f3d1342f7)
2007-10-10 14:20:28 -05:00
Derrell Lipman
ad60ec5907 r19019: Add a parser for javascript literals. This is implemented for parsing JSON
strings, but is generally useful for creating ejs variables from object or
array literals, which aren't supported in the old version of ejs that we're
using.

This parser is implemented in C, but is callable from an ejs script via
literal_to_var().
(This used to be commit 82fdcd9339a8ffb1016b96c06f7d6580aa759174)
2007-10-10 14:20:28 -05:00
Volker Lendecke
127c96f499 r19017: Merge from Samba3:
Attempt to fix the BSD RAW-CHKPATH failures: In Samba3 we rely on opendir
returning ENOTDIR when the file opened is not a directory. Can we merge this
back into Samba4?

This includes the tabs->spaces fix requested by Stefan.

Volker
(This used to be commit 7b9ee1171ddc89537ba3b286f20c722fb70c980b)
2007-10-10 14:20:28 -05:00
Andrew Tridgell
bf86ece6cb r19009: ensure that data values from ldap libs are null terminated, to allow
ldb_msg_find_attr_as_string() to work correctly.

Thanks to Jim Myers for spotting this!
(This used to be commit b2076c1a7e4b70644b59689ce46952ef940be6b0)
2007-10-10 14:20:28 -05:00
Stefan Metzmacher
e8a005acfe r18999: merge from samba3:
- make more usage of PRINTF_ATTRIBUTE()
- vsyslog takes a 'const char *format'

metze
(This used to be commit cdcd4232d2f383f4d2f9ca1d049b7b3cc7b58359)
2007-10-10 14:20:28 -05:00
Stefan Metzmacher
9eab500f56 r18997: we have a replacement for vsyslog in libreplace so libroken doesn't need to care about it
metze
(This used to be commit e8c2f53746307a0ae078b07f4a80546d8fb7430f)
2007-10-10 14:20:27 -05:00
Stefan Metzmacher
4ccdd53704 r18995: - fix bug 4078
- talloc_free(talloc_autofree_context()); should not result
  in a SIGABORT on exit
- add a test for this, but this test can also pass in the standalone build
  and samba3, as samba4 uses talloc_autofree_context()

metze
(This used to be commit 2be48c1b033dceb9517826054b8ea97df2c94472)
2007-10-10 14:20:27 -05:00
Stefan Metzmacher
aeee137f80 r18994: - torture_register_suite should be public
- some whitespace cleanups

metze
(This used to be commit 49755f2224df7e4448853bbe493b6aeeac365cb2)
2007-10-10 14:20:27 -05:00
Stefan Metzmacher
bbafa2ce6b r18992: prepare SOCKET_WRAPPER_PCAP_FILE support
metze
(This used to be commit 400098416c1a4d7ae51b86eced51bffd6134296a)
2007-10-10 14:20:27 -05:00
Volker Lendecke
9f98bcf6a8 r18991: Fix bug 4133 -- Thanks to Olaf Flebbe
(This used to be commit d8bea42bb78619ae35a9680b24fe9eee5f25997d)
2007-10-10 14:20:27 -05:00
Andrew Bartlett
31454d2e8b r18989: Fixes found by these two LDAP testsuites:
- http://www.ee.oulu.fi/research/ouspg/protos/testing/c06/ldapv3/
- http://gleg.net/protover_ldap_sample.shtml

Also fixes found by a subsequent audit of the code for similar issues.
(This used to be commit 441a4f6262459dabfefd9bb12622ada9c007a60c)
2007-10-10 14:20:26 -05:00
Andrew Bartlett
736e797983 r18979: With these extra indexes (also added for the normal case) and a
DB_CONFIG file, we now get reasonable enought performance to pass
'make test' against OpenLDAP.

We do have to double the maximum runtime for the torture client however.

Andrew Bartlett
(This used to be commit 5b3c8cc036c1180c9e96d9aaacd3f2e0a83460e5)
2007-10-10 14:20:26 -05:00
Andrew Bartlett
c2a2c2456d r18978: Fix bug found by:
http://www.ee.oulu.fi/research/ouspg/protos/testing/c06/ldapv3/

The issue here is that if the UTF8 conversion fails, because this
isn't actually UTF8 data, then we need to do a binary compare instead.

Andrew Bartlett
(This used to be commit a113e47784157ec6086b014c1fc998e8a23e7382)
2007-10-10 14:20:26 -05:00
Andrew Bartlett
eaa427801a r18977: Seperate these asserts, so we know which fired.
Andrew Bartlett
(This used to be commit 9b2003618b28cb045e74937803e9aad773781803)
2007-10-10 14:20:26 -05:00
Stefan Metzmacher
6cb33a5467 r18975: follow the advice from "William Jojo" <jojowil@hvcc.edu>
and pass -bbigtoc also to the linker when building shared libs

metze
(This used to be commit 9c77de282107d28362497aff60fed81e77620a87)
2007-10-10 14:20:26 -05:00
Stefan Metzmacher
1d156f9479 r18974: we don't have the configure check that sets
ac_cv_gnu_ld_no_default_allow_shlib_undefined
and as -Wl,--allow-shlib-undefined is supported on SuSE 7.3
I don't see a problem is always pass it explicit

metze
(This used to be commit 79db6bddc5fc1b97f0165348f72b6a2489b62be0)
2007-10-10 14:20:25 -05:00
Andrew Tridgell
5d31bce8b6 r18972: we don't need this now all builds in the build farm are limited to 150
file descriptors. We'll pretty quickly find leaks :)
(This used to be commit be70992d71d7b8db64702f9be2b29aac3e463590)
2007-10-10 14:20:25 -05:00
Andrew Tridgell
318682b003 r18971: avoid strndup is a few places. Fixes a minor memory leak, and should
fix RPC-LSA on AIX.
(This used to be commit 6cce709d08579f4e00b44b692332a557b0ea3b86)
2007-10-10 14:20:25 -05:00
Andrew Tridgell
2550f5ae12 r18970: avoid strndup and strnlen on AIX. They are quite broken. See
http://lists.samba.org/archive/samba-technical/2004-August/036915.html
(This used to be commit c178c84f01166609e6bd3393d39fb0034130167b)
2007-10-10 14:20:25 -05:00
Andrew Tridgell
bbe3cffb4b r18968: EWOULDBLOCK should also be mapped to STATUS_MORE_ENTRIES
(This used to be commit 27114fe1752f20c58948b34264e38db263f7a0ea)
2007-10-10 14:20:25 -05:00
Andrew Tridgell
f3d684a48c r18965: fixed the bug with RPC-NETLOGON and solaris sparc machines. This bug
took a _LONG_ time to find.

The problem was that when encoding/decoding password buffers we use
the pull/push string functions, which by default align unicode
strings. But on solaris sparc the buffer is not aligned always (its a
stack variable, an array of uint8_t). That perfectly OK in C, so we
just tell the pull/push functions not to auto-align.
(This used to be commit bb7835eced00607eb6b1725be6d96a6dcb842049)
2007-10-10 14:20:24 -05:00
Stefan Metzmacher
3f96df61da r18960: fix caching of some configure tests AC_CACHE_CHECK()
*needs* '_cv_' in the shell var to do caching...

metze
(This used to be commit cb334632fae28bff107200a7b5643289f383eaad)
2007-10-10 14:20:24 -05:00
Stefan Metzmacher
c0c135c774 r18957: we need to include unistd.h in system/network.h because
it contains the ioctl() prototype on some systems
and we need to make sure it gets included before socket_wrapper
defines ioctl swrap_ioctl

metze
(This used to be commit f37b13cbe65404f27d31b8020afb2f542313f4d3)
2007-10-10 14:20:24 -05:00
Stefan Metzmacher
c09504ac33 r18948: fix the build on solaris, the ioctl() prototype
in unistd.h was included after libreplace defined ioctl swrap_ioctl

metze
(This used to be commit 55b25a9fcfa5ddf290e371c2bcad8ad07969f19a)
2007-10-10 14:20:23 -05:00
Stefan Metzmacher
174742a74c r18947: overload listen() and ioctl() in socket_wrapper
metze
(This used to be commit dfaccdca1b6954cd61828749d7b000f804f3b066)
2007-10-10 14:20:23 -05:00
Stefan Metzmacher
ee97148354 r18946: fix compiler warning
metze
(This used to be commit 450595822441ebaa199d6b10d568274940b1a91b)
2007-10-10 14:20:23 -05:00
Stefan Metzmacher
ce02a7e9dc r18945: fix compiler warnings and end-of-non-void function bugs
metze
(This used to be commit ed195999c0c7d89cdc61e980576d191fc05d65d7)
2007-10-10 14:20:23 -05:00
Stefan Metzmacher
315f04caa8 r18944: talloc_reference() can fail...
(remove compiler warning)

metze
(This used to be commit 515f4eb1cef11d8f942aeffc72c9da1bbd4d78cd)
2007-10-10 14:20:23 -05:00
Andrew Tridgell
9b1e1e2e5d r18943: Samba4 wants its databases private to root. I know some of them could
potentially be public, but we'd need to think about them
carefully.
(This used to be commit 142a235f663f707eee3f16d0c1265b01fe1ecf32)
2007-10-10 14:20:22 -05:00
Andrew Tridgell
4c3b07b654 r18942: add a ldb_set_create_perms() function in ldb. I didn't call it
ldb_set_umask() (which is what we had discussed) as it doesn't
actually set the umask (in effect it sets the inverse of the umask -
the perms to be used for the file)
(This used to be commit 7e2ec875908c112d5c3b0f6d18f9a8bbacf33539)
2007-10-10 14:20:22 -05:00
Andrew Tridgell
4e7c9367a7 r18939: don't rely on the umask being right in ldb creation. Both Samba3 and
Samba4 smbd force the umask to 0, which meant we ended up with ldb
being world writable.

This isn't really an ideal fix, as it means ldb no longer honors umask
(as it should do, like all good libraries).

Unfortunately the 'proper' fix is too complex for now

this also merges a tiny code style fix from s4 to s3
(This used to be commit 1a42f38dfdc55d7429a1f8d3e811f3d857195a58)
2007-10-10 14:20:22 -05:00
Andrew Tridgell
c9ae85d19a r18936: hopefully fix the test for negative enum values. When a compiler
truncates the enums, the test was passing.
(This used to be commit c6216f7dbf68012fa8351dcae17fe4c7ab165b58)
2007-10-10 14:20:22 -05:00