1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
Commit Graph

5562 Commits

Author SHA1 Message Date
Andrew Tridgell
6e4bcaffa0 r8517: fixed a crash bug in ldb_dn_compare_base()
(This used to be commit 19d789e825)
2007-10-10 13:29:34 -05:00
Simo Sorce
54c30b0585 r8516: let us use all parameters of ldbsearch in ldb.search
(This used to be commit e709e37928)
2007-10-10 13:29:33 -05:00
Simo Sorce
cb2c43f7b0 r8515: ldb_dn_cmp now uses ldb_dn_compare so that the DNs are compared
on a content level not ona form level, his means that the 2 DNs:
a) cn= user, dc=this, dc = is,dc=test
b) cn=user,dc=this,dc=is,dc=test
are now identical even if the string form differ (spaces)
(This used to be commit 76d496c308)
2007-10-10 13:29:33 -05:00
Simo Sorce
b86111fe83 r8514: add docs
(This used to be commit 876f0a095b)
2007-10-10 13:29:33 -05:00
Andrew Bartlett
24bef4a4bb r8511: This 'can't happen', but GCC gives warnings because it thinks it can.
Andrew Bartlett
(This used to be commit 40088b9566)
2007-10-10 13:29:33 -05:00
Stefan Metzmacher
0d48658ae0 r8505: - 'seal' and 'sign,seal' is the same
- sign and seal are tested seperate below

metze
(This used to be commit 102c2e0ae4)
2007-10-10 13:29:33 -05:00
Stefan Metzmacher
4459d16718 r8503: remove useless line
metze
(This used to be commit ec31739642)
2007-10-10 13:29:32 -05:00
Andrew Tridgell
8b80ef14fe r8500: greatly reduce the number of build warnings on x86-64 (every NDR macro
in the generated code from pidl generated a warning)
(This used to be commit 22f7fd7634)
2007-10-10 13:23:10 -05:00
Simo Sorce
7d4004a129 r8499: clearer function name
(This used to be commit 5a6c2170ff)
2007-10-10 13:23:10 -05:00
Andrew Tridgell
2cbc9b2ebd r8498: more test suite speedups. It's down to 5 minutes on my box now
(This used to be commit 82f8ad16af)
2007-10-10 13:23:10 -05:00
Andrew Tridgell
a2a838d72c r8497: prevent a fd leak in RAW-SEARCH test
(This used to be commit efb151ba79)
2007-10-10 13:23:09 -05:00
Andrew Tridgell
a92b3d070f r8496: speed up the test_echo.sh test a lot, while still providing good coverage
(This used to be commit 037feb7538)
2007-10-10 13:23:09 -05:00
Andrew Tridgell
060113de98 r8495: allow for up 10% change in allocated disk space during QFSINFO tests
(This used to be commit 16d752b551)
2007-10-10 13:23:09 -05:00
Andrew Tridgell
fc56396261 r8494: fixed a bug in RAW-SFILEINFO that caused inconsistent results on different platforms
(This used to be commit 9264555541)
2007-10-10 13:23:09 -05:00
Andrew Tridgell
bcec34683d r8491: lower the offset limit that filesystems need to support to pass RAW-WRITE to 2^33
(This used to be commit e499b1abae)
2007-10-10 13:23:09 -05:00
Andrew Tridgell
4df9b5a6e3 r8490: make the ldb tests more portable
(This used to be commit 6b20bcbeeb)
2007-10-10 13:23:09 -05:00
Andrew Tridgell
84e3efd8ea r8489: neaten up the object handling
(This used to be commit ccf20b2b13)
2007-10-10 13:23:09 -05:00
Andrew Tridgell
94d99612b9 r8488: after discussions with simo, moved to a full OO interface, so you don't need to keep
a 'db' variable around. The ldb object knows what it is connected to.

Added a simple ldb testsuite in testprogs/ldb.js
(This used to be commit cf35818648)
2007-10-10 13:23:08 -05:00
Andrew Tridgell
2bb9fa2875 r8487: kfixed a typo
(This used to be commit adae47c829)
2007-10-10 13:23:08 -05:00
Andrew Tridgell
4f62205cad r8486: switched to a separate connection operation in ldb interface
(a suggestion from simo)
(This used to be commit 98c9c4ecb8)
2007-10-10 13:23:08 -05:00
Andrew Tridgell
32b06d5882 r8485: - be friendly to shells other than bash
- don't use /tmp in test paths, as that opens us to symlink attacks
(This used to be commit 9f29cccbc1)
2007-10-10 13:23:08 -05:00
Andrew Tridgell
7913cbbe11 r8484: switched the sys_*() calls to the OO interface
tim, do you want to do the cli_*() calls now?
(This used to be commit 9991e924e9)
2007-10-10 13:23:08 -05:00
Andrew Tridgell
a0bc4da1a3 r8483: switched our generated ejs rpc code over to the new OO interface. This
means we don't pollute the name space, and also makes for faster
startup times as we only create variables for the pipes that we use,
not all pipes
(This used to be commit 57d7a585e8)
2007-10-10 13:23:08 -05:00
Andrew Tridgell
7b8332369f r8482: gnutls_x509_crt_set_subject_key_id is not available in some versions
of gnutls. Thanks to ab for spotting this.
(This used to be commit 437c4057ae)
2007-10-10 13:23:08 -05:00
Andrew Tridgell
63535f566e r8481: switched ldb ejs called over to an OO interface, so you do:
var ldb = ldb_init();

res = ldb.search(dbfile, "(objectClass=user)");

you can also do:

ldbSearch = ldb.search;
res = ldbSearch(dbfile, "(objectClass=user)");

