1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
Commit Graph

7826 Commits

Author SHA1 Message Date
Stefan Metzmacher
d796373895 r12776: use $ENV{TEST_DATA_PREFIX} for test files if available
metze
(This used to be commit 5552eaa37c)
2007-10-10 13:49:53 -05:00
Stefan Metzmacher
a55287a285 r12775: free elements early...
metze
(This used to be commit 49f78e21fe)
2007-10-10 13:49:53 -05:00
Stefan Metzmacher
887eae8516 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
(This used to be commit d51244b661)
2007-10-10 13:49:53 -05:00
Stefan Metzmacher
874c9b71b7 r12773: - remove unused variable, fix the build with some old compilers
metze
(This used to be commit 1253784c92)
2007-10-10 13:49:53 -05:00
Stefan Metzmacher
022553500b r12772: - create variables for the %(patsubst ...) statements for the idl files
- this also fixes the build on BSD systems

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

Volker
(This used to be commit 8b8bb85ad3)
2007-10-10 13:49:51 -05:00
Andrew Bartlett
1162b37ff0 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
(This used to be commit 46628e86a2)
2007-10-10 13:49:51 -05:00
Andrew Bartlett
8c9d212f2a 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
(This used to be commit 1fbe09ce81)
2007-10-10 13:49:51 -05:00
Stefan Metzmacher
74eb3f2af1 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
(This used to be commit 333b1b8c48)
2007-10-10 13:49:51 -05:00
Stefan Metzmacher
da8151ae9f r12755: check the return value of ldb_timestring(), as this fails,
when gmtime() fails...

metze
(This used to be commit 523746f271)
2007-10-10 13:49:50 -05:00
Stefan Metzmacher
ddf0e3d046 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
(This used to be commit 396fa81be5)
2007-10-10 13:49:50 -05:00
Andrew Bartlett
caa913ead4 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
(This used to be commit d3abfecec5)
2007-10-10 13:49:50 -05:00
Andrew Bartlett
fc6f41d70d r12752: Clean up compile_et and asn1_compile as well.
Andrew Bartlett
(This used to be commit 2a6023d741)
2007-10-10 13:49:50 -05:00
Andrew Bartlett
5c69a8f7e5 r12751: Another make clean fix.
Andrew Bartlett
(This used to be commit 9e6997d5bd)
2007-10-10 13:49:49 -05:00
Andrew Bartlett
44384b4afa r12750: Clean up more asn1 generated files (pointed out by <HotaruT>).
Andrew Bartlett
(This used to be commit 5d42638170)
2007-10-10 13:49:49 -05:00
Andrew Bartlett
27f997e682 r12749: Fix the newuser script.
Andrew Bartlett
(This used to be commit 42cdad5e3f)
2007-10-10 13:49:49 -05:00
Simo Sorce
528470d4a7 r12748: Fix wrong handling of separation characters for RDNs
allow escaped separation chars as part of the attr value
of an RDN
(This used to be commit 7ba341d6c3)
2007-10-10 13:49:49 -05:00
Andrew Bartlett
66700b484f r12747: Add a couple more token tests, used by the kludge ACL module.
Andrew Bartlett
(This used to be commit 10eadf4812)
2007-10-10 13:49:49 -05:00
Andrew Bartlett
a8eec31354 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
(This used to be commit be9d0cae89)
2007-10-10 13:49:48 -05:00
Simo Sorce
b51fe793c7 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.
(This used to be commit 4c685ac0d1)
2007-10-10 13:49:48 -05:00
Andrew Bartlett
a2cad19bbd r12744: For correctly written scripts, we don't need this anymore. Only use
the cmdline credentials if we ask for it.

