1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-29 21:47:30 +03:00

2323 Commits

Author SHA1 Message Date
Volker Lendecke
32cf16f3cf r11706: Implement dsr_getdcname client code. It's handy: It not only gives you the IP
address but also the fqdn of the remote dc and site info.

Volker
(This used to be commit 62d01ce7e6c14971084c208ab61f379cb172cb22)
2007-10-10 11:05:24 -05:00
Gerald Carter
9d9fe2d58d r11655: Two small fixes
* remove redundant call to sub_set_smb_name() in session setup code.
* Fix lockup when running 'wbinfo -t' on a Samba PDC.  Cause
  was new authenticated session setup from winbindd which
  resulted in a mangled username (machine_) that was not found
  in the local files and so was queiued up to nss_winbindd.
  Deadlock....
  So now make sure to keep the trailing '$' for machine account
  names when calling sub_set_smb_name().
(This used to be commit b0a2d43b603c2e230da6ada73587696605102e8f)
2007-10-10 11:05:23 -05:00
Jeremy Allison
4d8a77f1b3 r11614: Replace old crc32 code with one from the FreeBSD tree.
*  COPYRIGHT (C) 1986 Gary S. Brown.  You may use this program, or
 *  code or tables extracted from it, as desired without restriction.
Jeremy.
(This used to be commit 11c6b8ecd601ff2f6eaf184efeed8e39f54fdcf1)
2007-10-10 11:05:22 -05:00
Jeremy Allison
90230ac962 r11560: Fix core dump if setmntent returns NULL.
Pointed out by Jay Fanlason @ Red Hat.
Jeremy.
(This used to be commit e8136ae746b5be51b252d900aa732c8106fefcaf)
2007-10-10 11:05:20 -05:00
Jeremy Allison
4787311083 r11530: Add the "time offset" parameter back in for people who
might use it.
Jeremy.
(This used to be commit b745114423a482ea8cd1ea4f80ec3fc2a9caa971)
2007-10-10 11:05:19 -05:00
Jeremy Allison
6d5757395a r11511: A classic "friday night check-in" :-). This moves much
of the Samba4 timezone handling code back into Samba3.
Gets rid of "kludge-gmt" and removes the effectiveness
of the parameter "time offset" (I can add this back
in very easily if needed) - it's no longer being
looked at. I'm hoping this will fix the problems people
have been having with DST transitions. I'll start comprehensive
testing tomorrow, but for now all modifications are done.
Splits time get/set functions into srv_XXX and cli_XXX
as they need to look at different timezone offsets.
Get rid of much of the "efficiency" cruft that was
added to Samba back in the day when the C library
timezone handling functions were slow.
Jeremy.
(This used to be commit 414303bc0272f207046b471a0364fa296b67c1f8)
2007-10-10 11:05:19 -05:00
Jeremy Allison
9d4760d119 r11446: Remove unused fn. Remove unneeded strncpy use.
Jeremy.
(This used to be commit d202aae3c821f3d78ff063d867bac1f84dca3548)
2007-10-10 11:05:16 -05:00
Jeremy Allison
7f562a8f6f r11383: Patch from Alex Masterov <alex@infobit.ru> to fix
XATTR calls on *BSD systems (bug #3218).
Jeremy.
(This used to be commit 3d8faf42e854a720aca5c2e0a4682c85a3dfd365)
2007-10-10 11:05:14 -05:00
Jim McDonough
fc8292f381 r11230: Remove the '//' i was using to test something...oops
(This used to be commit cda5a81bbe52308a81a79eb0354aea63027a9701)
2007-10-10 11:05:08 -05:00
Jim McDonough
46c6d81a4a r11229: an even bigger speedup spotted by Volker. string_to_sid() is now taking 1/5th
the time it used to.  Replace strcasecmp with invididual char checks for
"S-" sid prefix.
(This used to be commit de3d0094b78cb20da7ed958e8d3a428583694309)
2007-10-10 11:05:07 -05:00
Jim McDonough
87d6e590f2 r11228: Speed up string_to_sid by removing next_token calls, thus eliminating
the need for allocating memory to duplicate the string.
(This used to be commit e5cc94f13ff2dacb219c8a56fa13853d620ecda6)
2007-10-10 11:05:07 -05:00
Jeremy Allison
bb9e7dd104 r11159: Added some const to fix warnings.
Jeremy.
(This used to be commit de27b0eef2eb021f28e8bf300c4dd524e30fc7ed)
2007-10-10 11:05:04 -05:00
Jeremy Allison
3bbad5ec3d r11156: Remove valgrind disabling ifdef that got added by mistake.
Jeremy.
(This used to be commit fc9eca51e02022ccffbad2a4f2450f85e558e151)
2007-10-10 11:05:03 -05:00
Jeremy Allison
8d7c886671 r11137: Compile with only 2 warnings (I'm still working on that code) on a gcc4
x86_64 box.
Jeremy.
(This used to be commit d720867a788c735e56d53d63265255830ec21208)
2007-10-10 11:05:02 -05:00
Günther Deschner
e2b4d0ad75 r10976: Fix the build with openssl-0.9.8a.
Guenther
(This used to be commit 081409a724fce1f6e6f29bfcc824fd3f5ec6d9ff)
2007-10-10 11:04:58 -05:00
Stefan Metzmacher
1bd3cbd312 r10962: fix setting of quotas on linux kernel with the
struct if_dqblk interface

metze
(This used to be commit 1eafe33c887194d828d685ac8677469917b6c419)
2007-10-10 11:04:58 -05:00
Jeremy Allison
f1ece089ca r10730: Janitor for tridge on the "fix to talloc_parent() from Michael O'Brien".
Jeremy.
(This used to be commit 2f3750d95b75b186771cab13b842c91bd7926df1)
2007-10-10 11:04:51 -05:00
Volker Lendecke
79e167543f r10674: We no do define timeval_current
(This used to be commit c80e5ce1103a4c8f17120ecf715d962cfa532f22)
2007-10-10 11:04:50 -05:00
Gerald Carter
54abd2aa66 r10656: BIG merge from trunk. Features not copied over
* \PIPE\unixinfo
* winbindd's {group,alias}membership new functions
* winbindd's lookupsids() functionality
* swat (trunk changes to be reverted as per discussion with Deryck)
(This used to be commit 939c3cb5d78e3a2236209b296aa8aba8bdce32d3)
2007-10-10 11:04:48 -05:00
Gerald Carter
dbbaccc2c0 r10606: pdb_*sql patches from
Uli Meis <a.sporto@gmail.com>
Peter Rindfuss <rindfuss@wz-berlin.de>
(This used to be commit 8bf124adaf4d6cacc18ebca82d96eabe47088151)
2007-10-10 11:04:48 -05:00
Gerald Carter
963351f59d r10454: * prevent privilege code from storing an empty SID
(and filter it out if one is already there)
* Fix LUID value match in privilege_set_to_se_priv()
  (fix jmcd's bug report).
(This used to be commit 356334264f5cd3a2480c3288ec40e0ee63264e1b)
2007-10-10 11:03:42 -05:00
Jeremy Allison
418e92d06d r10234: Add new auth module "auth_script" to allow valid users to
be provisioned on demand - calls script with domain,
username, challenge and LM and NT responses - passing
the info through a pipe.
Jeremy.
(This used to be commit 67be4ee41cd244bcc0445cac7c9e1e2d40e93c9b)
2007-10-10 11:03:38 -05:00
Stefan Metzmacher
e80d6cba61 r10163: try to fix the build on fedora 4, when --with-quota is not used
(to actually fix the quotas, more work is needed)

metze
(This used to be commit ff82c247c5bf4093723e4ce702a4afe38257a31b)
2007-10-10 11:03:35 -05:00
Gerald Carter
99c909c2fa r9998: starting content for maintainers file
(This used to be commit 554c22faeefe6932a01aa7bd6e2861c5abd37510)
2007-10-10 11:03:30 -05:00
Günther Deschner
f28bdc61f4 r9953: get rid of compiler warning.
Guenther
(This used to be commit d4698acd5039dec0a375bb2841d02a2e305ded74)
2007-10-10 11:03:29 -05:00
Günther Deschner
e722cb25d8 r9952: Adapt better to the Windows way of taking and assigning ownership:
* Users with SeRestorePrivilege may chown files to anyone (be it as a
backup software or directly using the ownership-tab in the security
acl editor on xp), while

* Users with SeTakeOwnershipPrivilege only can chown to themselves.

Simo, Jeremy. I think this is correct now.

Guenther
(This used to be commit 1ef7a192eed457d302a08c692bb54a73a1af4afd)
2007-10-10 11:03:29 -05:00
James Peach
8c072021ef r9780: Clean up a bunch of compiler warnings.
(This used to be commit 623d2e69319ffead31a780a4d6156dae45f386d7)
2007-10-10 11:03:26 -05:00
Volker Lendecke
56fd626fe7 r9619: Fix messages_pending_for_pid actually do what it's meant to do. This might be
a big relief on messages.tdb contention as ignoring processes with >1000
messages in printing/notify.c should work correctly now.

Jeremy, Jerry told me to ask you about printer scalability torture tests, this
might be a reason why you implemented the message_send_pid_with_timeout
using the signal (shudder) in the first place. :-)

While looking at that... Wouldn't it be better to not use the signal but have
an overall timeout for print_notify_send_messages using GetTimeOfDay & friends
and not use the alarm signal deep inside tdb.c?

Volker
(This used to be commit b5e82bb512d3425839e061e78f4d6fe0bd05b708)
2007-10-10 11:03:23 -05:00
Jeremy Allison
b67ba1e36b r9545: (Hopefully the last) fixes for DIR -> SMB_STRUCT_DIR.
Jeremy.
(This used to be commit b242f278601e1a23c9116009482e802326d418f7)
2007-10-10 11:01:12 -05:00
Jeremy Allison
b07bc6b661 r9536: Fix one more DIR -> SMB_STRUCT_DIR typo.
Jeremy.
(This used to be commit c5b79a6709a1333d1d69d9216620b1f06fdfd5d3)
2007-10-10 11:01:12 -05:00
Jeremy Allison
f98f86394a r9483: Changed DIR to SMB_STRUCT_DIR because of the amazing stupidity of a UNIX vendor
not understanding abstract data types :-(.
Jeremy.
(This used to be commit be5b4e2fa3ed30b0ff01b47d2354e5f782a12e25)
2007-10-10 11:01:11 -05:00
John Terpstra
e906c370e5 r9353: Updating troublshooting error message.
(This used to be commit 7744de8ead6aef67278368e407dd1db8b9437348)
2007-10-10 11:00:33 -05:00
Jeremy Allison
5cb0c45cba r9325: Remember to ignore FILE_SHARE_DELETE when mapping to old share
modes for display.
Jeremy.
(This used to be commit f00d41a9dcd03033c59a399090058c76b5ce14c1)
2007-10-10 11:00:33 -05:00
Jeremy Allison
e04754b295 r9282: Whitespace.
Jeremy.
(This used to be commit 183a4705114da7c3662b71405457123ce35b5358)
2007-10-10 11:00:31 -05:00
Jeremy Allison
e4edd95275 r9271: Fix problems with german umlauts - strcmp_w was broken (needs to always re-call macro
on termination). Fix all other cases where this was also occurring.
Jeremy.
(This used to be commit 816e2fbb39b544b7f62d5351f3a8e0af63717227)
2007-10-10 11:00:29 -05:00
James Peach
1f666a2556 r9203: Bugzilla bug #2314. Cast away the const of the dev argument to quotactl to
remove the compiler warning. This is safe since quotactl doesn't modify the dev
argument.
(This used to be commit ec4ea17ce603a22db11d658512f125948e604a02)
2007-10-10 11:00:28 -05:00
Volker Lendecke
a389bf7ae5 r9201: Ouch.... :-(
(This used to be commit c78760d71ec6a364a912ba35e8a90f8005fdc018)
2007-10-10 11:00:28 -05:00
Volker Lendecke
db8c38340b r9198: Convert hex_encode and strhex_to_data_blob to take a talloc context.
Volker
(This used to be commit c7d10e2c834d8d5136e2d01dea1ad286757deddb)
2007-10-10 11:00:27 -05:00
Günther Deschner
1431a6030d r9029: Another crash bug when enumerating privileges.
Thanks Volker!

Guenther
(This used to be commit e59c7c76d7ce52c7e16c4978c017636383ec57a5)
2007-10-10 11:00:23 -05:00
Jelmer Vernooij
08ebcb0941 r8961: Merge IRIX fix for socket wrapper
(This used to be commit bd49c3133988300969e64a20c6c85fff768b985b)
2007-10-10 11:00:22 -05:00
Tim Potter
311cf22a2e r8946: Some casts to fix warnings when time_t is an unsigned type. Fixes
bugzilla #1888 and #1894.
(This used to be commit dcc74371388d280d8ee5130a04e1594ae88d19b3)
2007-10-10 11:00:22 -05:00
Jeremy Allison
6e98a3c999 r8928: Fix mangle method = hash - bugid #2946. Incorrect strcmp_wa and
strncmp_wa.
Jeremy.
(This used to be commit 604c1b239bca316f7afaf76b1a586c638f3a2562)
2007-10-10 11:00:20 -05:00
Gerald Carter
14a9d52832 r8899: various compiler warning fixes reported by Jason Mader <jason@ncac.gwu.edu>
(This used to be commit d8ae9f2b3e5387ef2c4e84cd9c33f4a7c795b0d3)
2007-10-10 11:00:19 -05:00
Jeremy Allison
7aa9f973f2 r8892: Fix #2942 - missing value in debug ! Doh !
Jeremy.
(This used to be commit 8bb12c66d37a1cfbd3069cdba408cc051e84112a)
2007-10-10 11:00:19 -05:00
Gerald Carter
754b05a3e8 r8795: fix our perpetual motion maching in strncpy_w()
(This used to be commit 3228e93ef2beda6f3551b2630e48db18bafd2e20)
2007-10-10 11:00:17 -05:00
Jeremy Allison
7fb9e6a860 r8762: Attempt to fix the winbindd crashing bug on Solaris (can't remember
the bugid). Make the functions in lib/util_unistr.c odd-alignment
safe using some evil macros. Needs testing on bigendian.
Jeremy.
(This used to be commit 871c647bc3ee465e613cba260d9cd7e66e47b68a)
2007-10-10 11:00:16 -05:00
Jeremy Allison
bf30861566 r8757: Add debug messages so we can see what attributes and values are being
set/deleted/modified in an ldap query.
Jeremy.
(This used to be commit 813207205436ba4ebd2148285f937c05be8ffd22)
2007-10-10 11:00:16 -05:00
Gerald Carter
c03f6b32a3 r8716: adding 'username map script' which if defined takes precendence over
the username map file.
(This used to be commit 46f2897fdc1f9308f2cc15834c8b039c17c34707)
2007-10-10 11:00:15 -05:00
Jeremy Allison
07a4d4f114 r8704: Patch from Timur Bakeyev <timur@com.bat.ru> to fix typo
calling wrong aio_fsync function. Bugid #2909.
Jeremy.
(This used to be commit 6ea3aadd6630a62d52a9a6e09995b57f55e60d41)
2007-10-10 11:00:15 -05:00
Günther Deschner
0b98400cc0 r8686: Revert %LOGONSERVER%-substitution. The substition is done on the client,
not on the server.

We now preserve this windows variable (important for vampired setups)
and correctly substitute only the "%L"s in strings like:

        "%LOGONSERVER% %L %lOgOnSeRvEr% %L".

Guenther
(This used to be commit dccf777f42ce1d3f788548842fb8a606bed5708c)
2007-10-10 11:00:15 -05:00