if you want the old interface (ie. you can use this to import
functions into the global or local namespace).
(This used to be commit 3093057d97)
2007-10-10 13:23:07 -05:00
Andrew Tridgell
970ff9ba8d r8480: fixed a typo
(metze, I assume this was just a typo? it broke the build on oehmesrs6k)
(This used to be commit aa68459fe7)
2007-10-10 13:23:07 -05:00
Stefan Metzmacher
65b8c54fc2 r8476: add a note that DsAddEntry is very incomplete yet
metze
(This used to be commit 53b9175410)
2007-10-10 13:23:07 -05:00
Stefan Metzmacher
129eedc66b r8474: add some more attid mappings
for the password fields

metze
(This used to be commit 8454d32eb2)
2007-10-10 13:23:07 -05:00
Andrew Tridgell
7a7e271e0c r8471: --ejs taking an optional arguments interferes with the pidl extra args
(This used to be commit a9d05af0fd)
2007-10-10 13:23:07 -05:00
Andrew Tridgell
f48a20b249 r8470: looks like popt portability is going to be a bit of a fight :(
(This used to be commit d3872a6e4c)
2007-10-10 13:23:06 -05:00
Andrew Tridgell
89641975bb r8469: the extra pidl args need to be normal args, not after a --, otherwise pidl tries to compile
"--uint-enums" as a IDL file :-)

This should help the build on AIX 5.2
(This used to be commit f54e6c83e4)
2007-10-10 13:23:06 -05:00
Andrew Tridgell
1329c2eb1f r8467: using both math.h and float.h breaks popt on freebsd 5.4
(This used to be commit a1acb3300e)
2007-10-10 13:23:06 -05:00
Andrew Tridgell
61b16caed8 r8466: it is not portable to assert() a va_list (it breaks on alpha for example)
(This used to be commit 2a64ee4227)
2007-10-10 13:23:06 -05:00
Andrew Tridgell
5c453f5698 r8465: once we define socklen_t, then tell other include files we have it. This prevents roken
trying to redefine it
(This used to be commit aa9491c0cb)
2007-10-10 13:23:06 -05:00
Andrew Tridgell
10cb617904 r8464: the last few functions needed by irix 6.4.
(This used to be commit 903d963ca8)
2007-10-10 13:23:06 -05:00
Andrew Tridgell
d0e3452a61 r8463: more irix fixes. This one adds some missing addrinfo functions
(This used to be commit 87f7098ee3)
2007-10-10 13:23:06 -05:00
Andrew Tridgell
66410ac4fd r8462: added a test for %lld support to our snprintf() configure test.
our snprintf replacement code is going to be getting a good workout :)
(This used to be commit 3e9e5af4ce)
2007-10-10 13:23:05 -05:00
Andrew Tridgell
978bbb4f4d r8461: fixed integer64 handling on bit endian platforms. The ejs code used
%Ld, which is an invalid format code.

This will probably cause problems on systems that don't have %lld, but
do have a working snprintf otherwise. We will need to expand the
snprintf configure test to make sure we replace snprintf on those
platforms
(This used to be commit ccc87eb8aa)
2007-10-10 13:23:05 -05:00
Andrew Tridgell
c77f4a68c6 r8460: removed the unused function krb5_locate_kdc(). It causes a build failure on irix.
Andrew, if you planned on using this in the future then we can put it
back and work out how to make it portable
(This used to be commit eaa74913fe)
2007-10-10 13:23:05 -05:00
Andrew Tridgell
8858542b26 r8459: move to the more portable script execution method
(This used to be commit d7e4dcaaaa)
2007-10-10 13:23:05 -05:00
Andrew Tridgell
c4173f6725 r8458: next target is irix - this gets the socket wrapper code building
(This used to be commit 3d4a2221c3)
2007-10-10 13:23:05 -05:00
Andrew Tridgell
0fedba6342 r8456: avoid double inclusion of roken.h (this was breaking the build on irix 6.4)
(This used to be commit 8c432af87d)
2007-10-10 13:23:05 -05:00
Andrew Tridgell
598aafe9b3 r8453: my solaris10 box doesn't have math.h
maybe sun isn't very good at maths?
(This used to be commit ab67c8b2b7)
2007-10-10 13:23:05 -05:00
Andrew Tridgell
0e5907d57c r8452: allow for the ugly hack:
#!/bin/sh
exec smbscript "$0" ${1+"$@"}

which is needed because bloody solaris puts 'env' in /bin instead of /usr/bin

also neaten up the #! handling code.
(This used to be commit 778bcd3738)
2007-10-10 13:23:05 -05:00
Andrew Tridgell
fa2b97a20a r8451: samba4 finally builds on solaris 8 sparc with heimdal and ejs
its been a long haul ...
(This used to be commit 3c4291e49a)
2007-10-10 13:23:04 -05:00
Andrew Tridgell
af0574378b r8450: more configure tests for solaris. It now builds some binaries, but
fails in the ejs floating point code.
(This used to be commit 30e1b6140e)
2007-10-10 13:23:04 -05:00
Andrew Tridgell
7175419589 r8449: - search for lex and yacc properly
- added target specific flags to get the #include order right for
  com_err and asn1 files in heimdal
(This used to be commit c721c8ca38)
2007-10-10 13:23:04 -05:00
Andrew Tridgell
606beece8e r8448: - added a test target for tdb
- reduced the torture size so it doesn't kill the build farm hosts
(This used to be commit 7a88a9f06c)
2007-10-10 13:23:04 -05:00
Andrew Tridgell
a411d4f4d5 r8447: fixed make install in the farm
(This used to be commit 4a61a5c70e)
2007-10-10 13:23:04 -05:00
Andrew Tridgell
f027e4d224 r8446: if provisioning fails then don't try to run the test suite!
(This used to be commit 7c1bc27254)
2007-10-10 13:23:04 -05:00
Andrew Tridgell
2d0468ac9a r8445: if a system doesn't have "nogroup" then try "nobody"
(This used to be commit 433f9d0a61)
2007-10-10 13:23:04 -05:00
Love Hörnquist Åstrand
1ab2c5009a r8444: make ./configure.mumble CC='ccache cc'
work by using "@$" instead of $*
(This used to be commit 98e8049bc3)
2007-10-10 13:23:03 -05:00
Andrew Tridgell
ef300e6686 r8443: added talloc.3 to the tree to try to allow talloc to build on systems without xsltproc
(This used to be commit 0e5b89b1e8)
2007-10-10 13:23:03 -05:00
Andrew Tridgell
c9e5d3b53e r8442: remove tdbtest from our build. If you want it, then do
'make bin/tdbtest' manually in the tdb tree
(This used to be commit 28dd79587d)
2007-10-10 13:23:03 -05:00
Andrew Tridgell
2dabfc1cde r8441: don't build tdbtest by default as there are too many systems that
don't have libgdbm, and the configure test for gdbm is broken
(This used to be commit 5c4c3e9a8d)
2007-10-10 13:23:03 -05:00
Andrew Tridgell
5b31da9427 r8440: - several build farm hosts were failing 'make clean' as the list of
objects was overflowing their command line limits. Fix this by using a
  find -exec command. It's slower, but should be more portable.

