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

5248 Commits

Author SHA1 Message Date
Andrew Tridgell
858ed1c463 r7905: this should fix installswat on FreeBSD. Thanks to nodie for testing this for me 2007-10-10 13:18:47 -05:00
Andrew Tridgell
aa9e7cf63a r7901: check if system supports UTF-16LE at all in LOCAL-ICONV test 2007-10-10 13:18:47 -05:00
Andrew Tridgell
5781c83ba4 r7900: the existing ltdb indexing code does in fact cope with binary fields, so re-enable
indexing on objectSid
2007-10-10 13:18:47 -05:00
Andrew Tridgell
470ad9a93f r7899: fixed a crash bug in the RAW-CONTEXT test 2007-10-10 13:18:47 -05:00
Andrew Tridgell
fe7055df94 r7898: don't die on bad iconv libs in LOCAL-ICONV test 2007-10-10 13:18:47 -05:00
Derrell Lipman
8e1431efcf r7897: work in progress 2007-10-10 13:18:47 -05:00
Andrew Tridgell
8b299e1518 r7896: don't output null rules for blank targets (caued make failure on irix) 2007-10-10 13:18:47 -05:00
Andrew Tridgell
8f0b4ece48 r7895: hopefully this will fix the popt build on solaris 2007-10-10 13:18:46 -05:00
Andrew Tridgell
ac807d0aef r7894: remove portability experiments until its working in the smb-build test project
(this change broke irix)
2007-10-10 13:18:46 -05:00
Jelmer Vernooij
aa5ade4342 r7891: Improve output of unused macro find script
Remove duplicate find-missing-doc script (already in samba-docs repository)
2007-10-10 13:18:46 -05:00
Stefan Metzmacher
a3439d9365 r7875: try to see if this is portable
metze
2007-10-10 13:18:46 -05:00
Andrew Tridgell
8cdebf5ce3 r7874: reverted metzes patch svn 7837 as it is not portable to make on
several platforms (such as FreeBSD)
2007-10-10 13:18:46 -05:00
Andrew Tridgell
cc2e08d68e r7873: hopefully fixed build of ldb_explode_dn() on AIX
I'd really rather see this code completely replaced, but I'll leave
that to simo (he has volunteered) :-)
2007-10-10 13:18:46 -05:00
Andrew Tridgell
25a64f8946 r7872: another place we were relying on the old behaviour of value() 2007-10-10 13:18:46 -05:00
Andrew Tridgell
59a0fe2c04 r7871: setup spoolss, wins and hklm dbs correctly in selftest 2007-10-10 13:18:45 -05:00
Andrew Tridgell
765f75ea63 r7870: fixed the RPC-SCHANNEL test. It turned out it was my const changes, as
they slightly changed the semantics of value() in pidl, which broke
a optimisation hack in some of our IDL files.

I've changed the idl files to remove the hack for now. Sometime we
need to find a better way to handle these :-)
2007-10-10 13:18:45 -05:00
Andrew Tridgell
53b2cdcda5 r7869: revert the configure changes from jelmers commit for heimdal_build
(they are needed when you use the in-tree heimdal)
2007-10-10 13:18:45 -05:00
Andrew Tridgell
56f4af5f21 r7868: canonicalise the message before using ldb_add() in the ldbadd utility. 2007-10-10 13:18:45 -05:00
Andrew Tridgell
836e5782fd r7867: a couple of bug fixes for newuser.pl from kukks
I'm looking forward to deleting this file when we can add users using
the web intgerface (and maybe ejs scripts for the command line)
2007-10-10 13:18:45 -05:00
Jelmer Vernooij
4eca613470 r7866: Remove some unused autoconf macro calls.
Some of these should probably be re-added again later when
we need them. They should then be added to the appropriate config.m4 file
in the source tree rather then in rewrite.m4.
2007-10-10 13:18:45 -05:00
Andrew Tridgell
eee528be97 r7865: changed pidl to take a "const void *" instead of a "void *" for the
structure in ndr_push_*() and ndr_print_*(). The push and print
functions really should not modify the structure.

