summaryrefslogtreecommitdiffstats
path: root/source/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* r18310: Add a little test for some gencache routinesVolker Lendecke2007-10-101-67/+7
| | | | | | | Remove unused gencache_set_only Use CONST_DISCARD instead of SMB_STRDUP Volker
* r18271: Big change:Gerald Carter2007-10-101-2/+2
| | | | | | | | | | | * 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.
* r18191: Fix the online/offline state handling of winbindd.Jeremy Allison2007-10-101-17/+14
| | | | | | | | | 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.
* r18188: merge 3.0-libndr branchJelmer Vernooij2007-10-101-848/+838
|
* r18182: only grant privs to Administrators if privileges are enabled to ↵Gerald Carter2007-10-101-2/+5
| | | | avoid bopgus error messages
* r18099: merge from samba4 to make tcc happy as the same struct name was used ↵Stefan Metzmacher2007-10-101-11/+7
| | | | | | | | in multiple places and that only works if they're all in a local scope metze
* r18066: It's a bit pointless to send ourselves a signal just to check if we ↵Volker Lendecke2007-10-101-0/+4
| | | | | | exist :-) Volker
* r18049: Backport SAMBA_4_0 snprintf changesSimo Sorce2007-10-101-12/+43
|
* r18048: More nested structuresVolker Lendecke2007-10-101-6/+9
|
* r18029: More C++ stuffVolker Lendecke2007-10-101-1/+1
|
* r18027: Fix some 64-bit warningsVolker Lendecke2007-10-102-10/+19
|
* r18016: OpenBSD apparently does not have ENOTSUPVolker Lendecke2007-10-101-0/+20
|
* r18009: Fixes bug 4026.Derrell Lipman2007-10-101-1/+1
| | | | | | | | | | | | | | | | | | | | | 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).
* r17959: sync with samba4Stefan Metzmacher2007-10-101-0/+2
| | | | metze
* r17951: sync talloctort.c with samba4Stefan Metzmacher2007-10-101-32/+246
| | | | metze
* r17949: change the comment, talloc_enable_null_tracking() shouldStefan Metzmacher2007-10-101-1/+5
| | | | | | stay here. metze
* r17928: Implement the basic store for CLDAP sitenameJeremy Allison2007-10-101-2/+0
| | | | | | | | | | | | | | | | 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.
* r17924: Get rid of warnings now that talloc is merged.Volker Lendecke2007-10-102-7/+4
| | | | | | Destructors now take a pointer to the "real" destroyed object as an argument. Volker
* r17923: turn on null_tracking with the first talloc_init() call,Stefan Metzmacher2007-10-101-0/+3
| | | | | | | | | (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
* r17922: sync samba3's talloc with samba4's and move the samba3 specific ↵Stefan Metzmacher2007-10-103-201/+206
| | | | | | stuff to tallocmsg.c metze
* r17906: Port the snprintf bugfix from 4. I wonder why we never hit this....Volker Lendecke2007-10-101-2/+2
|
* r17869: More sensible fix for Stanford Checker null deref.Jeremy Allison2007-10-101-4/+2
| | | | Jeremy.
* r17866: Fix possible null deref - found by Stanford checker.Jeremy Allison2007-10-101-1/+1
| | | | Jeremy.
* r17865: Fix what the Stanford checker reported as a possibleJeremy Allison2007-10-101-1/+3
| | | | | | deref. I think this is a false positive, but it's an easy extra check to add here. Jeremy.
* r17862: Fix possible NULL deref (like rev 17861) found by theJeremy Allison2007-10-101-1/+3
| | | | | Stanford group. Jeremy.
* r17834: Another bug found by Volker's tests in the build farm !Jeremy Allison2007-10-101-7/+1
| | | | | Correctly map large nt timevals to TIME_T_MAX. Jeremy.
* r17831: Attempt to fix the build farm: 0x7fffffffffffffff needs special ↵Volker Lendecke2007-10-101-0/+6
| | | | | | | | | | | | | | | | | | | 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
* r17818: Fixup uint64 time calc. NT time is a 64 bit number,Jeremy Allison2007-10-101-3/+3
| | | | | not high value seconds, low value 100ns units. Jeremy.
* r17812: Fix bad unsigned comparisons with TIME_T_MIN/TIME_T_MAX.Jeremy Allison2007-10-101-3/+3
| | | | Jeremy.
* r17809: Add in 64-bit integer time calculations (taken fromJeremy Allison2007-10-101-41/+160
| | | | | | | Samba4) for machines that have 64-bit integers. Leave the (double) code for machines that don't. Needs testing.... :-). Jeremy.
* r17804: Fix a enum/int mixup found by the IRIX compiler.Volker Lendecke2007-10-101-1/+1
| | | | Volker
* r17800: Start using struct timespec internally for file timesJeremy Allison2007-10-102-27/+148
| | | | | | | | | on the wire. This allows us to go to nsec resolution for systems that support it. It should also now be easy to add a correct "create time" (birth time) for systems that support it (*BSD). I'll be watching the build farm closely after this one for breakage :-). Jeremy.
* r17767: Argggg. Broke the build. Need to fix callers of put_long_date()Jeremy Allison2007-10-101-68/+29
| | | | | and interpret_long_date() first. Reverting... Jeremy.
* r17766: Getting ready to properly expose 100ns times onJeremy Allison2007-10-101-29/+68
| | | | | | the wire. Move the internals of nt_time functions to use struct timespecs. Jeremy.
* r17667: Merge snprintf fixes from tridge (Samba4).Jeremy Allison2007-10-101-16/+41
| | | | | | | | | | | | | | | | | Jeremy. ---------- several replacement snprintf() fixes. 1) when running the testsuite, actually test against the system sprintf(), not against ourselves (doh!) 2) fix the buffer termination to terminate buf2 as well 3) fix handling of %llu, and add a simple test This fixes a bug with password expiry on solaris ----------
* r17630: Looks like getpeerid() is a system function onJeremy Allison2007-10-101-1/+1
| | | | | | FreeBSD. Change to sys_getpeerid(). Thanks to vl for pointing this out. Jeremy.
* r17610: Added the ability for firefox to drive the winbinddJeremy Allison2007-10-101-0/+25
| | | | | | | | | | | ntlm_auth module to allow it to use winbindd cached credentials.The credentials are currently only stored in a krb5 MIT environment - we need to add an option to winbindd to allow passwords to be stored even in an NTLM-only environment. Patch from Robert O'Callahan, modified with some fixes by me. Jeremy.
* r17592: Remove some unused functions pointed out by John E. Malmberg, makeVolker Lendecke2007-10-101-235/+0
| | | | | | do_file_lock static to pdb_smbpasswd.c, the only user of it. Volker
* r17584: Some C++ WarningsVolker Lendecke2007-10-101-3/+3
|
* r17569: Make 'max smbd processes' more robust. Counting on the child to ↵Volker Lendecke2007-10-102-8/+0
| | | | | | | | | | | | decrement a tdb entry is not the most reliable way to count children correctly. This increments the number of children after a fork and decrements it upon SIGCLD. I'm keeping a list of children just for consistency checks, so that we at least get a debug level 0 message if something goes wrong. Volker
* r17554: CleanupVolker Lendecke2007-10-102-628/+0
|
* r17550: Fix a few bugs in the tdb_multikey code. Thanks to tridge for ↵Volker Lendecke2007-10-101-1/+1
| | | | | | | | pointing them out. Volker
* r17477: Add talloc_asprintf_len and make use of it.Volker Lendecke2007-10-102-6/+49
| | | | Volker
* r17457: Add a test to do some operations on group mapping.Volker Lendecke2007-10-101-2/+57
| | | | Volker
* r17425: Add the multi-key wrapper. If it's necessary to add general blobs as ↵Volker Lendecke2007-10-101-0/+530
| | | | | | | | keys, this can trivially be added later. Volker
* r17408: Let us use netgroups even without a NIS domain but just using filesSimo Sorce2007-10-101-3/+2
|
* r17334: Some C++ warningsVolker Lendecke2007-10-1011-22/+24
|
* r17316: More C++ warnings -- 456 leftVolker Lendecke2007-10-106-22/+25
|
* r17315: Make talloc and tdb C++-warning-free. Would this also be interesting ↵Volker Lendecke2007-10-101-13/+17
| | | | | | | | in talloc and tdb "upstream"? Volker
* r17294: Make the code a little cleaner. Instead of using the twoJeremy Allison2007-10-102-10/+33
| | | | | | | | | | | | | calls make it : become_root_uid_only() operation unbecome_root_uid_only() saving errno across the second call. Most of our internal change calls can be replaced with these simple calls. Jeremy