- remove generated ASN1 files in 'make clean'
(This used to be commit da783f9158)
2007-10-10 13:23:03 -05:00
Andrew Tridgell
cadcbbb6a3 r8439: removed an accidential commit
(This used to be commit 985b5b0171)
2007-10-10 13:23:03 -05:00
Jelmer Vernooij
2483f979d1 r8438: - More win32 portability fixes. Now fails on socketwrapper (because
unix domain sockets are not available on win32)
- Update howto
(This used to be commit c88ee6b61b)
2007-10-10 13:23:02 -05:00
Jelmer Vernooij
e151284693 r8437: Win32 doesn't have u_int*_t
(This used to be commit 5b007037df)
2007-10-10 13:23:02 -05:00
Jelmer Vernooij
dca3c16c85 r8436: Check for sys/sockets.h
(This used to be commit 7757226ba5)
2007-10-10 13:23:02 -05:00
Jelmer Vernooij
84db066207 r8434: Win32 portability updates from Steven Edwards <steven_ed4153@yahoo.com>:
- undefine anything in the win32 api or PSDK headers that Samba already defines
 - map BSD error codes to Winsock Error codes
(This used to be commit d2ea619125)
2007-10-10 13:23:02 -05:00
Stefan Metzmacher
0639fe016e r8430: readd my hack to display the hashes with -d 100
metze
(This used to be commit b3f01ef0df)
2007-10-10 13:23:02 -05:00
Stefan Metzmacher
58d06f205e r8429: fix compiler warnings
metze
(This used to be commit b9ee581880)
2007-10-10 13:23:02 -05:00
Andrew Tridgell
4caf19ca35 r8425: add err() and errx() functions needed by for compile_et on some systems
(This used to be commit 72a769b6d1)
2007-10-10 13:23:01 -05:00
Andrew Tridgell
833842f0aa r8424: bring in some more of heimdals m4 macros, and remove the hard-coding of several test
results
(This used to be commit b173c938b2)
2007-10-10 13:23:01 -05:00
Andrew Tridgell
3c079cd58d r8423: remove the dependency on the full roken lib for asn1_compile
this should fix the -lsocket problem on solaris
(This used to be commit 4c462cdab3)
2007-10-10 13:23:01 -05:00
Andrew Tridgell
16aa5d1cd7 r8422: needed on irix 6.4
(This used to be commit db3f227c1c)
2007-10-10 13:23:01 -05:00
Andrew Tridgell
354700ae50 r8421: needed for build on solaris10
(This used to be commit c40d6d4b5c)
2007-10-10 13:23:01 -05:00
Andrew Tridgell
2ea372afd9 r8420: slowly getting my way through some more heimdal portability fixes
(This used to be commit 59c3de6ca8)
2007-10-10 13:23:01 -05:00
Andrew Tridgell
c8461d737a r8419: in order to use our replace.h, heimdal needs stdarg.h
(This used to be commit 234fc1fb05)
2007-10-10 13:23:00 -05:00
Andrew Tridgell
12ed349f90 r8418: PRINTF_ATTRIBUTE declaration has to come before it is used :-)
(This used to be commit a1ca8352f4)
2007-10-10 13:23:00 -05:00
Andrew Tridgell
72fbfff1a7 r8417: fixed handling of PRINTF_ATTRIBUTE for heimdal portion of build
(This used to be commit 117d2fa31d)
2007-10-10 13:23:00 -05:00
Andrew Tridgell
dd0816dcc8 r8416: added the extra_cflags.txt system from smb-build
this removes the need for recursive make for heimdal, which is a big
win. It should also make it easier/cleaner to build ldb/tdb/appweb etc
in both in-tree and out-of-tree forms by allowing us to specify
different CFLAGS (and thus different include paths) per directory or
file
(This used to be commit b2f9b8aa32)
2007-10-10 13:23:00 -05:00
Andrew Tridgell
bca5b59fdf r8415: get rid of the last 2 runtime perl scripts
(This used to be commit b775884474)
2007-10-10 13:23:00 -05:00
Tim Potter
52bef30fd4 r8414: Some C++ friendlyness fixes - 'not' is apparently a keyword in C++.
(This used to be commit bcfb3a45e4)
2007-10-10 13:23:00 -05:00
Andrew Tridgell
50ea5cb419 r8412: cope with some lost messages in the ping test (netbsd gets this)
(This used to be commit fcf60823c6)
2007-10-10 13:22:59 -05:00
Andrew Tridgell
a3b0bb89b4 r8411: we need to use mprVarToNumber() instead of var->integer now, to cope with
the 64 bit integer support

