1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00

1166 Commits

Author SHA1 Message Date
Andrew Tridgell
a8d51f8762 r9390: fixed mixing of code and data
(This used to be commit ae2122e76a7e50435dafcc412ee425b522c0c766)
2007-10-10 13:33:32 -05:00
Andrew Tridgell
6195932b42 r9387: regedit uses "New Key #nn" for newly created keys, which conflicts with the stricter
DN rules in ldb. Escape the DN components to cope.

Simo, sorry for making a change in ldb_dn.c while you have changes
pending. Please feel free to revert these and switch reg_backend_ldb.c
to use the new dn construction code.
(This used to be commit 136ecf5cb23758558b4119b08047fc273be8b0f8)
2007-10-10 13:33:31 -05:00
Andrew Tridgell
6c1dde71f4 r9386: OpenKey with a bad name must return WERR_BADFILE (w2k3 regedit relies on this)
(This used to be commit ae42976590b3c532790d854be45fff49074aef68)
2007-10-10 13:33:31 -05:00
Tim Potter
09085941d1 r9381: Line wrapping.
(This used to be commit 2cebdd59387786c8aeee4c6757e38ed5303f7315)
2007-10-10 13:33:30 -05:00
Andrew Tridgell
20b6f0a11b r9378: initialise the last_mod attribute in the ldb backend. Better to return
0 than an uninitialised value, but we should put proper last_modified
time support into the ldb winreg backend in the future
(This used to be commit 899bf07908d4a04cb3d1cd4034dca0c91e6a912b)
2007-10-10 13:33:30 -05:00
Andrew Tridgell
3f260e2efe r9374: HPUX is also missing setegid()
(This used to be commit 57e6bd61395e82064c72510dcc326b11b7bdf7fd)
2007-10-10 13:33:29 -05:00
Andrew Tridgell
4e21575ed2 r9370: need a configure test for setresuid()
(This used to be commit 5a38b9a10b3c5363cddc7acaaea2e1e9aceb254c)
2007-10-10 13:33:28 -05:00
Andrew Tridgell
5d899b8a35 r9369: an attempt to fix the build on HPUX. This is based on work by Don
McCall, but takes a slightly different approach that I hope will be
more generic
(This used to be commit e8260a81cf99be2ccae64135ca0572c8a6ae62ad)
2007-10-10 13:33:28 -05:00
Tim Potter
878e139f09 r9357: Remove DBGC_CLASS cruft copied over from Samba 3. I would like to
replace this with something funkier.
(This used to be commit 8d376d56c78894b9bbd27ed7fa70da415c0cd038)
2007-10-10 13:33:27 -05:00
Andrew Tridgell
9fffd12799 r9338: fixed the winreg IDL to be correct for the EnumKey and EnumValue
calls. The previous IDL was just a workaround for the limitations of
our older rpc infrastructure. Now that Jelmer has added much improved
string support using the charset keyword we can correctly implemenent
the unusual winreg string buffers.

Jelmer, note the little comment I put on winreg_StringBuf() about why
I couldn't use [value()] for the length field.

This also fixes EnumKey() and EnumValue() to use NTTIME fields for the
last_changed_time. I don't know why we were using a pair of uint32's,
as it is just a NTTIME.
(This used to be commit 8354b016122cc4f3cff042b3ada1de07e1614eb7)
2007-10-10 13:33:25 -05:00
Stefan Metzmacher
8609e79932 r9318: fix searches with scope ONE and SUB,
the problem was that ldb_dn_compare_base() just looked at if
both dn's mtach some how, and the following happens:

basedn: CN=bar,DC=foo,DC=com
dn: DC=foo,DC=com

and dn: DC=foo,DC=com was return as result of a sub and base search

and also the ONE search with
basedn: DC=foo,DC=com

returned this

dn: CN=bla,CN=bar,DC=foo,DC=com

