1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-04 08:23:50 +03:00
Commit Graph

2486 Commits

Author SHA1 Message Date
Stefan Metzmacher
65013a8d9e r18673: define the macros even if we don't define bool ourself
metze
2007-10-10 12:00:46 -05:00
Stefan Metzmacher
6c101d2068 r18672: fix the build on Tru64
metze
2007-10-10 12:00:46 -05:00
Stefan Metzmacher
5a589bb16c r18671: try to fix the build on solaris 10 and maybe some other hosts
we need to define 'BOOL_DEFINED' to make sure it didn't get redefined
by <rpcsvc/yp_prot.h>

metze
2007-10-10 12:00:46 -05:00
Stefan Metzmacher
6b53ed8fdc r18669: fix the samba3 build...
we need to move the iconv configure checks to libreplace...

metze
2007-10-10 12:00:45 -05:00
Volker Lendecke
6004b8025d r18661: C++ warnings 2007-10-10 11:52:20 -05:00
Jelmer Vernooij
5de76767e8 r18654: Rename "struct uuid" => "struct GUID" for consistency. 2007-10-10 11:52:19 -05:00
Stefan Metzmacher
9f3599a7ca r18652: libreplace has replacements for strndup and strnlen
metze
2007-10-10 11:52:19 -05:00
Stefan Metzmacher
dd76f4f5f3 r18649: the PRINTF_ATTRIUTE() macro is provided by libreplace
metze
2007-10-10 11:52:19 -05:00
Stefan Metzmacher
d4d9b7e026 r18646: now we can have the socket_wrapper.c completely in sync with samba4
metze
2007-10-10 11:52:18 -05:00
Stefan Metzmacher
596cbe73dd r18644: bring in libreplace in lib/replace
metze
2007-10-10 11:52:03 -05:00
Stefan Metzmacher
9c0e5b29f1 r18640: move to socket_wrapper to lib/socket_wrapper/
and sync it with samba4

metze
2007-10-10 11:52:03 -05:00
Stefan Metzmacher
2f58645b70 r18605: sync dlinklist.h with samba4, that means DLIST_ADD_END()
and DLIST_DEMOTE() now take the type of the tmp pointer
not the tmp pointer itself anymore.

metze
2007-10-10 11:51:59 -05:00
Volker Lendecke
528082aed8 r18597: A C++ warning 2007-10-10 11:51:57 -05:00
Simo Sorce
6c9b80bde3 r18534: Fix grammar 2007-10-10 11:51:48 -05:00
Simo Sorce
8c5c4959ed r18530: typos 2007-10-10 11:51:48 -05:00
Simo Sorce
85126391e1 r18529: warn the user that putting the machine host name on the
127.0.0.1 line in /etc/hosts is not ok for Kerberos.
2007-10-10 11:51:47 -05:00
Jeremy Allison
6dc8f9042f r18473: Once we go online, trigger a "get krb5 ticket event"
immediately if we were waiting on one.
Jeremy.
2007-10-10 11:51:43 -05:00
Volker Lendecke
cafaf5a37c r18457: Argl :-) 2007-10-10 11:51:42 -05:00
Volker Lendecke
f8346687d9 r18449: Attempt to fix the build on non-linux platforms: Many of those don't have
strtoull. This is a copy of the stuff in samba4 libreplace, which is GPL. I
hope it is ok to copy&paste it into a GPL file. Tridge, we could also create a
replace_lpgl.c if needed.

Volker
2007-10-10 11:51:42 -05:00
Volker Lendecke
fa8b2e2a58 r18313: Nobody said "no" (yet.... gd?), so commit it:
Remove the account_policy_migrated() thingy, and make cache_account_policy_set
use gencache. Account policies are now handled like groups and users are with
respect to "passdb backend".

Volker
2007-10-10 11:51:19 -05:00
Volker Lendecke
554e68887b r18312: Change gencache_get slightly: Delete expired keys, and only strdup the value
if a valid entry was found. The newer calls got the latter one wrong, change
the older calls.

Volker
2007-10-10 11:51:19 -05:00
Volker Lendecke
f6497adac6 r18311: Simplify gencache_get by using strtol instead of sscanf 2007-10-10 11:51:19 -05:00
Volker Lendecke
651e7e44e2 r18310: Add a little test for some gencache routines
Remove unused gencache_set_only
Use CONST_DISCARD instead of SMB_STRDUP

Volker
2007-10-10 11:51:19 -05:00
Gerald Carter
3da9f80c28 r18271: Big change:
* autogenerate lsa ndr code
* rename 'enum SID_NAME_USE' to 'enum lsa_SidType'
* merge a log more security descriptor functions from
  gen_ndr/ndr_security.c in SAMBA_4_0

The most embarassing thing is the "#define strlen_m strlen"
We need a real implementation in SAMBA_3_0 which I'll work on
after this code is in.
2007-10-10 11:51:18 -05:00
Jeremy Allison
7bfbe1b4fb r18191: Fix the online/offline state handling of winbindd.
Instead of trying to do this in the winbindd_cache
entries, add a timed even handler to probe every
5 mins when disconnected.
Fix events to run all pending events, rather than
only one.
Jeremy.
2007-10-10 11:43:57 -05:00
Jelmer Vernooij
1115745cae r18188: merge 3.0-libndr branch 2007-10-10 11:43:56 -05:00
Gerald Carter
7d5356fd5d r18182: only grant privs to Administrators if privileges are enabled to avoid bopgus error messages 2007-10-10 11:43:30 -05:00
Stefan Metzmacher
027c7964ee r18099: merge from samba4 to make tcc happy as the same struct name was used in multiple
places and that only works if they're all in a local scope