this fixes the exit status from smbscript
(This used to be commit f476e7aeec)
2007-10-10 13:22:59 -05:00
Andrew Tridgell
afb160e20c r8410: converted the newuser script to js
(This used to be commit b90aa3c5a7)
2007-10-10 13:22:59 -05:00
Andrew Tridgell
b433d61537 r8409: fixed another error found on netbsd.
some of our torture code does its own timeout processing, which means
there is no event timer in the event context. To fix this gererically
I have added a 30 second timout to all select/epoll calls so the
callers timeout loop is guaranteed to run eventually
(This used to be commit 01e5aa1464)
2007-10-10 13:22:59 -05:00
Andrew Tridgell
d1291dacbd r8408: its quite common in our code to free up a connection when we get an
error, but sometimes a socket option may then happen on the NULL
socket. This has been handled by the individual libraries up to now,
but its cleaner to centralise it here
(This used to be commit d9864e1f9a)
2007-10-10 13:22:59 -05:00
Andrew Tridgell
562498c526 r8407: fixed a bug left over from our old socket code.
Thanks to lha for giving me a login on a netbsd machine to see this
(This used to be commit 4e66f682e4)
2007-10-10 13:22:58 -05:00
Andrew Tridgell
e2881aca86 r8406: make sure we give an error in ldbAdd() if any record fails
(This used to be commit 632f99017d)
2007-10-10 13:22:58 -05:00
Andrew Tridgell
74727243cd r8405: update var.c from upstream
(This used to be commit 288c178d5f)
2007-10-10 13:22:58 -05:00
Andrew Tridgell
8fc8fa2ad4 r8404: small upstream merges of appweb code
(This used to be commit 205ff9a82b)
2007-10-10 13:22:58 -05:00
Tim Potter
b4f6a348bb r8403: Reinstate linkpad.gif at Deryck's suggestion.
Install *.gif from swat/images when installing swat.
(This used to be commit 156e090c2c)
2007-10-10 13:22:58 -05:00
Andrew Tridgell
54433c747a r8401: add a readme pointing to the upstream sources
(This used to be commit 2dcae5c98c)
2007-10-10 13:22:58 -05:00
Andrew Tridgell
a102f52db8 r8400: separate out the mpr code, as it is in the upstream appweb sources
(This used to be commit 0e30b6e4cc)
2007-10-10 13:22:57 -05:00
Andrew Tridgell
adbb1612c1 r8399: move the ejs and esp code closer to the directory layout used by the
upstream sources. This makes it much easier to keep it up to date.

I will separate out the mpr code into lib/appweb/mpr next
(This used to be commit 52db7a052b)
2007-10-10 13:22:39 -05:00
Andrew Tridgell
e5700ea560 r8397: merged an upstream fix for the expression bug tpot found yesterday
(This used to be commit 93712dd894)
2007-10-10 13:20:14 -05:00
Love Hörnquist Åstrand
61edb97bdf r8394: Make sure the argument to ctype is*(3) macros are unsigned char as
required by ISO C99.
(This used to be commit 56fd21c806)
2007-10-10 13:20:14 -05:00
Love Hörnquist Åstrand
df426e5d4a r8393: check for bswap16 and bswap32
(This used to be commit 707e3726d3)
2007-10-10 13:20:14 -05:00
Love Hörnquist Åstrand
053cec96df r8390: (smb_pam_start): move variable to scope within #ifdef to avoid warning
for those PAM implementations w/o PAM_RHOST and/or PAM_TTY
(This used to be commit 95cb2d942f)
2007-10-10 13:20:14 -05:00
Simo Sorce
f5598308d5 r8377: forgot an ldif test
(This used to be commit ed804262dc)
2007-10-10 13:20:14 -05:00
Stefan Metzmacher
a1afbe52a6 r8376: remove version info from configure.in
metze
(This used to be commit bfce35bf63)
2007-10-10 13:20:14 -05:00
Stefan Metzmacher
59d17eee38 r8375: - move from netr_StringLarge to lsa_StringLarge
- we need to use lsa_StringLarge in lsa_DnsDomainInfo, to make windows clients happy

metze
(This used to be commit 044d18f85f)
2007-10-10 13:20:13 -05:00
Andrew Tridgell
fc5a0c4c46 r8374: avoid running flex and bison unless needed
this should stop the files changes in svn for other developers
(This used to be commit 18d3deb777)
2007-10-10 13:20:13 -05:00
Simo Sorce
c9b0e86a43 r8373: New wildcard matching code.
This code applies correct ldap standard wildcard matching code
removes WILDCARD matching from tdb @ATTRIBUTES, that's now handled independently
adds some more tests for wildcard matching
fixes dn comparison code in ldb_match
(This used to be commit 4eb5863042)
2007-10-10 13:20:13 -05:00
Andrew Tridgell
adb7fd18e5 r8372: - split out provisioning logic into a separate ejs library
- added a provisioning web page
(This used to be commit 7476cb9413)
2007-10-10 13:20:13 -05:00
Stefan Metzmacher
a4c614b012 r8371: the objectGUID is now stored in binary...
metze
(This used to be commit b920b306b3)
2007-10-10 13:20:13 -05:00
Stefan Metzmacher
557c78e36d r8370: remove the '$' from in the cn: attribute for computer and dc accounts
metze
(This used to be commit 206f33778e)
2007-10-10 13:20:12 -05:00
Andrew Tridgell
5b567cfbb6 r8369: update the configure script I use
(This used to be commit 1f1e8f7d0f)
2007-10-10 13:20:12 -05:00
Stefan Metzmacher
e87f589f00 r8368: the type filed depends on the user being present or not
call ndr_print for each call

metze
(This used to be commit 0a07e4ef8d)
2007-10-10 13:20:12 -05:00
Andrew Tridgell
bab3e5d6ce r8367: another configure test needed by netbsd for heimdal
(This used to be commit 8ddf866438)
2007-10-10 13:20:12 -05:00
Andrew Tridgell
b8b5544500 r8365: fixed a problem on netbsd
(This used to be commit d5d0769da9)
2007-10-10 13:20:12 -05:00
Andrew Tridgell
a7c7a9c64c r8364: fixed a valgrind bug spotted by simo
(This used to be commit ef804e8f36)
2007-10-10 13:20:12 -05:00
Stefan Metzmacher
f4ec5d45c3 r8363: - we need to correct the realm for the krbtgt/NETBIOSDOMAINREALM
into krbtgt/DNS.DOMAIN.REALM too
  with this a windows client asks for the correct ticket when you try to login
  (but it's still not working correct, as some how we mess up the dns host name of the
   client and it asks for the wrong service principal)