metze
(This used to be commit 2a107472c373e425013050e28b944c830f653a87)
2007-10-10 13:33:23 -05:00
Steve French
56aadf82af r9311: Missing null pointer check in ejsLib
Found by coverity
(This used to be commit ae7b073af3d690275dbfa11c8406963702c57d3b)
2007-10-10 13:33:23 -05:00
Andrew Tridgell
1774019fc2 r9299: fixed the evaluation of pointer expressions that evaluate to boolean
(This used to be commit 17679676d4629ac81116ae1b102f1a311b5d4eed)
2007-10-10 13:33:22 -05:00
Andrew Tridgell
a689b968b6 r9209: - fixed the ldb registry backend to work with the new provision ldif
- default to ldb backend if none specified
(This used to be commit 8c3f57f7917efceb11b3b6a2ac76ec44968fbfb6)
2007-10-10 13:31:31 -05:00
Andrew Tridgell
a663d21106 r9183: more workarounds for the global variables in ejs. I will discuss getting rid of these
with the mbedthis people.
(This used to be commit a5b9e74a5c23e724ae4ee222e6f128133b175494)
2007-10-10 13:31:29 -05:00
Andrew Tridgell
f13fbd7e6f r9173: catch ep->local being NULL
(This used to be commit 9f75bc3ca061abbfeb6ac9fc60834b8c1f6e2c4d)
2007-10-10 13:31:28 -05:00
Andrew Tridgell
f9e0b8aca5 r9172: - fixed a nasty bug in the 'deep copy' mpr code that caused variables
called 'credentials' to not copy correctly (the bug was in handling
  of chaining in the copy code

- ensure that C pointer variables are copied via a talloc reference so that
  we can persist rpc pipes and credentials between sessions
(This used to be commit ca6f049693f8bfe69d5c7533b2cc92221d0cf6d4)
2007-10-10 13:31:27 -05:00
Stefan Metzmacher
0bbe88c859 r9110: use printf again
metyze
(This used to be commit 99537d35cb7c2561a7ce47ac7ad602496afe3475)
2007-10-10 13:31:17 -05:00
Stefan Metzmacher
224a2a62b5 r9106: look for something more usefull in the -lnsl
(this is for solaris)

metze
(This used to be commit f37bb2a838b83e70d50a0ed036e641ced16d8a7b)
2007-10-10 13:31:17 -05:00
Stefan Metzmacher
6243e2a304 r9078: - move charset stuff to lib/charset
- don't use the global $LIBS variable for -liconv as $LIBS is not used anymore

should fix the build on solaris 10

metze
(This used to be commit 69ade058fde8e4cc62e4830c0b080e720d8e581d)
2007-10-10 13:31:14 -05:00
Stefan Metzmacher
56c112bbbc r9063: - don't pollute the global $LIBS variable with -ldl
- -lresolve seems to not being needed any more
  (it's actually not used, and the build farm seem to happy with it)

- move socket and netif configure test to seperate files
- don't pollute the global $LIBS variable with -lsocket ...
- actually make use of the -lsocket when needed
  (should fix the solaris build)

metze
(This used to be commit adebd56be6f62323d56b6666ca0e02f85a33438e)
2007-10-10 13:31:13 -05:00
Jelmer Vernooij
7facdcc161 r8985: Automatically generate make dependency rules for
the asn1 and error table files.

This removes the need for HEIMDAL_EXTERNAL
(This used to be commit 2f481ac93c0151b82dab737d49ae8d0d3cbbbbbe)
2007-10-10 13:31:04 -05:00
Jelmer Vernooij
88632d832f r8972: More simplifications...
(This used to be commit d89caeb8004c5cfabc934c8efa899a6d1839d250)
2007-10-10 13:31:01 -05:00
Jelmer Vernooij
9f611ffdde r8966: Simplify the makefile generation system a bit.
Autogenerate list of binaries (rather then having them hardcoded in build/smb_build/makefile.pm)
Add INSTALLDIR keyword to .mk files
(This used to be commit ce0935112b846486cf705ec69f12350be9c4c89d)
2007-10-10 13:31:00 -05:00
Jelmer Vernooij
f30eba5222 r8940: Add TDR (Trivial Data Representation). The aim is to use this later for
NBT/WINS/etc rather then having to depend on NDR.
(This used to be commit 5ee7af26dd220de06f1764cd1683abedeeda5131)
2007-10-10 13:30:59 -05:00
Andrew Tridgell
08b2b7e3e1 r8923: put the IRPC default timeout back to 10s (I didn't mean to commit this, it was
changed just for deugging)
(This used to be commit a7c260e61feec210bcb5cad0f8f759544dc9dd1e)
2007-10-10 13:30:58 -05:00
Simo Sorce
f297f82398 r8917: Better support for extended ldap search operations
Try to follow the RFC where possible and adapt to
  openLdap and AD way of handling this structure
(This used to be commit d844d45d87b4114bc1b9af2e40f8c27ba3e219de)
2007-10-10 13:30:57 -05:00
Andrew Tridgell
6e64a8b40f r8905: don't try to do DNS lookups on interface names with wildcards
(This used to be commit bbdd446254a0e66af3326e2e66d568eeee0922c0)
2007-10-10 13:30:17 -05:00
Andrew Tridgell
fc58570940 r8887: fixed the irpc error that caused ia64 to fail the LOCAL-IRPC test
(This used to be commit ce9a262d379b946717d0d4be4731c837e6f7373d)
2007-10-10 13:30:15 -05:00
Volker Lendecke
6f0e5b5953 r8886: Exchange the arguments of timeval_compare, this makes it behave like strcmp.
Volker
(This used to be commit 6f5bd7602155413029de32295d2639c4073ad4d8)
2007-10-10 13:30:15 -05:00
Volker Lendecke
66c270ba52 r8883: Apply some const.
Volker
(This used to be commit ccbb64e2670eab921bc50b8f2dbf0b274c0b8750)
2007-10-10 13:30:15 -05:00
Volker Lendecke
5bddfe7a1a r8875: Rename timeval_diff to timeval_until and revert the arguments. timeval_diff is
not strictly a subtraction function, there can't be negative timevals.

Volker
(This used to be commit 525d75dd24f6a8810f1ed2043d170c70b060f1f0)
2007-10-10 13:30:14 -05:00
Jelmer Vernooij
930e624d81 r8826: Make configure generate config.mk files (with the external libraries
that were found) and a config.pm file (with all substitution variables)
(This used to be commit 52bb1374bbcfc9b9a6d098687bafe9021a1ee858)
2007-10-10 13:30:09 -05:00
Andrew Tridgell
ba759b4c86 r8819: fixed a memory leak in irpc_call()
(This used to be commit 25b7524ce5029eadd48c3046297ca6bd3260b013)
2007-10-10 13:30:08 -05:00
Rafal Szczesniak
ebb76f84ad r8810: Fix missing headers. Still doesn't fix the build but getting closer there.
rafal
(This used to be commit bc638cc3d66525cf91ef76eb0c486542fff2b929)
2007-10-10 13:30:07 -05:00
Simo Sorce
768585b1dd r8779: Add rdn module to makefile and headers
Search by distinguishedName as if searching by dn
(This used to be commit 1d4046136255aead319ab08da229146dbd285b38)
2007-10-10 13:30:04 -05:00
Andrew Tridgell
dc4af82432 r8750: drat, on some systems dirfd() is a macro
(This used to be commit d974bf3589e1b0cd1d5661a21571b81e99350709)
2007-10-10 13:30:02 -05:00
Andrew Tridgell
ecc691041c r8749: for completeness, add rewinddir() and dirfd()
(This used to be commit ce022e40908dabad41de276941d2ee7a5739aea4)
2007-10-10 13:30:02 -05:00
Andrew Tridgell
616ea8deb4 r8747: remove unused code
(This used to be commit 60a07da59dfe6dd89f01c6fb494debeda1a1984d)
2007-10-10 13:30:01 -05:00
Andrew Tridgell
f92c000fc9 r8746: replace opendir/readdir/telldir/seekdir/closedir on systems where they
are broken (apparently all BSD systems). This breakage leads to unlink
on files in an open directory causing a later seekdir to miss
files. The bug happens due to a block boundary bug in the BSD libc
implementation of these calls.

This replacement code also fixes a severe memory usage problem with
telldir that can cause closedir() to take an arbitrary amount of time.

I have reported the bug in readdir to Greg Lehey (a FreeBSD maintainer)
(This used to be commit e1bf7c4279fbc03a52497d24cea375e75059cba1)
2007-10-10 13:30:01 -05:00
Andrew Bartlett
a7f9d9c5b8 r8740: Extend the rdn_name module to handle adding the rdn as an attribute. ie:
dn: cn=foo,ou=bar
objectClass: person

implies

dn: cn=foo,ou=bar
objectClass: person
cn: foo
(as well as a pile more default attributes)

We also correct the case in the attirbute to match that in the DN
(win2k3 behaviour) and I have a testsuite (in ejs) to prove it.

This module also found a bug in our provision.ldif, so and reduces
code complexity in the samdb module.

Andrew Bartlett
(This used to be commit 0cc58f5c3cce12341ad0f7a90cdd85a3fab786b3)
2007-10-10 13:30:00 -05:00
Andrew Tridgell
79cac4b6e2 r8736: this fixes the ldb speed (raises BENCH-WINS from 15 ops/sec to over 4000)
simo, we need to be careful to cope with this sort of direct dn query efficiently
(This used to be commit 7b37923b726752101062fa8a92d3f96e41d55602)
2007-10-10 13:30:00 -05:00
Andrew Tridgell
0edd0f43c0 r8710: another attempt at fixing HPUX
(This used to be commit eb3b3c8b407b2208291385539c3379f0420a448e)
2007-10-10 13:29:56 -05:00
Andrew Tridgell
355c169989 r8703: cope with null string in interpret_addr()
(This used to be commit ff156f7aae29045edd898635d16d141b3e848f3f)
2007-10-10 13:29:56 -05:00
Andrew Tridgell
fe6eeeb601 r8698: attempt to cope with lack of strtoull() on HPUX
(This used to be commit c84c516b179fcbbcdb36c0c0aa4ffb4ff12f2c35)
2007-10-10 13:29:55 -05:00
Andrew Tridgell
d55b75d833 r8696: fixed ejs to more strictly follow the va_list rules. Might fix that
pesky panic on x86_64
(This used to be commit 80177b29f4b32996d41a87df041c4c1bfb6876c2)
2007-10-10 13:29:55 -05:00
Andrew Tridgell
2a65d17e06 r8685: an alpha in the build farm is dying with a floating point
exception. Catch these in out fault handler, so we get a backtrace
(This used to be commit 802724cf69e65a07202f3399a4321a35c2f3c018)
2007-10-10 13:29:54 -05:00
Andrew Tridgell
04598d3832 r8684: this should fix the panic on x86_64, and possibly alpha
(This used to be commit c2f5884e2f8a033446467384b6c058567b2fb9ce)
2007-10-10 13:29:54 -05:00
Andrew Tridgell
5086945689 r8681: if SOCKET_WRAPPER_DIR starts with ./ then strip it internally. This saves us 2 more chars
in the name, which is enough to get IRIX 6.4 working
(This used to be commit e6d9cde482ad9f3fa91d9ce3638e2ec6530b3a9c)
2007-10-10 13:29:54 -05:00
Andrew Tridgell
87e2396be9 r8679: only call fault setup once (thanks to andrew for pointing this out)
(This used to be commit f8a2b032a70dd63f4454b982d00168dcf6793202)
2007-10-10 13:29:53 -05:00