Andrew Bartlett
(This used to be commit 874dd09759)
2007-10-10 13:49:48 -05:00
Simo Sorce
dbef4d76de 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.
(This used to be commit 5e8b365fa2)
2007-10-10 13:49:48 -05:00
Andrew Bartlett
8f4dc51345 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
(This used to be commit b349d2fbfe)
2007-10-10 13:49:48 -05:00
Andrew Bartlett
8574fe2f8e r12738: Use a talloc_reference to ensure this doesn't get free()'ed too early.
Andrew Bartlett
(This used to be commit 0f8c162211)
2007-10-10 13:49:47 -05:00
Simo Sorce
de296b6513 r12734: forgot to add qsort
(This used to be commit df1ccca349)
2007-10-10 13:49:47 -05:00
Simo Sorce
c908d0b2aa 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.
(This used to be commit 77125feaff)
2007-10-10 13:49:47 -05:00
Andrew Bartlett
e011ab7e1d r12732: This option does nothing.
Andrew Bartlett
(This used to be commit 708ce7de30)
2007-10-10 13:49:47 -05:00
Andrew Bartlett
c66bc0dadb r12731: Simplify and re-implemenet support for --parameter-name=foo
--service-name=bar in testparm.

Andrew Bartlett
(This used to be commit be067e9a04)
2007-10-10 13:49:46 -05:00
Andrew Bartlett
1b29552e70 r12730: Reimplement --parameter-name, and bring in common samba options.
This changes -s from meaning 'suppress prompt' to 'services file'.

Andrew Bartlett
(This used to be commit 0f78bd743b)
2007-10-10 13:49:46 -05:00
Andrew Bartlett
03ab342909 r12729: Implement the --section-name option, for dumping only one section.
Andrew Bartlett
(This used to be commit 3c49dd9219)
2007-10-10 13:49:46 -05:00
Andrew Bartlett
37bc6b5f81 r12728: Revive testparm.
It needs work to not dump defaults from loadparm.c, but otherwise it works.

Andrew Bartlett
(This used to be commit 1260fcf465)
2007-10-10 13:49:46 -05:00
Stefan Metzmacher
db04cffbbf r12725: some minor updates
metze
(This used to be commit f2e97983f2)
2007-10-10 13:49:45 -05:00
Stefan Metzmacher
af5032acfd r12724: fix warnings
metze
(This used to be commit 4ca1a9a606)
2007-10-10 13:49:45 -05:00
Andrew Bartlett
ff90c1c5c3 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
(This used to be commit 8e608dd4bf)
2007-10-10 13:49:45 -05:00
Andrew Bartlett
4bfe2907e7 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
(This used to be commit 097d9d0b7f)
2007-10-10 13:49:45 -05:00
Andrew Bartlett
6eabf593bb r12718: We don't use unicodePwd directly any more.
Andrew Bartlett
(This used to be commit c10491fb9b)
2007-10-10 13:49:45 -05:00
Andrew Bartlett
28456784e9 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
(This used to be commit d0a0a8de3f)
2007-10-10 13:49:44 -05:00
Andrew Bartlett
5cea3edcef 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
(This used to be commit 356c8c5609)
2007-10-10 13:49:44 -05:00
Jelmer Vernooij
c975df527c r12711: Update copyrights
(This used to be commit a02b0c5568)
2007-10-10 13:49:44 -05:00
Andrew Bartlett
c5a6c7f61c r12710: Fix socket_wrapper: Make sure to fill in the socket family on the
returned address.

Andrew Bartlett
(This used to be commit 57b0aae0d4)
2007-10-10 13:49:44 -05:00
Andrew Bartlett
81e05038b6 r12708: This is equivilant, but doesn't cause a warning.
Andrew Bartlett
(This used to be commit 964f7fc6ca)
2007-10-10 13:49:44 -05:00
Jelmer Vernooij
4601264b70 r12706: Add list of parameters that need work
(This used to be commit 46b4a52698)
2007-10-10 13:49:43 -05:00
Jelmer Vernooij
a7d517d6da r12704: role => server role
(This used to be commit 5884a7efff)
2007-10-10 13:49:43 -05:00
Jelmer Vernooij
65bf7621d9 r12703: Fix handling of short passdb backends (also reported by Steinar Gunderson)
(This used to be commit 4c562c42b4)
2007-10-10 13:49:43 -05:00
Stefan Metzmacher
733dc7b073 r12702: - reload the partner configuration, when the sequenceNumber of the wins_config.ldb
changes
- use a periodic run interval of 15 secs per default, as we no longer
  send push notifies with each run

metze
(This used to be commit 0382b3135c)
2007-10-10 13:49:43 -05:00