- fix some compiler wranings
- fix some debug messages

metze
(This used to be commit c4c93eeec2)
2007-10-10 13:20:12 -05:00
Love Hörnquist Åstrand
1a539f3f0b r8362: change AC_INIT to the new version, improves failure reporting from autoconf
configure: WARNING: sys/mount.h: present but cannot be compiled
[...]
configure: WARNING:     ## ------------------------------------------ ##
configure: WARNING:     ## Report this to the AC_PACKAGE_NAME lists.  ##
configure: WARNING:     ## ------------------------------------------ ##

configure: WARNING: sys/mount.h: present but cannot be compiled
[...]
configure: WARNING:     ## ---------------------------------------- ##
configure: WARNING:     ## Report this to samba-technical@samba.org ##
configure: WARNING:     ## ---------------------------------------- ##
(This used to be commit f872686d83)
2007-10-10 13:20:11 -05:00
Love Hörnquist Åstrand
91163c518c r8361: ctype is* macros needs unsigned arguments
(This used to be commit 07a7ab0a6a)
2007-10-10 13:20:11 -05:00
Stefan Metzmacher
908a2e6cc1 r8359: fix a shell warning
metze
(This used to be commit 9739aa75d2)
2007-10-10 13:20:11 -05:00
Tim Potter
24f4236a9f r8358: Return an error message if js include path not set instead of silently
failing.
(This used to be commit 797d9cf0c7)
2007-10-10 13:20:11 -05:00
Tim Potter
6b38e62f0a r8357: Call lp_load() so we can access the various lp_functions().
(This used to be commit f76a7ec2a2)
2007-10-10 13:20:11 -05:00
Love Hörnquist Åstrand
74046071f5 r8356: avoid warning from AC_CHECK_HEADER that file is present but cannot be compiled
for sys/mount.h
(This used to be commit f70e8b4f6e)
2007-10-10 13:20:11 -05:00
Andrew Tridgell
26a55c330a r8355: - added a vsprintf() function
- removed the --outputdir option from provision, as its not used any
  more (as ejs knows the real paths)
(This used to be commit abbf9c703c)
2007-10-10 13:20:10 -05:00
Andrew Tridgell
fb80c37c49 r8352: we need to override "setup directory" for the build farm hosts
(This used to be commit 1a80850d57)
2007-10-10 13:20:10 -05:00
Tim Potter
9d70babef1 r8351: When finished sending call stream_terminate_connection() with a nice
message instead of NULL.

Fix up some other terminate messgages to be consistent.
(This used to be commit c0428ef337)
2007-10-10 13:20:10 -05:00
Andrew Tridgell
dd750b98af r8350: fixed the --root option to provision
(This used to be commit 506e07d6e0)
2007-10-10 13:20:10 -05:00
Andrew Tridgell
3a4b3df609 r8349: as we don't use standard dirs, we need to create smb.conf before we run provision
(This used to be commit c64a68cd40)
2007-10-10 13:20:09 -05:00
Andrew Tridgell
e9672b338e r8348: switch selftest to use the new provision script
(This used to be commit 52517e48ea)
2007-10-10 13:20:09 -05:00
Andrew Tridgell
23f79c5c9a r8347: replace the perl provision script with a ejs script
I don't mind depending on perl at compile time, but I want to avoid
depending on it at runtime. This also will make it easy to add web
install wizard
(This used to be commit f27a681769)
2007-10-10 13:20:09 -05:00
Andrew Tridgell
08b78230d2 r8345: make the dn on the hklm ldif valid
Jelmer, can you check this is OK?
(This used to be commit 6d416656a0)
2007-10-10 13:20:09 -05:00
Andrew Tridgell
b3320581ff r8344: added a "setup directory" smb.conf parameter, pointing at the setup template files
(This used to be commit c842144cbf)
2007-10-10 13:20:09 -05:00
Andrew Tridgell
f0cbb1787e r8343: removed a debugging message
(This used to be commit c12325e252)
2007-10-10 13:20:09 -05:00
Andrew Tridgell
7c78ec0e14 r8342: allow ldb_ldif_read_string() to continue in the string, so you can
read multiple records
(This used to be commit 4b11c00421)
2007-10-10 13:20:08 -05:00
Andrew Tridgell
9570e24df1 r8341: enable floating point support in ejs
(This used to be commit bdc6b67eb2)
2007-10-10 13:20:08 -05:00
Andrew Tridgell
9f86e20286 r8340: - added sys_gmtime()
- added sys_unlink()

- added sys_file_load() and sys_file_save()

- use mprString() instead of mprCreateStringVar() to cope with NULL strings

- removed smbcalls_irpc.c as its not needed any more

- allow ldbAdd() and ldbModify() to take multiple ldif records

- added a sprintf() function to ejs. Quite complex, but very useful!
(This used to be commit 625628a3f6)
2007-10-10 13:20:08 -05:00
Andrew Tridgell
1bb2b06031 r8339: added ldbAdd(), ldbModify(), ldbDelete() and ldbRename() to ejs ldb functions
(This used to be commit 322c213783)
2007-10-10 13:20:08 -05:00
Andrew Tridgell
2dce83de0c r8338: - added a substitute_var() js library function for doing hash driven
substitution of variables in strings

- the js provision script now correctly processes provision.ldif
(This used to be commit c2946003e0)
2007-10-10 13:20:08 -05:00
Andrew Tridgell
b1e93b296e r8337: - use 64 bit access functions in ejs calls
- added access to smbd random functions

- fixed ordering in join()

