1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
Commit Graph

6455 Commits

Author SHA1 Message Date
Volker Lendecke
90f98e9be3 r10365: Use nsswitch/winbindd_nss.h in winbind/, update that file to the current 3_0
interface.

Volker
2007-10-10 13:38:31 -05:00
Andrew Bartlett
3c0dc570b8 r10364: Turn gensec:gssapi on by default, except for a login of the form
-Udomain\\user.

This will probably break in a few configurations, so please let me
know.  I'll also work to have a way to inhibit kerberos/ntlmssp, as
this removes -k.

Andrew Bartlett
2007-10-10 13:38:31 -05:00
Volker Lendecke
9a5d8f55ab r10363: Nobody loudly screamed "noo", so commit the samba3 winbind interface to
samba4. Ok, maybe the silence is due to timezones, but what can you do... ;-)

Volker
2007-10-10 13:38:31 -05:00
Jelmer Vernooij
a2268f1dd4 r10356: Make the proto generator work with scons 2007-10-10 13:38:31 -05:00
Volker Lendecke
b871ecbc2c r10353: Fix typo 2007-10-10 13:38:31 -05:00
Jelmer Vernooij
4f0d7f75b9 r10348: Add scons scripts for remaining subsystems. Most subsystems build now,
but final linking still fails (as does generating files asn1, et, idl and proto
files)
2007-10-10 13:38:30 -05:00
Stefan Metzmacher
1083204c1f r10346: here are only real ip-addresses valid, prevent dns lookups,
when the input is invalid

metze
2007-10-10 13:38:30 -05:00
Andrew Bartlett
e05e87b3fe r10345: Add more add-hock tests.
Andrew Bartlett
2007-10-10 13:38:30 -05:00
Stefan Metzmacher
18facf90e9 r10341: remove unused libads/ code, we'll never use this in samba4,
and have replacements for the most stuff already in the tree

discussed with abartlet

metze
2007-10-10 13:38:30 -05:00
Stefan Metzmacher
a34d0771ce r10339: fix ndr_push_udlongr
metze
2007-10-10 13:38:29 -05:00
Andrew Bartlett
de3ceab3d0 r10337: This grubby little hack is the implementation of a concept discussed
on the kerberos mailing lists a couple of weeks ago: Don't use DNS at
all for expanding short names into long names.

Using the 'override krb5_init_context' code already in the tree, this
removes the DNS lag on a kerberos session setup/connection.

Andrew Bartlett
2007-10-10 13:38:29 -05:00
Jelmer Vernooij
59d4450453 r10336: Add sconscript for a couple more subsystems. 2007-10-10 13:38:29 -05:00
Tim Potter
f35c4763d5 r10335: Build tdb tools into bin directory. 2007-10-10 13:38:29 -05:00
Tim Potter
ba305886fd r10334: Use CPPDEFINES instead of CCFLAGS for adding preprocessor symbols. 2007-10-10 13:38:28 -05:00
Jelmer Vernooij
df4a923c64 r10332: Fix the build - messaging uses UNIX_PRIVS 2007-10-10 13:38:28 -05:00
Jelmer Vernooij
4bffe44359 r10330: Add SConscript to more subsystems. Some of the tdb tools build now.
Start on custom Samba scons tools (for handling proto generation, pidl, etc)
2007-10-10 13:38:28 -05:00
Tim Potter
4d7bc667f7 r10329: Perhaps we shouldn't get too ahead of ourselves just yet. 2007-10-10 13:38:28 -05:00
Tim Potter
540a3649e8 r10328: Add more emacs python-mode markers. 2007-10-10 13:38:28 -05:00
Tim Potter
80bf842f56 r10327: Use CPPPATH instead of appending -Idir to CCFLAGS.
Use a list comprehension instead of a for loop.

