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

7607 Commits

Author SHA1 Message Date
Stefan Metzmacher
beea805a61 r12778: export TEST_DATA_PREFIX in make test
metze
2007-10-10 13:49:54 -05:00
Stefan Metzmacher
7e702939fa r12777: use TEST_DATA_PREFIX if available
metze
2007-10-10 13:49:53 -05:00
Stefan Metzmacher
5552eaa37c r12776: use $ENV{TEST_DATA_PREFIX} for test files if available
metze
2007-10-10 13:49:53 -05:00
Stefan Metzmacher
49f78e21fe r12775: free elements early...
metze
2007-10-10 13:49:53 -05:00
Stefan Metzmacher
d51244b661 r12774: - fix the build on OpenBSD
I'll try to remove TIME_T_MIN/TIME_T_MAX completly later,
but for now I try to build on all platfarms

metze
2007-10-10 13:49:53 -05:00
Stefan Metzmacher
1253784c92 r12773: - remove unused variable, fix the build with some old compilers
metze
2007-10-10 13:49:53 -05:00
Stefan Metzmacher
31ff172773 r12772: - create variables for the %(patsubst ...) statements for the idl files
- this also fixes the build on BSD systems

metze
2007-10-10 13:49:52 -05:00
Simo Sorce
d4454287cf r12770: Remove the alloca.h header as it is not used in the code afaics 2007-10-10 13:49:52 -05:00
Simo Sorce
2f0c7b8962 r12769: Make ldb_next_request() evident, I was much confused on first sight
Simo.
2007-10-10 13:49:52 -05:00
Volker Lendecke
568fc8a341 r12767: Add some trusted lookups 2007-10-10 13:49:52 -05:00
Volker Lendecke
d73c343904 r12766: fix the build 2007-10-10 13:49:52 -05:00
Volker Lendecke
d96c84126d r12765: Revert an accidential commit 2007-10-10 13:49:51 -05:00
Volker Lendecke
8b8bb85ad3 r12764: Add a test for lsa_lookup. This will be expanded when I get around to add
trusted domains.

Volker
2007-10-10 13:49:51 -05:00
Andrew Bartlett
46628e86a2 r12763: Oops. If you call ldb_search from within an ldb module's search
request handler, you really have to watch the recursion issues...

Andrew Bartlett
2007-10-10 13:49:51 -05:00
Andrew Bartlett
1fbe09ce81 r12762: Simo correctly asked that the policy logic (which attributes contain
passwords) be moved into the database, and not be hard-coded in the
module source.

Andrew Bartlett
2007-10-10 13:49:51 -05:00
Stefan Metzmacher
333b1b8c48 r12761: get the TIME_T_MIN and TIME_T_MAX right again, merging from samba3 was a bad idea...
as in samba4 we use TIME_T_MIN = 0 (maybe we should do this in samba3 too) because
negativ values mean error.

but still restrict TIME_T_MAX to INT32_MAX, to not overflow gmtime() on 64 bit systems,
is this behavior documented somewhere?

metze
2007-10-10 13:49:51 -05:00
Stefan Metzmacher
523746f271 r12755: check the return value of ldb_timestring(), as this fails,
when gmtime() fails...

metze
2007-10-10 13:49:50 -05:00
Stefan Metzmacher
396fa81be5 r12754: - sync TIME_T_MAX calculation from samba3
- but limit TIME_T_MAX to INT32_MAX, otherwise 64 platfroms are broken
  because gmtime() will fail with INT64_MAX passed in!

I'm not sure if that's the best fix for this problem, but it works...

Should we port the INT32_MAX limitation to samba3?

Comments, please?

metze
2007-10-10 13:49:50 -05:00
Andrew Bartlett
d3abfecec5 r12753: Try to fix the build after a 'make clean'. (the wildcards will not
expand because they don't exist yet).  Thanks again to HotaruT.

Andrew Bartlett
2007-10-10 13:49:50 -05:00
Andrew Bartlett
2a6023d741 r12752: Clean up compile_et and asn1_compile as well.
Andrew Bartlett
2007-10-10 13:49:50 -05:00
Andrew Bartlett
9e6997d5bd r12751: Another make clean fix.
Andrew Bartlett
2007-10-10 13:49:49 -05:00
Andrew Bartlett
5d42638170 r12750: Clean up more asn1 generated files (pointed out by <HotaruT>).
Andrew Bartlett
2007-10-10 13:49:49 -05:00
Andrew Bartlett
42cdad5e3f r12749: Fix the newuser script.
Andrew Bartlett
2007-10-10 13:49:49 -05:00
Simo Sorce
7ba341d6c3 r12748: Fix wrong handling of separation characters for RDNs
allow escaped separation chars as part of the attr value
of an RDN
2007-10-10 13:49:49 -05:00
Andrew Bartlett
10eadf4812 r12747: Add a couple more token tests, used by the kludge ACL module.
Andrew Bartlett
2007-10-10 13:49:49 -05:00
Andrew Bartlett
be9d0cae89 r12746: An initial version of the kludge_acls module.
This should be replaced with real ACLs, which tridge is working on.
In the meantime, the rules are very simple:

- SYSTEM and Administrators can read all.

- Users and anonymous cannot read passwords, can read everything else

- list of 'password' attributes is hard-coded

Most of the difficult work in this was fighting with the C/js
interface to add a system_session() all, as it still doesn't get on
with me :-)

Andrew Bartlett
2007-10-10 13:49:48 -05:00
Simo Sorce
4c685ac0d1 r12745: Initial work to support a syntax to pass over controls via
command line to ldbsearch. Very rough work, no checks are
done on the input yet (will segfault if you make it wrong).
Controls are passed via the --controls switch an are comma
separated (no escaping yet).