- added sys_interfaces(), sys_hostname(), sys_nttime() and sys_ldaptime()
(This used to be commit 28c1a1f3c0)
2007-10-10 13:20:07 -05:00
Andrew Tridgell
36bb0ffd4c r8336: enable 64 bit integer support in ejs
(This used to be commit 9dd41e78e1)
2007-10-10 13:20:07 -05:00
Andrew Tridgell
70278929fc r8335: removed some duplicated code
(This used to be commit 1536d66662)
2007-10-10 13:20:07 -05:00
Andrew Tridgell
8435fbc4af r8334: fixed a ejs bug that prevented functions variables from being called in local context
(This used to be commit 5ea7ae7081)
2007-10-10 13:20:07 -05:00
Andrew Tridgell
ba1ee57df4 r8333: merged with latest upstream ejs sources
(This used to be commit b0f9ddafe9)
2007-10-10 13:20:07 -05:00
Andrew Tridgell
3e5649f79f r8332: not done yet, but a lot closer
(This used to be commit 1d9632877c)
2007-10-10 13:20:07 -05:00
Andrew Tridgell
c30c711292 r8331: added split(), join() and FileLoad() functions to ejs.
this gets me most of the way through a ejs provision script
(This used to be commit 0ef8f0282e)
2007-10-10 13:20:06 -05:00
Volker Lendecke
3e0aa2e756 r8321: Fix some uninitalized variable warnings
(This used to be commit 126cb3db4b)
2007-10-10 13:20:06 -05:00
Andrew Tridgell
887461327a r8320: make sure all our returned objects are full objects, which means they
have the toString() and valueOf() default attributes

this allows all our returned objects to be used in logical expressions
(This used to be commit 570f071b15)
2007-10-10 13:20:06 -05:00
Andrew Tridgell
07c2a1c09a r8319: the start of a provision script in ejs. This is why I've been adding
so many functions lately.

so far it just parses options, works out the host IP, and user and group names
(This used to be commit 333b32025f)
2007-10-10 13:20:06 -05:00
Andrew Tridgell
683432660e r8318: added a bunch more ejs calls.
getgr*()
  getpw*()
  strlower()
  strupper()
  IfaceList()
(This used to be commit 1517ad490d)
2007-10-10 13:20:06 -05:00
Andrew Tridgell
f583a85d4d r8316: give full access to the popt command line parsing in ejs scripts, including
access to the samba common options. For example:

ok = GetOptions(ARGV, options,
		"POPT_AUTOHELP",
		"POPT_COMMON_SAMBA",
		"myopt=s",
		"intopt=i",
		"noopt");