metze, to make this work I had to change your spoolss hand
marshaller. Can you please check it is OK? I think that the IN and OUT
sides of that function are not ever called on the same structure, so I
think that attempt at remembering the value by assigning to
r->in._offered was not doing anything anyway, but please correct me if
I have misunderstood it.

If you really do need to remember something on those structures I'd
suggest the ndr_token_store() and ndr_token_retrieve() functions,
which are used by pidl for just this sort of thing.
2007-10-10 13:18:44 -05:00
Andrew Tridgell
616f54015f r7864: fixed some const bugs 2007-10-10 13:18:44 -05:00
Andrew Tridgell
9ee3dbad6b r7863: removed an unused variable 2007-10-10 13:18:44 -05:00
Andrew Bartlett
7d791d13bc r7862: Updates to the Kerberos notes, based on recent changes and discoveries.
Andrew Bartlett
2007-10-10 13:18:44 -05:00
Jelmer Vernooij
f5587fe567 r7861: Nicer output, remove some false warnings. 2007-10-10 13:18:44 -05:00
Andrew Tridgell
d40bc2fa8d r7860: switch our ldb storage format to use a NDR encoded objectSid. This is
quite a large change as we had lots of code that assumed that
objectSid was a string in S- format.

metze and simo tried to convince me to use NDR format months ago, but
I didn't listen, so its fair that I have the pain of fixing all the
code now :-)

This builds on the ldb_register_samba_handlers() and ldif handlers
code I did earlier this week. There are still three parts of this
conversion I have not finished:

 - the ltdb index records need to use the string form of the objectSid
   (to keep the DNs sane). Until that it done I have disabled indexing on
   objectSid, which is a big performance hit, but allows us to pass
   all our tests while I rejig the indexing system to use a externally
   supplied conversion function

 - I haven't yet put in place the code that allows client to use the
   "S-xxx-yyy" form for objectSid in ldap search expressions. w2k3
   supports this, presumably by looking for the "S-" prefix to
   determine what type of objectSid form is being used by the client. I
   have been working on ways to handle this, but am not happy with
   them yet so they aren't part of this patch

 - I need to change pidl to generate push functions that take a
   "const void *" instead of a "void*" for the data pointer. That will
   fix the couple of new warnings this code generates.

Luckily it many places the conversion to NDR formatted records
actually simplified the code, as it means we no longer need as many
calls to dom_sid_parse_talloc(). In some places it got more complex,
but not many.
2007-10-10 13:18:44 -05:00
Jelmer Vernooij
897d7b7d39 r7859: Merge a few scripts to one script that checks for the following unused
(used in configure.in, but their output is never used) autoconf macros:
- AC_DEFINE
- AC_CHECK_FUNC
- AC_CHECK_FUNCS
- AC_CHECK_HEADER
- AC_CHECK_HEADERS
2007-10-10 13:18:43 -05:00
Andrew Tridgell
8d43eb5b97 r7858: removed some unused variables 2007-10-10 13:18:43 -05:00
Andrew Tridgell
6ee98c5f65 r7857: improved the handling of end-of-file on sockets in the smb server 2007-10-10 13:18:43 -05:00
Andrew Tridgell
c435843c66 r7856: fixed warning of 'methods' shadowed variable 2007-10-10 13:18:43 -05:00
Andrew Tridgell
a1155651e7 r7855: fixed a typo 2007-10-10 13:18:43 -05:00
Andrew Tridgell
355983493b r7854: only enable wrapping in the ldap server if it was negotiated by gensec 2007-10-10 13:18:43 -05:00
Simo Sorce
5b41e32024 r7851: We are case preserving let the DN be returned the same the user put it into.
sss
2007-10-10 13:18:42 -05:00
Jelmer Vernooij
bf85fdd015 r7850: Support mkdir() with just one parameter. Patch from
Steven Edwards <steven_ed4153@yahoo.com>.

I've moved the Win32-specific tests to win32.m4 so it does not
make any of the POSIX configure stuff more complicated.
2007-10-10 13:18:42 -05:00
Stefan Metzmacher
f964e228c9 r7845: remove unused files
and remove all generated files with make distclean and make realdistclean