General syntax is <ctrl_name>:<criticality>
<ctrl_name> is a string
<criticality> is 1 or 0

Current semi-parsed controls are:

server_sort
syntax: server_sort:1:0:attributename

	1st parm: criticality
	2nd parm: reversed
	3rd parm: attribute name to be used for sorting

todo:	still missing suport for multiple sorting
	  attributes and ordering rule
	no check on result code

paged_results
syntax: paged_results:1:100

	1st parm: criticality
	2nd parm: number of results to be returned

todo:	ldbsearch will return only the first batch
	  (missing code to cycle over conditionally)
	no check on result code

extended_dn
syntax: extended_dn:1:0

	1st parm: criticality
	2nd parm: type, see MS docs on meaning

Simo.
2007-10-10 13:49:48 -05:00
Andrew Bartlett
874dd09759 r12744: For correctly written scripts, we don't need this anymore. Only use
the cmdline credentials if we ask for it.

Andrew Bartlett
2007-10-10 13:49:48 -05:00
Simo Sorce
5e8b365fa2 r12743: Remove the ugly way we had to make a second stage init and introduce
a second_stage_init private function for modules that need a second stage init.

Simo.
2007-10-10 13:49:48 -05:00
Andrew Bartlett
b349d2fbfe r12739: Add support for using credentials in the provision process.
This should allow us to provision to a 'normal' LDAP server.

Also add in 'session info' hooks (unused).  Both of these need to be
hooked in on the webserver.

Andrew Bartlett
2007-10-10 13:49:48 -05:00
Andrew Bartlett
0f8c162211 r12738: Use a talloc_reference to ensure this doesn't get free()'ed too early.
Andrew Bartlett
2007-10-10 13:49:47 -05:00
Simo Sorce
df1ccca349 r12734: forgot to add qsort 2007-10-10 13:49:47 -05:00
Simo Sorce
77125feaff r12733: Merge ldap/ldb controls into main tree
There's still lot of work to do but the patch is stable
enough to be pushed into the main samba4 tree.

Simo.
2007-10-10 13:49:47 -05:00
Andrew Bartlett
708ce7de30 r12732: This option does nothing.
Andrew Bartlett
2007-10-10 13:49:47 -05:00
Andrew Bartlett
be067e9a04 r12731: Simplify and re-implemenet support for --parameter-name=foo
--service-name=bar in testparm.

Andrew Bartlett
2007-10-10 13:49:46 -05:00
Andrew Bartlett
0f78bd743b r12730: Reimplement --parameter-name, and bring in common samba options.
This changes -s from meaning 'suppress prompt' to 'services file'.

Andrew Bartlett
2007-10-10 13:49:46 -05:00
Andrew Bartlett
3c49dd9219 r12729: Implement the --section-name option, for dumping only one section.
Andrew Bartlett
2007-10-10 13:49:46 -05:00
Andrew Bartlett
1260fcf465 r12728: Revive testparm.
It needs work to not dump defaults from loadparm.c, but otherwise it works.

Andrew Bartlett
2007-10-10 13:49:46 -05:00
Stefan Metzmacher
f2e97983f2 r12725: some minor updates
metze
2007-10-10 13:49:45 -05:00
Stefan Metzmacher
4ca1a9a606 r12724: fix warnings
metze
2007-10-10 13:49:45 -05:00
Andrew Bartlett
8e608dd4bf r12720: By metze's request, rename the ntPwdHistory attribute to
sambaNTPassword.  Likewise lmPwdHistory -> sambaLMPwdHistory.

The idea here is to avoid having conflicting formats when we get to
replication.  We know the base data matches, but we may need to use a
module to munge formats.

Andrew Bartlett
2007-10-10 13:49:45 -05:00
Andrew Bartlett
097d9d0b7f r12719: Rename unicodePwd -> sambaPassword.
Because we don't know the syntax of unicodePwd, we want to avoid using
that attribute name.  It may cause problems later when we get
replication form windows.

I'm doing this before the tech preview, so we don't get too many
supprises as folks upgrade databases into later versions.

Andrew Bartlett
2007-10-10 13:49:45 -05:00
Andrew Bartlett
c10491fb9b r12718: We don't use unicodePwd directly any more.
Andrew Bartlett
2007-10-10 13:49:45 -05:00
Andrew Bartlett
d0a0a8de3f r12717: Always compile the skel module, so we know when we break it.
Also fix up all the current issues with the skel module.

Andrew Bartlett
2007-10-10 13:49:44 -05:00
Andrew Bartlett
356c8c5609 r12716: Tridge points out that the request argument to ldb_next_request must
be a valid talloc() pointer, as other modules may rely on this.

Andrew Bartlett
2007-10-10 13:49:44 -05:00
Jelmer Vernooij
a02b0c5568 r12711: Update copyrights 2007-10-10 13:49:44 -05:00
Andrew Bartlett
57b0aae0d4 r12710: Fix socket_wrapper: Make sure to fill in the socket family on the
returned address.

Andrew Bartlett
2007-10-10 13:49:44 -05:00
Andrew Bartlett
964f7fc6ca r12708: This is equivilant, but doesn't cause a warning.
Andrew Bartlett
2007-10-10 13:49:44 -05:00
Jelmer Vernooij
5884a7efff r12704: role => server role 2007-10-10 13:49:43 -05:00
Jelmer Vernooij
4c562c42b4 r12703: Fix handling of short passdb backends (also reported by Steinar Gunderson) 2007-10-10 13:49:43 -05:00