metze
2007-10-10 11:43:28 -05:00
Volker Lendecke
44105ff2ff r18066: It's a bit pointless to send ourselves a signal just to check if we exist :-)
Volker
2007-10-10 11:43:25 -05:00
Simo Sorce
e4e31e5f0f r18049: Backport SAMBA_4_0 snprintf changes 2007-10-10 11:43:24 -05:00
Volker Lendecke
20fcce5ceb r18048: More nested structures 2007-10-10 11:43:24 -05:00
Volker Lendecke
089b51e28c r18029: More C++ stuff 2007-10-10 11:43:23 -05:00
Volker Lendecke
54706285f7 r18027: Fix some 64-bit warnings 2007-10-10 11:39:49 -05:00
Volker Lendecke
8e087b7e46 r18016: OpenBSD apparently does not have ENOTSUP 2007-10-10 11:39:49 -05:00
Derrell Lipman
8e119b64f1 r18009: Fixes bug 4026.
This completes the work Jeremy began last week, disambiguating the meaning of
c_time.  (In POSIX terminology, c_time means "status Change time", not "create
time".)  All uses of c_time, a_time and m_time have now been replaced with
change_time, access_time, and write_time, and when creation time is intended,
create_time is used.

Additionally, the capability of setting and retrieving the create time have
been added to the smbc_setxattr() and smbc_getxattr() functions.  An example
of setting all four times can be seen with the program

  examples/libsmbclient/testacl

with the following command line similar to:

  testacl -f -S "system.*:CREATE_TIME:1000000000,ACCESS_TIME:1000000060,WRITE_TIME:1000000120,CHANGE_TIME:1000000180" 'smb://server/share/testfile.txt'

The -f option turns on the new mode which uses full time names in the
attribute specification (e.g. ACCESS_TIME vs A_TIME).
2007-10-10 11:39:47 -05:00
Stefan Metzmacher
69a7a83b10 r17959: sync with samba4
metze
2007-10-10 11:39:44 -05:00
Stefan Metzmacher
f862195efd r17951: sync talloctort.c with samba4
metze
2007-10-10 11:39:44 -05:00
Stefan Metzmacher
8eff478742 r17949: change the comment, talloc_enable_null_tracking() should
stay here.

metze
2007-10-10 11:39:43 -05:00
Jeremy Allison
ab3f0c5b1e r17928: Implement the basic store for CLDAP sitename
support when looking up DC's. On every CLDAP
call store the returned client sitename (if
present, delete store if not) in gencache with
infinate timeout. On AD DNS DC lookup, try looking
for sitename DC's first, only try generic if
sitename DNS lookup failed.
I still haven't figured out yet how to ensure
we fetch the sitename with a CLDAP query before
doing the generic DC list lookup. This code is
difficult to understand. I'll do some experiments
and backtraces tomorrow to try and work out where
to force a CLDAP site query first.
Jeremy.
2007-10-10 11:38:59 -05:00
Volker Lendecke
70edd716ef r17924: Get rid of warnings now that talloc is merged.
Destructors now take a pointer to the "real" destroyed object as an argument.

Volker
2007-10-10 11:38:59 -05:00
Stefan Metzmacher
ae313ab4ca r17923: turn on null_tracking with the first talloc_init() call,
(this needs to be moved to a samba3 specific place)

I commit this because I habe no time to test smbcontrol .... pool-usage
and don't want to break it. I'll try to find a better fix tomorrow.

metze
2007-10-10 11:38:59 -05:00
Stefan Metzmacher
7704e3e51d r17922: sync samba3's talloc with samba4's and move the samba3 specific stuff to tallocmsg.c
metze
2007-10-10 11:38:59 -05:00
Volker Lendecke
b9227bde13 r17906: Port the snprintf bugfix from 4. I wonder why we never hit this.... 2007-10-10 11:38:58 -05:00
Jeremy Allison
2a73e82f96 r17869: More sensible fix for Stanford Checker null deref.
Jeremy.
2007-10-10 11:38:55 -05:00
Jeremy Allison
84e8cc0593 r17866: Fix possible null deref - found by Stanford checker.
Jeremy.
2007-10-10 11:38:55 -05:00
Jeremy Allison
7d3b11ab18 r17865: Fix what the Stanford checker reported as a possible
deref. I think this is a false positive, but it's
an easy extra check to add here.
Jeremy.
2007-10-10 11:38:55 -05:00
Jeremy Allison
cfd39c2804 r17862: Fix possible NULL deref (like rev 17861) found by the
Stanford group.
Jeremy.
2007-10-10 11:38:54 -05:00
Jeremy Allison
63b13d2879 r17834: Another bug found by Volker's tests in the build farm !
Correctly map large nt timevals to TIME_T_MAX.
Jeremy.
2007-10-10 11:38:52 -05:00
Volker Lendecke
872d1299eb r17831: Attempt to fix the build farm: 0x7fffffffffffffff needs special casing too I
think. This broke 'make test' because the newly created user was set to be
kicked off Mi, 22 Jan 1975 23:55:33 CET (unix time 159663333) with the
setuserinfo21 call.

I'm not 100% sure that 0x7ff... means max time as I do it here, I vaguely
remember it to mean "don't touch".

Does anybody know that for sure?

Jeremy, please check this.

Thanks,

Volker
2007-10-10 11:38:52 -05:00
Jeremy Allison
ead75870d5 r17818: Fixup uint64 time calc. NT time is a 64 bit number,
not high value seconds, low value 100ns units.
Jeremy.
2007-10-10 11:38:52 -05:00