summaryrefslogtreecommitdiff
path: root/source4/lib
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r6271: Don't zero the cli_credentials structure - instead allow valgrind toAndrew Bartlett1-1/+7
track the use of un-initialised values. This change will require a recompile from clean, as the enum describing the status of each element now has a default of CRED_UNINITIALISED. Andrew Bartlett (This used to be commit 83c2eb806d43f588bd06336aa7e2dbdc00dc2c67)
2007-10-10r6238: Ensure if realloc fails on an internalJeremy Allison1-3/+8
tdb we fail gracefully. Jeremy. (This used to be commit d69f7c05468ae54e0474b188fedabe14e7297d53)
2007-10-10r6222: fixed the socket wrapper code for getsockname()Andrew Tridgell1-1/+1
(This used to be commit 11e245a3f0e1523eba3a042db140dec8732aa985)
2007-10-10r6150: fixed a few socket_wrapper bugs.Andrew Tridgell1-35/+80
- now works properly with UDP, so the NBT tests work - fixed byte order in a few places - connect() now fails to non-localhost - fixed some places that tested for < 0, which should be == -1 (most syscalls return -1 on error, not "negative") (This used to be commit 61e1eea0fdb13577de2506472c5443ee92656263)
2007-10-10r6147: The maxfd was being recalculated on every event loop, which made usAndrew Tridgell1-1/+0
less scalable. It only needs to be recalculated when we the highest fd is destroyed. (This used to be commit 568b9175f329f594404c9091ee5946670c40697e)
2007-10-10r6144: Apparently there are more systems that have AF_UNIX thenJelmer Vernooij1-6/+6
AF_LOCAL (we already use AF_UNIX in other places). (This used to be commit 88d93b9782766ab1159a233307ef508881caa615)
2007-10-10r6140: - Add configure option for enabling the socket-wrapper library, so itJelmer Vernooij2-23/+48
can be enabled on the buildfarm without requiring --enable-developer - Support tcp and udp being used on the same port - FIx some portability issues (should fix the build on some hosts on the buildfarm) - Ignore setting TCP_NODELAY on (semi-)TCP sockets rather then complain about it not being supported (saves us from a couple of error messages for each connection that is opened) (This used to be commit 443fb7853b8d3cb516c442fdc595038544b75738)
2007-10-10r6139: Move socket_wrapper to a seperate directoryJelmer Vernooij4-8/+7
(This used to be commit a2ef9225f15e369af7b884262b997ab321fd24d6)
2007-10-10r6129: - add our own MSZIP decompression implementationStefan Metzmacher3-0/+719
(taken from cabextract.c from KDE) this code maybe need to be rewritten and the compression side needs to be done, but for now it seems to works - remove the dependency to zlib metze (This used to be commit 5e8558c5b4365a494aa054c3e08d4084b319e6e5)
2007-10-10r6118: Make it so that we can do --with-zlib=no in configure and also a coupleRichard Sharpe1-1/+1
of small typos. (This used to be commit 9b4069e84573f85ce4341ceacd35737a18726a0b)
2007-10-10r6093: Patch to fix sys_select so it can't drop signals if another fdJeremy Allison1-9/+18
is ready to read. Patch from Mark Weaver <mark-clist@npsl.co.uk>. Jeremy. (This used to be commit 857e98e8ea842bb94c93b81d7b69e3d304f100f5)
2007-10-10r6088: Add the socket_wrapper library. This is a very simple library thatJelmer Vernooij3-1/+459
redirects traffic (currently just IP traffic) over unix domain sockets if the SOCKET_WRAPPER_DIR environment variable has been set. Aim is to use this for the Samba4 torture suite on the buildfarm. The socket_wrapper library can only be used if Samba was compiled with --enable-developer. test_rpc.sh passes against a local smbd with SOCKET_WRAPPER_DIR set. (and ethereal showed no traffic whatsoever) Stuff that still needs to be fixed in socketwrapper: - Give ENETUNREACH if target is not localhost - A given port number can only be used for UDP /or/ TCP, not both. - Perhaps allow some calls to circumvent socketwrapper (do we need DNS?) (This used to be commit f8a63a843ccca092d9756b64e09175d37c08550a)
2007-10-10r6087: - remove the dlopen code for now (before it goes back, it needs to beAndrew Tridgell1-44/+1
made into something that isn't a maze of #ifdefs) - when a module is not found, make it a non-fatal error. Otherwise the standalone ldb tools just bail out. The previous code meant that if you had a module listed and it wasn't present then you could _never_ fix it, as you coudln't open the ldb to remove that module from @MODULES ! (This used to be commit c4728625c093d91e522b80c049e0d42d2b5f143b)
2007-10-10r6086: default to stderr for error messages in ldb, so we get errors in ↵Andrew Tridgell1-1/+1
ldb_connect() (This used to be commit a6e492f95c6f31ed37ee32a13a34fa2847d8352d)
2007-10-10r6079: Add inline documentation on the credentials context API.Andrew Bartlett1-6/+118
Andrew Bartlett (This used to be commit 258c04e3678b936bb564ecef10f14128c0a54510)
2007-10-10r6075: added talloc_enable_null_tracking() (asked for by lifeless)Andrew Tridgell3-2/+21
(This used to be commit 40b8ee186af3e7f771c680dbbb03fdcf559bf103)
2007-10-10r6070: Fix typo's and fallback to "" as default user name if noJelmer Vernooij2-3/+3
other username could be guessed. (This used to be commit 7fe77cd65901776b5a78e8398547f364379259d3)
2007-10-10r6045: Couple of small GTK+ fixesJelmer Vernooij1-61/+60
Use uint32_t and uint16_t rather then DWORD and WORD in the NT4 backend. Add some more unknown fields.. (This used to be commit 6c3b1ec3296c7ab1ddfdcee86162f2eb0d73f5a8)
2007-10-10r6033: Patch from 'lifeless' to clarify behaviour with NULL pointers.Andrew Bartlett2-1/+3
Andrew Bartlett (This used to be commit 48c518796797f021c9c7f319ca8cd0a0c185f64c)
2007-10-10r6024: Some of the ordering constraints on the popt callbacks were gettingAndrew Bartlett2-25/+90
painful, so don't call lp_*() functions until the post stage (rather than in the cli_credentails_init(), which is called in the pre stage), and don't open the secrets.ldb looking for the machine account details until we actually need them (well after popt is done, and we know we have the other things right). Set the domain and realm, as well as the account and password for -P (fetch machine password) operation. Allow NETLOGON credentials to be stored in this structure - will allow SCHANNEL to be made more generic. Clarify why we don't do special checks for NULL pointers, particularly in the anonymous check (it indicates a programmer error, not a run-time condition). Also make lib/credentials.c a little more consistant. Andrew Bartlett (This used to be commit 730e6056b730c15008772c30cd6f7c03fb6b7e5f)
2007-10-10r5989: Display authentication information (list of available auth protocolsJelmer Vernooij1-1/+1
+ principal names per endpoint) to gepdump. Still need to fix memory management in the GTK+ utilities... (This used to be commit b48a0af0b0fbf1234627ec785699896a44b23e75)
2007-10-10r5988: Fix the -P option (use machine account credentials) to use the Samba4Andrew Bartlett5-26/+158
secrets system, and not the old system from Samba3. This allowed the code from auth_domain to be shared - we now only lookup the secrets.ldb in lib/credentials.c. In order to link the resultant binary, samdb_search() has been moved from deep inside rpc_server into lib/gendb.c, along with the existing gendb_search_v(). The vast majority of this patch is the simple rename that followed, (Depending on the whole SAMDB for just this function seemed pointless, and brought in futher dependencies, such as smbencrypt.c). Andrew Bartlett (This used to be commit e13c671619bd290a8b3cae8555cb281a9a185ee0)
2007-10-10r5976: SIDs can't have more then 5 subauths (caught by [validate] andJelmer Vernooij1-1/+1
range()) (This used to be commit ec1eaa274b997197ca6996457229c802f1b76d56)
2007-10-10r5942: A couple of small changes to fix things up with the new credentialsAndrew Bartlett1-0/+1
infrustructure. Andrew Bartlett (This used to be commit d51718ab8a3771ada4e342a384b744edb803db40)
2007-10-10r5941: Commit this patch much earlier than I would normally prefer, but ↵Andrew Bartlett4-42/+34
metze needs a working tree... The main volume of this patch was what I started working on today: - Cleans up memory handling around DCE/RPC pipes, to have a parent talloc context. - Uses sepereate inner loops for some of the DCE/RPC tests The other and more important part of this patch fixes issues surrounding the new credentials framwork: This makes the struct cli_credentials always a talloc() structure, rather than on the stack. Parts of the cli_credentials code already assumed this. There were other issues, particularly in the DCERPC over SMB handling, as well as little things that had to be tidied up before test_w2k3.sh would start to pass. Andrew Bartlett (This used to be commit 0453f9d05d2e336fba1f85dbf2718d01fa2bf778)
2007-10-10r5939: improve talloc_realloc() docs after feedback from lifelessAndrew Tridgell1-1/+5
(This used to be commit 301cbb0d12919f83d6b735c2e23b49fb49d5394d)
2007-10-10r5938: - allow NULL string argument to talloc_vasprintf_append()Andrew Tridgell1-1/+9
- default to using va_copy(), thus assuming a modern libc (This used to be commit 3060b26c9e745330682f6209d97e723113b65b56)
2007-10-10r5937: - performance improvement to talloc_asprintf_append()Andrew Tridgell2-5/+10
- allow standalone talloc to use gcc printf attributes (This used to be commit e25aa54e962796e6e7385afed57aa287ef6f869d)
2007-10-10r5932: Use cli_credentials somewhat more in the Gtk+ codeJelmer Vernooij1-1/+1
Support ncacn_spx in DCE/RPC bindings. (This used to be commit a0233a3a9a83176ae46873d3a25ed601758a1511)
2007-10-10r5929: Use cli_credentials for the SMB functions as well.Jelmer Vernooij2-5/+13
Fix a couple of bugs in the new cli_credentials code (This used to be commit 4ad481cfe5cde514d2ef9646147239f3faaa6173)
2007-10-10r5928: Use cli_credentials in:Jelmer Vernooij8-28/+37
- gtk+ (returned by GtkHostBindingDialog as well now) - torture/ - librpc/ - lib/com/dcom/ (This used to be commit ccefd782335e01e8e6ecb2bcd28a4f999c53b1a6)
2007-10-10r5917: First step in using the new cli_credentials structure. This patchJelmer Vernooij12-283/+419
puts support for it into popt_common, adds a few utility functions (in lib/credentials.c) and the callback functions for the command-line (lib/cmdline/credentials.c). Comments are welcome :-) (This used to be commit 1d49b57c50fe8c2683ea23e9df41ce8ad774db98)
2007-10-10r5906: Fix the usage of the internal popt (make proto should ignore it)Jelmer Vernooij13-661/+2205
Updated included popt to 1.7. (This used to be commit d60cb643e8a46771f3d836307ea45b869f34dc9b)
2007-10-10r5903: While I can't test IPv6, metze asked me to commit a matching changeAndrew Bartlett1-0/+3
for unknown hosts that I just did for IPv4. Andrew Bartlett (This used to be commit 7e1d82a200b3c679b727e0ef28a245389708ae2f)
2007-10-10r5902: A rather large change...Andrew Bartlett2-29/+41
I wanted to add a simple 'workstation' argument to the DCERPC authenticated binding calls, but this patch kind of grew from there. With SCHANNEL, the 'workstation' name (the netbios name of the client) matters, as this is what ties the session between the NETLOGON ops and the SCHANNEL bind. This changes a lot of files, and these will again be changed when jelmer does the credentials work. I also correct some schannel IDL to distinguish between workstation names and account names. The distinction matters for domain trust accounts. Issues in handling this (issues with lifetime of talloc pointers) caused me to change the 'creds_CredentialsState' and 'struct dcerpc_binding' pointers to always be talloc()ed pointers. In the schannel DB, we now store both the domain and computername, and query on both. This should ensure we fault correctly when the domain is specified incorrectly in the SCHANNEL bind. In the RPC-SCHANNEL test, I finally fixed a bug that vl pointed out, where the comment claimed we re-used a connection, but in fact we made a new connection. This was achived by breaking apart some of the dcerpc_secondary_connection() logic. The addition of workstation handling was also propogated to NTLMSSP and GENSEC, for completeness. The RPC-SAMSYNC test has been cleaned up a little, using a loop over usernames/passwords rather than manually expanded tests. This will be expanded further (the code in #if 0 in this patch) to use a newly created user account for testing. In making this test pass test_rpc.sh, I found a bug in the RPC-ECHO server, caused by the removal of [ref] and the assoicated pointer from the IDL. This has been re-added, until the underlying pidl issues are solved. (This used to be commit 824289dcc20908ddec957a4a892a103eec2da9b9)
2007-10-10r5898: Handle errors in the 'sync' name and IP address handling code.Andrew Bartlett1-0/+3
Andrew Bartlett (This used to be commit 6b8b40f73bd8b7ce23effc8eb1d808db77bcbf8b)
2007-10-10r5871: Remove file with unused function (that uses fstring)Jelmer Vernooij3-54/+3
Remove fstring usage from version.c (This used to be commit d25163159c19d6f948551438f459d161ba6ea4ac)
2007-10-10r5781: Fix build.Tim Potter1-1/+1
(This used to be commit 35354456b2ab2fa173359fa16d8accb13a8fac7d)
2007-10-10r5780: Remove unused arguments.Tim Potter2-7/+7
(This used to be commit 1ee84e373e2b44c96f9353f194b766d6a144e7ce)
2007-10-10r5779: Remove signal and timeout gubbage from tdb.Tim Potter3-127/+4
(This used to be commit dbb56e9a59cf00d57b09ded6d60bf9424d5f1f4c)
2007-10-10r5775: Remove some unused functions (unions are no longer as special as they ↵Jelmer Vernooij1-1/+8
used to be) Add oxid mapping table support in DCOM (This used to be commit e193555f0eec2dda8c8760e9668181200fef0a1e)
2007-10-10r5769: Fix unused variable warning.Tim Potter1-1/+1
(This used to be commit 80dfac3640443a41f7e45e9164ca1a6749494011)
2007-10-10r5682: fix the buildStefan Metzmacher1-3/+5
metze (This used to be commit 67a2b091261d4dee2ed518ae80fdd8c1d9bf0e86)
2007-10-10r5680: Don't crash if none of the predefined keys is available (reported by ↵Jelmer Vernooij1-2/+28
Alexander) (This used to be commit 0d789872a890062b0b95aa039bb853bb6c07b2d0)
2007-10-10r5676: Fix some alignment issues and IRemoteActivationJelmer Vernooij1-0/+10
(This used to be commit a9b13f67012d235d98920e639f59411d57a79bd7)
2007-10-10r5675: - More DCOM bug fixesJelmer Vernooij4-21/+52
- Keep COM and DCOM more seperated (This used to be commit f694f484c422d0c86beb58e8f62f134f8676d5e1)
2007-10-10r5674: - Re-enable DCOM support.Jelmer Vernooij6-255/+148
- Always put IID in vtables (useful for asserts) - Add table to keep track of DCOM proxy classes - Bunch of smaller bug fixes (This used to be commit 26d5a0b92c66bc86d0c26f687f83fa712342ac32)
2007-10-10r5670: simplify and clarify ldb_modules.c codeSimo Sorce3-143/+155
rectify the test schema correct a glitch in schema module (This used to be commit 0579b5f7adfe160be8ecf124934b6593a02ed06f)
2007-10-10r5666: winxp will use a NTTIME of -1 to mean "don't change" in setfileinfoAndrew Tridgell1-0/+9
basic_info. Add null_nttime() as the equivalent of the existing null_time() call for cheecking for valid NTTIME values (This used to be commit 439ce2efbf7d2ba9b17d6b4bfaf651e781140715)
2007-10-10r5665: the data within el2->values can still be used at this point, so don't ↵Andrew Tridgell1-1/+0
free (This used to be commit 12d03f96637b9298e0cbc7ee544ca97fffcab9f8)