1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-13 08:23:49 +03:00
Commit Graph

328 Commits

Author SHA1 Message Date
Andrew Bartlett
b7e727186e r23680: Make it easier to setup a domain member server - the 'server role'
will now control the auth methods, but an override is still available,
ex:

auth methods:domain controller = <methods>

Andrew Bartlett
2007-10-10 14:59:00 -05:00
Andrew Bartlett
01d54d13dc r23177: Add in a new provision-backend script. This helps set up the OpenLDAP or Fedora DS backend.
This required a new mkdir() call in ejs.

We can now provision just the schema for ad2oLschema to operate on
(with provision_schema(), without performing the whole provision, just
to wipe it again (adjustments to 'make test' to come soon).

Andrew Bartlett
2007-10-10 14:53:00 -05:00
Rafal Szczesniak
b16787a561 r23126: this was sitting on my laptop for a while...
change the way the ejs object is being created and return listing
context (with status) rather than collecting all entries gathered
from libnet call.

rafal
2007-10-10 14:52:52 -05:00
Rafal Szczesniak
2f16ff04d2 r23125: add host manager subcontext function.
rafal
2007-10-10 14:52:52 -05:00
Rafal Szczesniak
385a094443 r23124: add host subcontext providing (at the moment) list of domains
hosted on the server.

rafal
2007-10-10 14:52:51 -05:00
Rafal Szczesniak
0ecb8fd81e r23065: revert local includes to prevent security problems (at least
temporarily...)

rafal
2007-10-10 14:52:47 -05:00
Rafal Szczesniak
278d26576a r23047: Allow local inclusion of js files as well as from predefined
path(s).

rafal
2007-10-10 14:52:44 -05:00
Andrew Tridgell
ad6a672ec3 r23011: initialisation functions must return NTSTATUS, otherwise we get bus
errors on platforms like sparc. This is why sun1 died during
provision.
2007-10-10 14:52:38 -05:00
Stefan Metzmacher
df7863ea1c r22993: - make it possible to load a dsdb_schema from ldif via the ejs bindings
- make it possible to set ntds_objectGUID and ntds_invocationId via the ejy bindings

metze
2007-10-10 14:52:37 -05:00
Stefan Metzmacher
b54584dfab r22748: fix memleaks by passing an mem_ctx to
irpc_servers_byname()

metze
2007-10-10 14:52:09 -05:00
Stefan Metzmacher
f65fcd764b r22622: make it possible to pass the config file via 'SMB_CONF_PATH' envvar
very usefull for make testenv!

this makes it also possible to pass a config file to smbscript

metze
2007-10-10 14:51:54 -05:00
Stefan Metzmacher
7f07895cac r22406: this dependencies should also be private
metze
2007-10-10 14:51:15 -05:00
Rafal Szczesniak
4e8d9d3f60 r22323: - add credentials property to NetContext object
- change a comment (matches the idea better)

rafal
2007-10-10 14:51:02 -05:00
Andrew Bartlett
2b3df7f38d r21496: A number of ldb control and LDAP changes, surrounding the
'phantom_root' flag in the search_options control

- Add in support for LDB controls to the js layer
- Test the behaviour
- Implement support for the 'phantom_root' flag in the partitions module
- Make the LDAP server set the 'phantom_root' flag in the search_options control
  - This replaces the global_catalog flag passed down as an opaque pointer
- Rework the string-format control parsing function into
  ldb_parse_control_strings(), returning errors by ldb_errorstring()
  method, rather than with printf to stderr
- Rework some of the ldb_control handling logic

Andrew Bartlett
2007-10-10 14:48:44 -05:00
Simo Sorce
76b377d5ad r21419: Give some more clue about what's going on 2007-10-10 14:48:29 -05:00
Simo Sorce
35886b4ae6 r21351: Change ldb ejs bindings return codes.
We were returning just true/false and discarding error number and string.

This checking probably breaks swat, will fix it in next round as swat
is what made me look into this as I had no way to get back error messages
to show to the users.

Simo.
2007-10-10 14:48:18 -05:00
Andrew Bartlett
6ce557a1af r21135: Instead of having hooks to update keytabs as an explicit thing, update
them as a hook on ldb modify, via a module.

This should allow the secrets.ldb to be edited by the admin, and to
have things update in the on-disk keytab just as an in-memory keytab
would.

This isn't really a dsdb plugin, but I don't have any other good ideas
about where to put it.

Andrew Bartlett
2007-10-10 14:44:31 -05:00
Stefan Metzmacher
e668d3bd69 r20910: fix crash bug
metze
2007-10-10 14:43:51 -05:00
Stefan Metzmacher
575938753b r20908: - fix uninitialized usage of 'ctx'
- remove unused mem_ctx variable
- copy the userman_domain string as child of obj

metze
2007-10-10 14:43:50 -05:00
Rafal Szczesniak
05d307546f r20885: - I forgot the page size passed to enumeration function is actually
size of a buffer for result returned, not number of entries
- pass libnet function returned status to UserListCtx creation
  to properly mark the last chunk of the list

rafal
2007-10-10 14:43:45 -05:00
Rafal Szczesniak
fd0650283b r20882: Formatting.
rafal
2007-10-10 14:43:44 -05:00
Rafal Szczesniak
eebd00ba2b r20881: Sorting out NetUsrCtx methods. Still a couple of things left.
rafal
2007-10-10 14:43:44 -05:00
Stefan Metzmacher
ad110d22fb r20813: fix the build with autodependencies
metze
2007-10-10 14:43:34 -05:00
Stefan Metzmacher
e2cdd882b5 r20792: fix the build, sorry...
metze
2007-10-10 14:40:56 -05:00
Stefan Metzmacher
5828632931 r20791: the ejsnet stuff can be a normal smbcalls module...
mimir: when you want to register more functions
       please do that in the smb_setup_ejs_net() function

metze
2007-10-10 14:40:55 -05:00
Jelmer Vernooij
42bb335bd5 r20786: Fix the build. 2007-10-10 14:40:55 -05:00
Rafal Szczesniak
77ede0656c r20783: Ejsnet files are now moved into a separate directory. I need to commit
this as the change is getting bigger and bigger.

Jelmer, Metze, I don't know enough of our build system so please check
if .mk files are ok.

rafal
2007-10-10 14:40:54 -05:00
Rafal Szczesniak
10968c3f4b r20782: Place ejsnet files in a separate directory.
rafal
2007-10-10 14:40:53 -05:00
Andrew Tridgell
2365abaa99 r20646: first preparations for cluster enablement. This changes "
uint32_t server_id
to
  struct server_id server_id;

which allows a server ID to have an node number. The node number will
be zero in non-clustered case. This is the most basic hook needed for
clustering, and ctdb.
2007-10-10 14:37:23 -05:00
Derrell Lipman
0201baef46 r20444: WEB Application framework / SWAT.
We're now at the stage where the web application framework should build and
install automatically.

Derrell
2007-10-10 14:30:39 -05:00
Derrell Lipman
29db71587f r20364: SWAT updates, part 1
These next few check-ins will add a working Statistics module to SWAT, and add
an API Documentation module as well.

Next step will be to modify the LDB browser to work with this new module and
fsm structure.

Derrell
2007-10-10 14:30:16 -05:00
Stefan Metzmacher
02d2ce65e6 r20358: - fix ejs generated code for ipv4address
- (not Parse::Pidl::Typelist::scalar_is_reference($e->{TYPE}))
  is much more generic than ($e->{TYPE} ne "string")
  and handles ipv4address and other special types...

metze
2007-10-10 14:30:15 -05:00
Andrew Bartlett
79941adbff r20353: Restructure the DRSUAPI DsGetDomainControllerInfo test, because as
usual things are more complex than they appear.

Also remove the incorrect server-side implementation, which blindly
assumed some sense of consistancy across the API switch levels.

Andrew Bartlett
2007-10-10 14:30:15 -05:00
Stefan Metzmacher
b97b8f5dcb r20184: change ldb_attrib_handler into ldb_schema_attribute, which has a pointer
to a ldb_schema_syntax struct.

the default attribute handler is now registered dynamicly as "*"
attribute, instead of having its own code path.

ldb_schema_attribute's can be added to the ldb_schema given a
ldb_schema_syntax struct or the syntax name

we may also need to introduce a ldb_schema_matching_rule,
and add a pointer to a default ldb_schema_matching_rule
in the ldb_schema_syntax.

metze
2007-10-10 14:29:19 -05:00
Rafal Szczesniak
ca8259fd27 r20175: use libnet context instead mem_ctx as the latter gets
freed just before the function returns.

rafal
2007-10-10 14:29:17 -05:00
Rafal Szczesniak
af539fec4a r20163: Return null object if no user is found.
rafal
2007-10-10 14:29:16 -05:00
Rafal Szczesniak
3cdd43ebce r20143: a bit of experiments before doing serious changes in ejsnet.
rafal
2007-10-10 14:29:14 -05:00
Rafal Szczesniak
bc88640bb5 r19972: put a placeholder of a new js function and use error strings
returned by each libnet call.

rafal
2007-10-10 14:28:43 -05:00
Simo Sorce
3929c086d5 r19832: better prototypes for the linearization functions:
- ldb_dn_get_linearized
  returns a const string

- ldb_dn_alloc_linearized
  allocs astring with the linearized dn
2007-10-10 14:28:22 -05:00
Simo Sorce
a580c871d3 r19831: Big ldb_dn optimization and interfaces enhancement patch
This patch changes a lot of the code in ldb_dn.c, and also
removes and add a number of manipulation functions around.

The aim is to avoid validating a dn if not necessary as the
validation code is necessarily slow. This is mainly to speed up
internal operations where input is not user generated and so we
can assume the DNs need no validation. The code is designed to
keep the data as a string if possible.

The code is not yet 100% perfect, but pass all the tests so far.
A memleak is certainly present, I'll work on that next.

Simo.
2007-10-10 14:28:22 -05:00
Andrew Bartlett
9890af534d r19732: The 'res' from ldb_search is only valid if the call returns LDB_SUCCESS.
This seems to show up (as an abort() from talloc) particularly under
ldb_ildap.

Andrew Bartlett
2007-10-10 14:28:15 -05:00
Andrew Bartlett
2b569c42e0 r19598: Ahead of a merge to current lorikeet-heimdal:
Break up auth/auth.h not to include the world.

Add credentials_krb5.h with the kerberos dependent prototypes.

Andrew Bartlett
2007-10-10 14:25:00 -05:00
Derrell Lipman
2406af1079 r19449: ldbbrowse: installation hopefully works now. "Developer" installations
('configure.developer' or 'configure --enable-developer') may still have
problems as I'm not sure I got all of the paths right for that.

With the changes Tridge has made to the Main Menu in swat, given a
non-developer installation, you should be able to get to ldbbrowse via:

  JSON/qooxdoo -> ldb browser

Derrell
2007-10-10 14:21:33 -05:00
Jelmer Vernooij
0eb6097305 r19339: Merge my 4.0-unittest branch. This adds an API for more fine-grained
output in the testsuite rather than just True or False for a
set of tests.

The aim is to use this for:
 * known failure lists (run all tests and detect tests that
						started working or started failing). This
   would allow us to get rid of the RPC-SAMBA3-* tests
 * nicer torture output
 * simplification of the testsuite system
 * compatibility with other unit testing systems
 * easier usage of smbtorture (being able to run one test
						and automatically set up the environment for that)

This is still a work-in-progress; expect more updates over the next couple of
days.
2007-10-10 14:21:12 -05:00
Andrew Tridgell
6978225ffc r19297: fixed a leak in the ejs ldb interface 2007-10-10 14:21:04 -05:00
Derrell Lipman
aa8e4227a1 r19165: handle errors better for jsonrpc. generate an error object whenever possible 2007-10-10 14:20:47 -05:00
Derrell Lipman
5bfebbda7a 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
2007-10-10 14:20:32 -05:00
Derrell Lipman
6e9cb2ed1c r19051: JSON-RPC server work-in-progress. It's almost working. 2007-10-10 14:20:31 -05:00
Derrell Lipman
bcf5e98a8c r19048: ensure our memory gets cleaned up even upon exception 2007-10-10 14:20:31 -05:00
Derrell Lipman
bb07f606de r19020: move jsonrpc_include to a more appropriate location in the file, and call the setup function for parsing literals. 2007-10-10 14:20:28 -05:00