this allows scripts to support their own extended options properly
(This used to be commit 775fb56ac2)
2007-10-10 13:20:05 -05:00
Andrew Tridgell
9ab58c5e01 r8315: fixed the generation of the serial number in the dns zone file (bind9
doesn't like it being too long)
(This used to be commit fc93ade9cd)
2007-10-10 13:20:05 -05:00
Andrew Tridgell
2696764132 r8314: - added an 'installmisc' target for installing miscellaneous files.
- install our provisioning template files in lib/setup/

We need these to be installed as users may wish to re-provision after
installation, or may not have the source tree (wuch as when installing
from binary packages)
(This used to be commit 7c2e31fd11)
2007-10-10 13:20:05 -05:00
Andrew Tridgell
54ffd4fdbf r8313: moved PRINTF_ATTRIBUTE to replace.h to try to get irix building with heimdal
(This used to be commit 7d4e309f02)
2007-10-10 13:20:05 -05:00
Andrew Tridgell
5f26a5a18a r8312: fixed some heimdal header checks from watching the build farm failures
when we added heimdal we dropped from 10 passing builds to 1, but hopefully
that will go up with a bit of effort
(This used to be commit 753d7ab715)
2007-10-10 13:20:05 -05:00
Andrew Tridgell
2fa99e56bc r8311: krb5 uses ENOMEM for out of memory
(thanks to abartlet for pointing this out)
(This used to be commit 4b16754a0e)
2007-10-10 13:20:05 -05:00
Andrew Tridgell
8c018ff786 r8310: replace the heimdal networking interface scanning code with glue code that uses the Samba
interfaces list. This makes heimdal obey the 'interfaces=' smb.conf option, and should also
fix the portability problems with the heimdal code
(This used to be commit ba621d1c55)
2007-10-10 13:20:04 -05:00
Andrew Tridgell
2271bb4475 r8309: more heimdal configure checks needed for FreeBSD
(This used to be commit b5e8409e3b)
2007-10-10 13:20:04 -05:00
Andrew Tridgell
eaa882b9a5 r8308: use the configured C compiler, instead of forcing gcc in external heimdal tool build
(This used to be commit 39c6cf91fb)
2007-10-10 13:20:04 -05:00
Andrew Tridgell
14fb42204b r8307: try to cope with flex and bison not being installed, in a similar fashion to yapp for pidl
if they are installed, then we rebuild the generated files, otherwise
we use the ones in svn
(This used to be commit 6ab503b7cc)
2007-10-10 13:20:04 -05:00
Andrew Tridgell
76478d7eb1 r8306: some more heimdal configure checks
(This used to be commit 575413fc86)
2007-10-10 13:20:04 -05:00
Andrew Tridgell
2b89817e46 r8305: another attempt at getting heimdal building in the farm
(This used to be commit 2cab29c1e7)
2007-10-10 13:20:03 -05:00
Andrew Tridgell
b81460b143 r8303: a workaround for forcing HEIMDAL_EXTERNAL to build.
Jelmer, when you get a chance can we discuss how to fix this properly?
(This used to be commit 2564cd962b)
2007-10-10 13:19:34 -05:00
Heimdal Import User
954c01728e r8302: import mini HEIMDAL into the tree
(This used to be commit 118be28a7a)
2007-10-10 13:19:33 -05:00
Andrew Tridgell
7ead5ab06c r8301: use ncalrpc: for ejs tests, to avoid name resolution timeouts as smbd is just starting up
(This used to be commit c0bf253d4b)
2007-10-10 13:19:33 -05:00
Andrew Tridgell
16e8e96ba8 r8300: get the js include path right in selftest
(This used to be commit 0e9e541e1e)
2007-10-10 13:19:33 -05:00
Andrew Tridgell
f9ff72cbda r8298: - started building a library of js routines in scripting/libjs/
- switched the existing test programs over to using the library

- added install of js lib
(This used to be commit 2a444dedbe)
2007-10-10 13:19:33 -05:00
Andrew Tridgell
b2f1321821 r8297: add libinclude() function in ejs, which is like include() but searches a js library
path set in "js include" in smb.conf.

This will allow us to start building up a library of common js code,
while avoiding the problem of hard-coding include paths in scripts
(This used to be commit ff60529ba2)
2007-10-10 13:19:32 -05:00
Andrew Tridgell
b2f84fef13 r8296: - split out the ejs auth functions into a separate file
- got rid of the one line ejs_returnlist()
(This used to be commit 6961fe2905)
2007-10-10 13:19:32 -05:00
Andrew Tridgell
51d2b6b5a4 r8295: turn off the delete on close test in the build farm until someone gets
a chance to look at it. Having it continually fail is hiding other
portability errors that might have been introduced.
(This used to be commit c1a3691f87)
2007-10-10 13:19:32 -05:00
Jelmer Vernooij
747cae7151 r8294: Add PLAN file for samba3->samba4 upgrade (Google Summer of Code) project.
(This used to be commit 7ebf81adce)
2007-10-10 13:19:32 -05:00
Andrew Tridgell
c9c49b11f9 r8289: fallback to the group 'other' for users
this might fix the testing on solaris10
(This used to be commit 5adbab0afe)
2007-10-10 13:19:32 -05:00
Tim Potter
4109f7d069 r8288: The SMB_ASSERT_ARRAY macro isn't used anymore.
(This used to be commit aab24385ab)
2007-10-10 13:19:32 -05:00
Andrew Tridgell
39b1d2b4c4 r8286: it makes more sense to combine the refresh count with the register count, as they
are really the same packet (you can register with a refresh)
(This used to be commit 5006528554)
2007-10-10 13:19:31 -05:00
Andrew Tridgell
c7304b3ab8 r8285: generate some real stats in the nbt server for the irpc client code to look at
(This used to be commit 73643884a3)
2007-10-10 13:19:31 -05:00
Andrew Tridgell
056096c30b r8284: - fixed some uninitialised variables in the irpc code
- added code to send multiple irpc calls in parallel, to all servers
  that have registered the given name, with output going in
  io.results[i]. This allows you to make rpc calls to multiple servers
  at once, which is needed for clients like smbstatus
(This used to be commit 061e20e509)
2007-10-10 13:19:31 -05:00
Andrew Tridgell
e43e8fcf55 r8283: make sure we build constant variables for both pull and push side of enums
(This used to be commit 529370ed92)
2007-10-10 13:19:31 -05:00
Andrew Tridgell
9281b58398 r8282: make the deletion of the smbd.tmp directory recursive. This cleans up the messaging
directory
(This used to be commit 783679e0df)
2007-10-10 13:19:31 -05:00
Andrew Tridgell
0871be3f35 r8281: pass the callnum and rpc interface table directly from the generated
code in pidl for ejs calls. This means that ejs_rpc_call() doesn't
need to scan the rpc tables for the right interface, and doesn't need
to scan for the call name
(This used to be commit 1c6b1102e5)
2007-10-10 13:19:31 -05:00
Andrew Tridgell
f3c6f290f0 r8280: - added irpc_connect() for connecting to a irpc server by name
- make the dcerpc pipe in rpc_connect() a talloc child of the ejs
  connection variable. That means when the connection variable goes out
  of scope, the connection is automatically closed. That makes for a
  more natural interface for closing connections in a scripting language
  (tpot, you may wish to use mprSetPtrChild() in your smb glue code too)
(This used to be commit 1c170138a8)
2007-10-10 13:19:30 -05:00
Andrew Tridgell
d084d6d241 r8279: make sure we hold a lock when manipulating the irpc names db
(This used to be commit 9c408d5d7c)
2007-10-10 13:19:30 -05:00
Andrew Tridgell
3f27c9efb9 r8278: this should fix the heimdal h_errno warnings
(This used to be commit 5812e74c4f)
2007-10-10 13:19:30 -05:00
Andrew Tridgell
144b88b3a0 r8277: filled in the code for finding irpc server ids by name, storing the
names in a tdb
(This used to be commit b603a52f27)
2007-10-10 13:19:30 -05:00
Andrew Tridgell
60ec75cbc7 r8276: fixed the remaining memory leaks in smbscript. We can now loop doing
lots of rpc calls without memory usage increasing.
(This used to be commit 9c885a7edb)
2007-10-10 13:19:30 -05:00
Andrew Tridgell
1e5b309b4f r8275: possibly a more portable way to export symbols in perl?
(This used to be commit d5153d16e1)
2007-10-10 13:19:29 -05:00
Jelmer Vernooij
514ce32a89 r8274: Export some more symbols.
(This used to be commit d1f754a0a3)
2007-10-10 13:19:29 -05:00
Andrew Tridgell
76ecf81428 r8273: fixed some memory leaks in smbscript. This required converting
file_load() to use talloc, which impacted quite a few bits of code,
including our smb.conf processing.

took the opportunity to remove the gloabls in params.c while doing this
(This used to be commit b220756cb4)
2007-10-10 13:19:29 -05:00
Andrew Tridgell
c6881d1e65 r8272: added the hooks for adding a name to a messaging context, so we will
be able to send a message to the "ldap_server" task without having to
know its task ID.
(This used to be commit 8f69867867)
2007-10-10 13:19:29 -05:00
Andrew Tridgell
001dc40ecd r8271: make the ejs test scripts directly executable scripts using:
#!/usr/bin/env smbscript

I'll be interested to see how portable this is in the build farm.
(This used to be commit 757c22aab4)
2007-10-10 13:19:28 -05:00
Jelmer Vernooij
d0c3471882 r8270: Export some symbols, making the code more readable.
(This used to be commit d64bffa17e)
2007-10-10 13:19:28 -05:00
Andrew Tridgell
2a08b29013 r8269: added automatic testing of rpc calls from ejs in 'make test'
(This used to be commit c760180119)
2007-10-10 13:19:28 -05:00
Andrew Tridgell
146c854109 r8268: added the 'needed' logic to ehs generation, so we don't generate
functions we don't need. That is a lot of functions, as ejs is only
client side, so it only needs push functions for [out] vars, and pull
functions for [in] vars

added irpc and srvsvc IDL to list of available pipes.
(This used to be commit c7a9dbe70a)
2007-10-10 13:19:28 -05:00
Andrew Tridgell
747edf086b r8267: re-generated the yapp parser with correct paths
(This used to be commit a6922ccd63)
2007-10-10 13:19:28 -05:00
Jelmer Vernooij
b98373d574 r8265: Fixes to the pidl test suite.
(This used to be commit 1235333afb)
2007-10-10 13:19:28 -05:00
Jelmer Vernooij
fa1445f4bc r8264: - Use standard perl package structure for pidl.
- Only "use" pidl modules in the main executable when necessary

Try 'make install' in build/pidl to install the package (should work stand-alone).
(This used to be commit c620095692)
2007-10-10 13:19:27 -05:00
Jelmer Vernooij
c222331d6d r8263: Some small pidl fixes, start working towards supporting installation of pidl.
(This used to be commit c785677a14)
2007-10-10 13:19:27 -05:00
Andrew Tridgell
b4e53e6705 r8262: - simplify the dependency handling for ejs modules
- added config.mk entries for some more pipes

- simplify the handling of ejs variables in the pidl code
(This used to be commit 595304708d)
2007-10-10 13:19:27 -05:00
Andrew Tridgell
5ed139f096 r8261: charset style strings in pidl should be const, just like old style ndr strings
(This used to be commit aa0e1d6699)
2007-10-10 13:19:27 -05:00
Andrew Tridgell
cd88764ba1 r8260: added an init based registration system for the generated ejs rpc code, so
adding a new pipe only involves changes to librpc/config.mk
(This used to be commit 0e54fa4466)
2007-10-10 13:19:27 -05:00
Simo Sorce
3b03ccb2f7 r8259: We want to oset the provided flags not zero
(This used to be commit 50d8ccacca)
2007-10-10 13:19:27 -05:00
Volker Lendecke
bb83629865 r8258: Release the opendb lock in pvfs_change_create_options.
Volker
(This used to be commit 2c4fd3ff99)
2007-10-10 13:19:26 -05:00
Andrew Tridgell
7efeb8f451 r8256: - allow rpc calls from non-command line ejs contexts by creating a set
of null credentials to use if cmdline_credentials is not setup

- hide the length and size elements of a lsa_String from js scripts,
  so you can use a lsa_String just as an ordinary string without
  knowing its a structure. We won't do this with all structures, just
  a few core ones that are used often enough to warrant it.

- make sure returned ldb arrays have a length property
(This used to be commit 12d2092dd8)
2007-10-10 13:19:26 -05:00
Andrew Tridgell
8ca17e2f47 r8255: enable access to the ejs constants generated by pidl from the web server esp pages
(This used to be commit 354cdf893d)
2007-10-10 13:19:26 -05:00
Andrew Tridgell
fe1cf1eeb7 r8254: fixed a valgrind error in the unix auth code
(This used to be commit ad1a4802d0)
2007-10-10 13:19:26 -05:00
Andrew Tridgell
514731b0ee r8253: fixed two crash bugs in ejs. I will send these fixes off to the appweb guys soon.
(This used to be commit 3fe83b48c3)
2007-10-10 13:19:26 -05:00
Andrew Bartlett
e75c7ff39f r8252: Steal metze's thunder, and prove that with a few small tweaks, we can
now push/pull a sample PAC, and still have the same byte buffer.
(Metze set up the string code, and probably already has a similar
patch).

Unfortunetly win2k3 still doesn't like what we provide, but every step helps.

Also use data_blob_const() when we are just wrapping data for API
reasons.

Andrew Bartlett
(This used to be commit e7c8076fc1)
2007-10-10 13:19:25 -05:00
Andrew Tridgell
38ec84a75c r8251: fixed a couple of valgrind errors in the unix auth code. Simo, can you
please check that this is what you intended?
(This used to be commit a57738769d)
2007-10-10 13:19:25 -05:00
Andrew Bartlett
c0a78453a7 r8250: More PAC work. We now sucessfully verify the KDC signature from my DC
(I have included the krbtgt key from my test network).

It turns out the krbtgt signature is over the 16 (or whatever,
enc-type dependent) bytes of the signature, not the entire structure.

Also do not even try to use Kerberos or GSSAPI on an IP address, it
will only fail.

Andrew Bartlett
(This used to be commit 3b9558e82f)
2007-10-10 13:19:25 -05:00
Andrew Bartlett
37cf22a39e r8249: Clarify (with a comment) why we are playing these games here.
Andrew Bartlett
(This used to be commit 33dcbe938d)
2007-10-10 13:19:25 -05:00
Andrew Bartlett
96ead1a02b r8248: Make these comments more accurate.
Andrew Bartlett
(This used to be commit 00e1cf7941)
2007-10-10 13:19:25 -05:00
Andrew Tridgell
bde98850be r8247: remove the free of fullname in nbtname.c for now.
Metze, the ndr_token_store() code is storing temporary pointers into
this string in the token list, which means we are referring to freed
memory when we scan the token list. A better key might be a pointer
into the ndr buffer?
(This used to be commit 6a4e8cc991)
2007-10-10 13:19:25 -05:00
Andrew Bartlett
5c87688051 r8246: Don't try and set the element after the end off the array to NULL.
Andrew Bartlett
(This used to be commit 44338b2852)
2007-10-10 13:19:25 -05:00