Add a emacs thingy to kick in python mode.  (-:
2007-10-10 13:38:28 -05:00
Jelmer Vernooij
829568d759 r10323: Add first bits required for getting compile with scons working. This does
not work yet and can exist parallel with the existing build system.
2007-10-10 13:38:25 -05:00
Jelmer Vernooij
0963ab9c14 r10316: More dynconfig fixes 2007-10-10 13:38:17 -05:00
Jelmer Vernooij
59083b7ba6 r10315: Remove use of fstring and pstring in dynconfig.c
Remove unused includes of dynconfig.h
2007-10-10 13:38:17 -05:00
Andrew Bartlett
31e755c2ce r10314: Apply the controvertial 'server role =' patch after discussion on the list:
This patch removes the 'domain logon' and 'domain master' controls from
Samba4, in favour of a 'server role =' that users can actually
understand.

We can expand the list of roles as needed, and nobody has to figure out
what a 'domain master' actually means.

Andrew Bartlett
2007-10-10 13:38:16 -05:00
Stefan Metzmacher
3309a0f4d9 r10312: fix compiler warning
metze
2007-10-10 13:38:16 -05:00
Simo Sorce
e86c9b4a7f r10306: change these modules to use new error API 2007-10-10 13:38:16 -05:00
Simo Sorce
3fc676ac1d r10305: start implementing better error handling
changed the prioivate modules API
error string are now not spread over all
modules but are kept in  a single place.

This allows a better control of memory
and error reporting.
2007-10-10 13:38:16 -05:00
Simo Sorce
610f5646f0 r10304: check for basic ldb_message sanity and return appropriate
LDB_ERR_ value
2007-10-10 13:38:15 -05:00
Simo Sorce
f0ad9495e4 r10303: check no attribute is given empty 2007-10-10 13:38:15 -05:00
Simo Sorce
cbe438be6d r10302: Introduce ldap like error codes 2007-10-10 13:38:15 -05:00
Simo Sorce
acfb4b9283 r10301: fix standalone compiple after tdb changes 2007-10-10 13:38:15 -05:00
Simo Sorce
e9018e3d9f r10300: forgot to change the dsdb modules function names 2007-10-10 13:38:15 -05:00
Simo Sorce
1da4ac2cdc r10299: remove the public (un)lock functions and introduce a transaction based
private ldb API

ldb_sqlite3 is already working with this model and ldb_tdb will do
as soon as tridge finishes the tdb transaction code.

currently the transactions are always implicit and wrap any single
ldb API call except searching, the transaction functions are
currently not made public on purpose.

Simo.
2007-10-10 13:38:14 -05:00
Jelmer Vernooij
0949db8119 r10296: Fix function pointer handling for older perl versions 2007-10-10 13:38:14 -05:00
Jelmer Vernooij
26f2903dab r10295: Remove dependency on Data::Dumper 2007-10-10 13:38:14 -05:00
Jelmer Vernooij
6f9956a1dd r10294: Generate Makefile directly rather then thru Makefile.in. Autoconf
substitution variables are now no longer used.

This is one more step towards a (hopefully) perl-based configure
2007-10-10 13:38:14 -05:00
Andrew Bartlett
096c751f37 r10292: This is set below from lp_server_role().
Andrew Bartlett
2007-10-10 13:38:14 -05:00
Andrew Bartlett
f6a6456441 r10291: The patch optionally (off by default, not available in all cases) allows
Samba to use the target principal name supplied in the mechTokenMIC of
an SPNEGO negTokenInit.

This isn't a great idea for security reasons, but is how Samba3 behaves,
and allows kerberos to function more often in some environments.  It is
only available for CIFS session setups, due to the ordering of the
exchange.

Andrew Bartlett
2007-10-10 13:38:13 -05:00
Jelmer Vernooij
1a833690b8 r10287: Compile compilers for build host. This fixes some bits of
the mingw32 build (it now fails on missing inet_aton / in_addr definitions).
Find sane default for HOSTCC
2007-10-10 13:38:13 -05:00
Andrew Bartlett
8a22d46e70 r10286: This patch is ugly and disgusting, but for now it works better than the other
ideas I have had.

When I get a full list of things I want to do to a krb5_context I'll
either add gsskrb5_ wrappers, or a way of speicfying the krb5 context
per gssapi context.

(I want to ensure that the only krb5_context variables created while
executing Samba4 are via our wrapper).

Andrew Bartlett
2007-10-10 13:38:13 -05:00
Jelmer Vernooij
c675ba0ee4 r10283: Eliminate some more use of autoconf substitution variables.
Add makefile rule for '.ho' files (compiled with host compiler). This
does not allow for cross-compiling yet as that requires a HOSTLD as well.
2007-10-10 13:38:13 -05:00
Simo Sorce
158693b406 r10277: do not ovverride LIKE, thanks to derrel I found out how to do
the same thing with a harmless user function
2007-10-10 13:38:13 -05:00
Tim Potter
360be7028c r10258: Fix an unused/duplicate local variable. 2007-10-10 13:38:12 -05:00
Tim Potter
4a4b053718 r10257: strlen returns a size_t which can be 64 bits long. 2007-10-10 13:38:12 -05:00
Tim Potter
5f1cd6382c r10256: Fix some unhandled enumeration warnings. There's one still left,
RAW_SEARCH_UNIX_INFO find_fill_info(), which I think is a bug.
2007-10-10 13:38:12 -05:00
Tim Potter
f4f9337619 r10255: Fix some more 64-bit warnings. 2007-10-10 13:38:12 -05:00
Andrew Tridgell
4673cdd0d2 r10253: a fairly large tdb cleanup and re-organise. Nearly all of this change
just involves splitting up the core tdb.c code into separate files on
logical boundaries, but there are some minor functional changes as well:

 - move the 'struct tdb_context' into tdb_private.h, hiding it from
   users. This was done to allow the structure to change without
   breaking code that uses tdb.

 - added accessor functions tdb_fd(), tdb_name(), and tdb_log_fn() to
   access the elements of struct tdb_context that were used by
   external code but are no longer visible

 - simplied tdb_append() to use tdb_fetch()/tdb_store(), which is just
   as good due to the way tdb locks work

 - changed some of the types (such as tdb_off to tdb_off_t) to make
   syntax highlighting work better

 - removed the old optional spinlock code. It was a bad idea.

 - fixed a bug in tdb_reopen_all() that caused tdbtorture to sometimes
   fail or report nasty looking errors. This is the only real bug
   fixed in this commit. Jeremy/Jerry, you might like to pickup this
   change for Samba3, as that could definately affect smbd in
   Samba3.

The aim of all of these changes is to make the tdb
transactions/journaling code I am working on easier to write. I
started to write it on top of the existing tdb.c code and it got very
messy. Splitting up the code makes it much easier to follow.

There are more cleanups we could do in tdb, such as using uint32_t
instead of u32 (suggested by metze). I'll leave those for another day.
2007-10-10 13:38:12 -05:00
Andrew Tridgell
dff660c23c r10252: a recent checkin from simo changed the handling of BASE and SUBTREE
searches in ldb to be more ldap compliant, but broke the wins server
and the ejs ldb code. This fixes those up so 'make test' passes again.
2007-10-10 13:38:11 -05:00
Simo Sorce
4357a2db5e r10251: some more work on ldb_sqlite3
I must say that writing a new module is a very good way
to find lot of subtle bugs laying in the code

We need more tests!

commit oLschema2ldif.c to keep it safe from data losses (rm -fr :-)

update test generic to reflect the fix made on comparsion functions
2007-10-10 13:38:11 -05:00
Simo Sorce
f6ea6e9382 r10250: the comparison is caseless so we must caseless subtract
otherwise we get the wrong result when comparing upper
case chars with lower case chars
2007-10-10 13:38:11 -05:00
Jelmer Vernooij
8aa9711a30 r10246: Remove unused function
Move auth-specific file to auth/
2007-10-10 13:38:11 -05:00