1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-04 17:47:26 +03:00

7945 Commits

Author SHA1 Message Date
Jelmer Vernooij
5c8447773f r12801: Some more include/ cleanups (remove unused macros + move files
to specific dirs)
(This used to be commit 243cf760b077e155f5ac508aeebf819f7708a84e)
2007-10-10 13:49:57 -05:00
Rafal Szczesniak
1f10e729c0 r12800: Replace tmp_ctx with mem_ctx to make variables name more
consistent along the file.

rafal
(This used to be commit aaccb91cca5da8a869878326da298d22a3b8b2ae)
2007-10-10 13:49:57 -05:00
Stefan Metzmacher
8d15aee017 r12799: print out function and location too
metze
(This used to be commit a5ef3eef9cbedd273556068ba59c07ccb0060098)
2007-10-10 13:49:57 -05:00
Stefan Metzmacher
3c13509c06 r12798: print timestamps into the log file, this is not nice code,
but it works for now

metze
(This used to be commit ec7dbb5a98c112e86399ffcff14eb42c99d8e31d)
2007-10-10 13:49:56 -05:00
Stefan Metzmacher
6d0beb0885 r12797: check for a error
metze
(This used to be commit ed4fbfcf3e5b7133e73ee031ad5c68659690e2b1)
2007-10-10 13:49:56 -05:00
Stefan Metzmacher
f0e3a0312d r12796: use the correct address as initiator
metze
(This used to be commit ba97e7c06af6f919a66622c1a6b6e58980ab2b9e)
2007-10-10 13:49:56 -05:00
Stefan Metzmacher
35dffd9a10 r12795: remember the gensec_security context
metze
(This used to be commit ec1a7b5cefc32172ea97338a7101fe8416071b69)
2007-10-10 13:49:56 -05:00
Stefan Metzmacher
a0ca09628b r12793: fix bugs
metze
(This used to be commit 65be02a9801444c01230903d130b2d71b6c15617)
2007-10-10 13:49:56 -05:00
Stefan Metzmacher
a36c172d46 r12792: fix compiler warning
metze
(This used to be commit 1eca5f46c60d09fccbef5e605c06b1b3e3b65feb)
2007-10-10 13:49:55 -05:00
Stefan Metzmacher
80c0d16de0 r12791: fix compiler warning
metze
(This used to be commit 6647feb761a272b687d12685bc096e4ebdd02abe)
2007-10-10 13:49:55 -05:00
Stefan Metzmacher
39212a4960 r12790: fix compiler warning
metze
(This used to be commit c65ebc8b5574f9bd05270964dee9d4882e2d1828)
2007-10-10 13:49:55 -05:00
Andrew Tridgell
374da729dd r12785: make the iface_*() functions return strings which do not get
overwritten by another call (due to the implied static in
iface_ntoa()). This should save abartlet some pain
(This used to be commit 2244f298ace9f8832695cafd17c54324c11416f1)
2007-10-10 13:49:55 -05:00
Stefan Metzmacher
15ffd2c8b3 r12784: implement a simplified version of verifying old active replicas, with the owner
server, we you nbt name queries for this....

I assume w2k3 uses DCERPC calls or some WINSREPL calls for this,
but our version should work till I find out more details...