metze
2007-10-10 13:18:42 -05:00
Derrell Lipman
863beef35b r7844: eliminate superfluous attribute tables 2007-10-10 13:18:42 -05:00
Andrew Bartlett
bedf92da5c r7843: Use the new Heimdal gsskrb_acquire_creds API. This has the right
lifetime constraints, and works with the in-memory keytab.

Move initialize_krb5_error_table() into our kerberos startup code,
rather than in the GSSAPI code explitly.  (Hmm, we probably don't need
this at all..)

Andrew Bartlett
2007-10-10 13:18:42 -05:00
Stefan Metzmacher
21d930cfc3 r7837: use some more 'make' features
(I just commit this to see how portable it is)

I have a patch that remove the need of the recursiv make
and also fixes the HEIMDAL_EXTERNAL stuff cleanly

metze
2007-10-10 13:18:42 -05:00
Andrew Tridgell
42c42f6611 r7834: added comment about the "((" search test 2007-10-10 13:18:41 -05:00
Andrew Tridgell
91cc009fed r7833: changed ldbsearch and ldbedit to have command line syntax closer to
ldapsearch. They look for an '=' in the first argument to see if it is
a search expression, and if not then it does an 'all records' search
2007-10-10 13:18:41 -05:00
Andrew Tridgell
20c84f5c52 r7832: missed one 2007-10-10 13:18:41 -05:00
Andrew Tridgell
2a426f654d r7831: use cn=TEST as base of test DNs so we don't interfere with potentially real records 2007-10-10 13:18:41 -05:00
Derrell Lipman
1dd8650055 r7828: Although there is still plenty to do, ldb_sqlite3 now passes the set of tests
in tests/test-sqlite3.sh (tests/test-generic.sh).

There are lots of optimizations still TBD, and some things are REALLY slow
right now (e.g. each add() operation takes 1/3 - 1/2 second) but it's ready for
interested parties to poke it and prod it and see how (un)reasonable it is.
Play away.

Still to be implemented or improved:
 - tdb specials (@MODULES, @SUBCLASSES, etc.)
 - all DNs are case-folded in their entirty right now (since doing otherwise
   would require @ATTRIBUTES to be implemented)
 - speed improvements and optimizations.  I am quite confident that the
   excessively slow add() operation can be much improved, and other areas
   can be somewhat improved.
2007-10-10 13:18:41 -05:00
Andrew Bartlett
c19d5706f4 r7827: Add in-memory keytab to Samba4, using the new MEMORY_WILDCARD keytab
support in Heimdal.

This removes the 'ext_keytab' step from my Samba4/WinXP client howto.

In doing this work, I realised that the replay cache in Heimdal is
currently a no-op, so I have removed the calls to it, and therefore
the mutex calls from passdb/secrets.c.

This patch also includes a replacement 'magic' mechanism detection,
that does not issue extra error messages from deep inside the GSSAPI
code.

Andrew Bartlett
2007-10-10 13:18:41 -05:00
Rafal Szczesniak
50cd94be0f r7816: Implementation of "shortcut" function for those (probably many) who
don't like to bother with netbios type names when looking for common
types: hosts (servers) and domain controllers. Also, apropriate tests

rafal
2007-10-10 13:18:40 -05:00
Rafal Szczesniak
7abd634701 r7814: Propagate the change in resolve_name_send function. 2007-10-10 13:18:40 -05:00
Rafal Szczesniak
84315cdf0d r7813: Make async request independent from config file routines.
rafal
2007-10-10 13:18:38 -05:00
Andrew Tridgell
f2b2d2626f r7810: don't give errors when the ldap server sends us reference replies 2007-10-10 13:18:38 -05:00
Andrew Tridgell
0a8c722c80 r7808: fixed the build of ldb after the binary file support in ldif was added 2007-10-10 13:18:38 -05:00
Simo Sorce
2b2675055e r7806: add test for binary files as attribute values 2007-10-10 13:18:38 -05:00