metze
(This used to be commit ff81f9e78043d29feb4832acee682ec93a9c8ed6)
2007-10-10 13:49:55 -05:00
Andrew Tridgell
dc0dde70d8 r12783: add a comment about matching more than 1 handler per message (andrew
thought this might be a bug)
(This used to be commit e1cd3f4b89e10c9a42f5939377df0eafb8c184a4)
2007-10-10 13:49:54 -05:00
Andrew Bartlett
e0dc53cf09 r12782: Don't segfault if we cannot setup messaging.
Andrew Bartlett
(This used to be commit 59c380e048423d706ab65513c09dbefecb5819ae)
2007-10-10 13:49:54 -05:00
Stefan Metzmacher
fa9aa1472b r12780: propagate local records, when replicas are rejected on conflicts
metze
(This used to be commit c64aef570eea8bde685aeb66cb482586e36ea020)
2007-10-10 13:49:54 -05:00
Stefan Metzmacher
d93e1b018e r12779: allow static tomstones
metze
(This used to be commit 966872646e5ac38ed5b3eb41cf339ec8f1583f17)
2007-10-10 13:49:54 -05:00
Stefan Metzmacher
042fcee4cd r12778: export TEST_DATA_PREFIX in make test
metze
(This used to be commit beea805a61d15dbb38add0a9c333e01279f71ada)
2007-10-10 13:49:54 -05:00
Stefan Metzmacher
7fcf10609b r12777: use TEST_DATA_PREFIX if available
metze
(This used to be commit 7e702939faf70d0c02fa71b315043795bc4a1d84)
2007-10-10 13:49:53 -05:00
Stefan Metzmacher
d796373895 r12776: use $ENV{TEST_DATA_PREFIX} for test files if available
metze
(This used to be commit 5552eaa37c228872736688bb65b4f678bdfeddf4)
2007-10-10 13:49:53 -05:00
Stefan Metzmacher
a55287a285 r12775: free elements early...
metze
(This used to be commit 49f78e21fe4a293fdb4d9d49d16dbed3ef8137b1)
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 d51244b6613dc07076da56937d09e4020c596475)
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 1253784c923b569593b5207c14567c637f3a7ae7)
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 31ff172773f1700bfd7ff24fc764d37d9b6e82c1)
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 d4454287cf14cfdf1ceeb090da40492314703fb9)
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 2f0c7b896274e5e15e150c70d7ebe70355f6c4c0)
2007-10-10 13:49:52 -05:00
Volker Lendecke
d94259666d r12767: Add some trusted lookups
(This used to be commit 568fc8a3412e07ac3084f441e693bc82b9ea912b)
2007-10-10 13:49:52 -05:00
Volker Lendecke
8514c172d2 r12766: fix the build
(This used to be commit d73c343904f32956ba97e4ad82af9c9a75f5d70c)
2007-10-10 13:49:52 -05:00
Volker Lendecke
1971eebb10 r12765: Revert an accidential commit
(This used to be commit d96c84126dcc1ec97e39814f21de167528fe886f)
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 8b8bb85ad365721bfa1cf5309d53d851f2013c22)
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 46628e86a2be6d334b2d0427e7052517c7ab1d4c)
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 1fbe09ce818ac1603bd747610262865b8698fe04)
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 333b1b8c4885c47a0d14d83896fce6740fa4d663)
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 523746f2712371041800301294c73bb7686bf2d5)
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 396fa81be5b950aa2120cff19540a0236f79a685)
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 d3abfecec5c9468e93d2d40181ce5d20f8135566)
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 2a6023d7414c1c337bb24a8c6882a17380cbc658)
2007-10-10 13:49:50 -05:00
Andrew Bartlett
5c69a8f7e5 r12751: Another make clean fix.
Andrew Bartlett
(This used to be commit 9e6997d5bde306f442b2c7379870af6495e11d25)
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 5d42638170245b684b45459d0538ea86fa811214)
2007-10-10 13:49:49 -05:00
Andrew Bartlett
27f997e682 r12749: Fix the newuser script.
Andrew Bartlett
(This used to be commit 42cdad5e3f06c307baf80396fd8449b803ef84c3)
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 7ba341d6c3745cd99c4c79933f9bd54f41e12a9c)
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 10eadf48124d61f2eb586fb277a66aa4b9e6cad3)
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 be9d0cae8989429ef47a713d8f0a82f12966fc78)
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 4c685ac0d1638a1d5392dfe733baf0db77e84858)
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 874dd09759eb0243988f39363c94785ae2e68485)
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 5e8b365fa2d93801a5de1d9ea76ce9d5546bd248)
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 b349d2fbfefd0e0d4620b9e8e0c4136f900be1ae)
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 0f8c162211662de59f42a96fe5bdf56ed5be883f)
2007-10-10 13:49:47 -05:00
Simo Sorce
de296b6513 r12734: forgot to add qsort
(This used to be commit df1ccca3499015d68a6f9f86286d9f66b6c0476c)
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 77125feaff252cab44d26593093a9c211c846ce8)
2007-10-10 13:49:47 -05:00