summaryrefslogtreecommitdiffstats
path: root/source4/include/includes.h
Commit message (Collapse)AuthorAgeFilesLines
* r3428: switched to using minimal includes for the auto-generated RPC code.Andrew Tridgell2007-10-101-1/+2
| | | | | | | | | | | | | | | The thing that finally convinced me that minimal includes was worth pursuing for rpc was a compiler (tcc) that failed to build Samba due to reaching internal limits of the size of include files. Also the fact that includes.h.gch was 16MB, which really seems excessive. This patch brings it back to 12M, which is still too large, but better. Note that this patch speeds up compile times for both the pch and non-pch case. This change also includes the addition iof a "depends()" option in our IDL files, allowing you to specify that one IDL file depends on another. This capability was needed for the auto-includes generation. (This used to be commit b8f5fa8ac8e8725f3d321004f0aedf4246fc6b49)
* r3424: don't run mkproto.pl on pidl generated code, instead rely on pidl ↵Andrew Tridgell2007-10-101-7/+13
| | | | | | | generating the prototypes itself (This used to be commit e694aeefe7c725d417abdd3c48d16ff1d932c223)
* r3390: fixed schannel server side support. RPC-SCHANNEL now works against ↵Andrew Tridgell2007-10-101-1/+0
| | | | | | Samba4. (This used to be commit 01f5c1c72d9fc8f21029adc586154b0c54f76c9e)
* r3175: Add winbind back into includes.h (spotted by tpot)Andrew Bartlett2007-10-101-0/+2
| | | | | Andrew Bartlett (This used to be commit 2b0f04167d6512c7eaa44f8234f0be63c55f9582)
* r3064: - use UINT8_MAX and UINT16_MAX instead of hex values for ↵Andrew Tridgell2007-10-101-0/+8
| | | | | | | idr_get_new() limits - change idr_get_new() to use > instead of >= in the limit check (This used to be commit 834b09929bcb8aabdd151b7c2306001497cabdb4)
* r3005: added talloc wrappers around tdb_open() and ldb_connect(), so that theAndrew Tridgell2007-10-101-0/+1
| | | | | | | | | | | | | | | caller doesn't have to worry about the constraint of only opening a database a single time in a process. These wrappers will ensure that only a single open is done, and will auto-close when the last instance is gone. When you are finished with a database pointer, use talloc_free() to close it. note that this code does not take account of the threads process model, and does not yet take account of symlinks or hard links to tdb files. (This used to be commit 04e1171996612ddb15f84134cadded68f0d173b2)
* r2951: fixed the intptr_t test for discard_const()Andrew Tridgell2007-10-101-0/+4
| | | | (This used to be commit 3318cf2722597e57d1731152b2607f6b167e45b9)
* r2900: rusty pointed out to me that discard_const() can be done via a macroAndrew Tridgell2007-10-101-2/+22
| | | | | | | on systems that have the intptr_t type, and for systems that don't have it, they also almost certainly won't have -Wcast-qual, so we can use a void* cast. (This used to be commit 2132d38f9c5ba59825558d5ba084a514ebc2626b)
* r2744: ben elliston taught me about gcov today, which allows you to measureAndrew Tridgell2007-10-101-1/+3
| | | | | | | | | | | | | | | | | | | the % coverage in terms of lines of code of a test suite. I thought a good first place to start with gcov was the talloc test suite. When I started the test suite covered about 60% of all lines of code in talloc.c, and now it covers about 99%. The only lines not covered are talloc corruption errors, as that would cause smb_panic() to fire. It will be interesting to try gcov on the main Samba test suite for smbd. We won't achieve 100% coverage, but it would be nice to get to 90% or more. I also modified the talloc.c sources to be able to be build standalone, using: gcc -c -D_STANDALONE_ -Iinlcude lib/talloc.c that should make it much easier to re-use talloc in other projects (This used to be commit 8d4dc99b82efdf24b6811851c7bdd4af5a4c52c9)
* r2632: a new approach to handling const errors. We have had huge numbers ofAndrew Tridgell2007-10-101-0/+2
| | | | | | | | | | | | | | | const warnings for a long time, and no real way to approach a solution. Some of them are unavoidable due to the way the C standard works (for example, any function that provides strchr() like functionality _must_ produce a const warning) I will be converting a bunch of places that currently produce const warnings to use the discard_const_p(). Some of these will be unavoidable const problems, some of them will be ones we will fix up over time. At least this change means we will no longer be swamped with const warnings, and we will easily be able to see when new problems emerge. (This used to be commit fec3288ad6ce58e8273e3f16e88037db49ecf046)
* r2582: Merge checks for xattr and acl libraries from Samba3 so the ↵Tim Potter2007-10-101-0/+11
| | | | | | | {get,set}ntacl programs can build on non-xattr machines. (This used to be commit daad76207dbb4060c231a58c99970e837e1e858f)
* r2510: Make C++ compilers happy, use ifdef instead of ifJelmer Vernooij2007-10-101-5/+5
| | | | (This used to be commit 7c31998da148cca53e798e3d89b9b754de2e64ac)
* r2404: the first large lump of posix vfs stuff.Andrew Tridgell2007-10-101-0/+5
| | | | | | this is still very much a skeleton (with many limbs missing too!). I am committing this early to get some feedback on the approach taken. (This used to be commit 40d5cae5ebbfe328e193eadb685df6a370730299)
* r2328: add the start of a new system and protocolStefan Metzmacher2007-10-101-0/+1
| | | | | | | | | | | independent socket library. this is not used, but compiled currently there're maybe some api changes later... metze (This used to be commit de4447d7a57c614b80d0ac00dca900ea7e1c21ea)
* r2321: add complately untested LDAP server startStefan Metzmacher2007-10-101-0/+1
| | | | | | | | | based on volker's patch this is compiled by default but not started by default metze (This used to be commit 5387bc423d4dc669cbac6626f8dd3a5498a6519d)
* r2242: some older versions of gcc don't properly handle theAndrew Tridgell2007-10-101-2/+3
| | | | | | PRINTF_ATTRIBUTE() format checking magic, so only enable it for gcc versions >= 3.0 (This used to be commit 9c7100e3c770fca163d3788fc6b735457f74d7e9)
* r1902: we need to include popt.h before popt_common.hStefan Metzmacher2007-10-101-2/+0
| | | | | metze (This used to be commit edde7497e9e06be0e51e886981725271a85bd9e5)
* r1877: since make proto catches all functionsStefan Metzmacher2007-10-101-0/+1
| | | | | | | the inlcude has to move to includes.h metze (This used to be commit 97fe38183b6a03c01f6ac2d28a958d632eb4ff8a)
* r1836: - as abartlet said to me, we need to contact the users domain pdcfor ↵Stefan Metzmacher2007-10-101-0/+2
| | | | | | | | | | | | doing a password change - add start of libnet_SetPassword - use KRB5 and LDAP instead of ADS as ADS isn't a protocol - add start of lib_rpc_connect() metze (This used to be commit 05c40dca8ad1ab020aa75282da046f1dbce2a52a)
* r1796: Enable server-side SPNEGO, now that I have fixed the server-side SMBAndrew Bartlett2007-10-101-0/+1
| | | | | | | signing code to be able to cope. Andrew Bartlett (This used to be commit cb74d52b563730a50e33c92d868c45ee96a598e8)
* r1785: remove unneeded dependencies on openldap client librariesSimo Sorce2007-10-101-10/+0
| | | | (This used to be commit 44083e317855f6d8a0b4a81002a3376e8775df28)
* r1756: merge volkers ldap client lib to samba4 for simo to start with theStefan Metzmacher2007-10-101-0/+1
| | | | | | | | | ldap server code it's not compiled in yet... metze (This used to be commit 48939adca1332ff90f9287311c0e9ff3e2e5917a)
* r1521: Updates to our SMB signing code.Andrew Bartlett2007-10-101-0/+1
| | | | | | | | | | | | | - This causes our client and server code to use the same core code, with the same debugs etc. - In turn, this will allow the 'mandetory/fallback' signing algorithms to be shared, and only written once. Updates to the SPNEGO code - Don't wrap an empty token to the server, if we are actually already finished. Andrew Bartlett (This used to be commit 35b83eb329482ac1b3bc67285854cc47844ff353)
* r1486: commit the start of the generic server infastructureStefan Metzmacher2007-10-101-0/+2
| | | | | | | | | | | | | | | | | | | the idea is to have services as modules (smb, dcerpc, swat, ...) the process_model don't know about the service it self anymore. TODO: - the smbsrv should use the smbsrv_send function - the service subsystem init should be done like for other modules - we need to have a generic socket subsystem, which handle stream, datagram, and virtuell other sockets( e.g. for the ntvfs_ipc module to connect to the dcerpc server , or for smb or dcerpc or whatever to connect to a server wide auth service) - and other fixes... NOTE: process model pthread seems to be broken( but also before this patch!) metze (This used to be commit bbe5e00715ca4013ff0dbc345aa97adc6b5c2458)
* r1455: More Gtk+ updates:Jelmer Vernooij2007-10-101-0/+1
| | | | | | - Start working on 'gwsam' - Add GtkSelectDomainDialog and GtkSelectHostDialog (This used to be commit bea47671aa791f3c4d22263f9444aea1a73f47f1)
* r1454: Today is the day of broken builds, now I get my share ... :-)Volker Lendecke2007-10-101-0/+1
| | | | | | | Add a missing file. Volker (This used to be commit 2bc6147c118a61f7f37f3414cce3df44625ade65)
* r1432: - Move the various Gtk-specific parts from the registry code into a ↵Jelmer Vernooij2007-10-101-0/+1
| | | | | | | | | | | directory gtk/ - Move common "Samba-Gtk" code into gtk/common/ ("Connect to RPC pipe"-dialog, etc) - Add a new utility 'gwcrontab' that can currently list, delete and add 'atsvc' jobs. It still displays times and dates as integers though, will fix that later. Some screenshots available at: http://samba.org/~jelmer/gwcrontab/ (This used to be commit d321cf20f1f0ff33603b013c26d370669f255868)
* r1281: move include/context.h to smb_server/smb_server.hStefan Metzmacher2007-10-101-1/+1
| | | | | metze (This used to be commit 7b4ad993ad7c937ef9bee1a48a8bda62f2f5d3b9)
* r1200: Add 'gensec', our generic security layer.Andrew Bartlett2007-10-101-1/+2
| | | | | | | | | | | | | | | This layer is used for DCERPC security, as well as ntlm_auth at this time. It expect things like SASL and the CIFS layer to use it as well. The particular purpose of this layer is to introduce SPENGO, which needs generic access to the actual implementation mechanisms. Schannel, due to it's 'interesting' setup properties is in GENSEC, but is only in the RPC code. Andrew Bartlett (This used to be commit 902af49006fb8cfecaadd3cc0c10e2e542083fb1)
* r1198: Merge the Samba 3.0 ntlm_auth, including the kerberos and SPENGO parts.Andrew Bartlett2007-10-101-0/+2
| | | | | | | | I have moved the SPNEGO and Kerberos code into libcli/auth, and intend to refactor them into the same format as NTLMSSP. Andrew Bartlett (This used to be commit 58da78a7460d5d0a4abee7d7b84799c228e6bc0b)
* r1065: some header file cleanupsStefan Metzmacher2007-10-101-0/+1
| | | | | | | smb.h should end with only smb protocol specific stuff in it metze (This used to be commit fda8e59f3d057bf849598f96f78f50f62d8514fe)
* r961: convert 'uchar' to 'uint8_t'Stefan Metzmacher2007-10-101-4/+0
| | | | | metze (This used to be commit 9f914e4af99e18b469d4cf9d8b1514a2bd28ddec)
* r904: - fixed account expiry testing in auth_samAndrew Tridgell2007-10-101-0/+3
| | | | | | | - added printf style format attribute checking to samdb varargs fns - fix nt_time_to_unix() for zero and -1 times (This used to be commit 41f9b144f9fe77e92f960bd11b1df397a63fd2d5)
* r898: - remove some unused macrosAndrew Tridgell2007-10-101-10/+0
| | | | | | | - remove unused lib/smbpasswd.c - don't set the pkt size twice when doing SMB signing (This used to be commit 69a2942f7987647a32d43c71f41ac1a82a82ccda)
* r890: convert samba4 to use [u]int8_t instead of [u]int8Stefan Metzmacher2007-10-101-2/+6
| | | | | metze (This used to be commit 2986c5f08c8f0c26a2ea7b6ce20aae025183109f)
* r889: convert samba4 to use [u]int16_t instead of [u]int16Stefan Metzmacher2007-10-101-14/+7
| | | | | metze (This used to be commit af6f1f8a01bebbecd99bc8c066519e89966e65e3)
* r884: convert samba4 to use [u]int32_t instead of [u]int32Stefan Metzmacher2007-10-101-25/+6
| | | | | metze (This used to be commit 0e5517d937a2eb7cf707991d1c7498c1ab456095)
* r873: converted samba4 to use real 64 bit integers instead ofAndrew Tridgell2007-10-101-33/+8
| | | | | | | | | | structures. This was suggested by metze recently. I checked on the build farm and all the machines we have support 64 bit ints, and support the LL suffix for 64 bit constants. I suspect some won't support strtoll() and related functions, so we will probably need replacements for those. (This used to be commit 9a9244a1c66654c12abe4379661cba83a73c4c21)
* r861: remove the next round of unused stuffStefan Metzmacher2007-10-101-13/+0
| | | | | metze (This used to be commit 8f59daba0d03a2c58f7f23655153de05cbe47e81)
* r853: remove a real big bunch of unused codeStefan Metzmacher2007-10-101-4/+0
| | | | | | | | | | | I really think that this is needed to get a better overview of what is currently used Also this stuff is really out of date so if we really ever need some of this stuff back, a 'svn copy' from the SAMBA_3_0 branch should be no big problem... metze (This used to be commit 972598d511c64f29bdc849fe58c9c82fbcf6a4a2)
* r848: convert lib/tdb into the same layout as lib/ldbStefan Metzmacher2007-10-101-3/+3
| | | | | metze (This used to be commit bacab322ce89979f0ad0811cd15b73d81eceb69d)
* r685: The SAM is dead! Long live the new SAM! ;-)Andrew Bartlett2007-10-101-1/+0
| | | | | | | | | | | | | | | | | | | This commit kills passdb, which was only hosting the auth subsystem. With the work tridge has done on Samba4's SAM backend, this can (and now is) all hosted on ldb. The auth_sam.c file now references this backend. You will need to assign your users passwords in ldb - adding a new line: unicodePwd: myPass to a record, using ldbedit, should be sufficient. Naturally, this assumes you have had your personal SAMR provisioning tutorial from tridge. Everybody else can still use the anonymous logins. Andrew Bartlett (This used to be commit 2aa0b55fb86648731d5f2201fa5a6aa993b7ca48)
* r665: merge over the new build system from my tmp branchStefan Metzmacher2007-10-101-0/+1
| | | | | | | | | to the main SAMBA_4_0 tree. NOTE: that it's not completely ready, but it's functional:-) metze (This used to be commit c78a2ddb28ec50d6570a83b1f66f18a5c3621731)
* r610: - Merge the Samba3 'ntlm_auth --diagnostics' testsuite to Samba4.Andrew Bartlett2007-10-101-0/+1
| | | | | | | | | | | | | | | | | | | | - This required using NETLOGON_NEG_AUTH2_FLAGS for the SetupCredentials2 negotiation flags, which is what Samba3 does, because otherwise the server uses different crypto. - This tests the returned session keys, which we decrypt. - Update the Samba4 notion of a 'session key' to be a DATA_BLOB in most places. - Fix session key code to return NT_STATUS_NO_SESSION_KEY if none is available. - Remove a useless argument to SMBsesskeygen_ntv1 - move netr_CredentialState from the .idl to the new credentials.h Andrew Bartlett (This used to be commit 44f8b5b53e6abd4de8a676f78d729988fadff320)
* r503: we don't need to include ldb_parse.h any moreAndrew Tridgell2007-10-101-1/+0
| | | | (This used to be commit 85e57684b4dc4edcfd6d4cd1492d63810f8ce211)
* r152: a quick airport commit ....Andrew Tridgell2007-10-101-2/+1
| | | | | | | | | | | | | | | added ldbedit, a _really_ useful command added ldbadd, ldbdel, ldbsearch and ldbmodify to build solved lots of timezone issues, we now pass the torture tests with client and server in different zones fixed several build issues I know this breaks the no-LDAP build. Wait till I arrive in San Jose for that fix. (This used to be commit af34710d4da1841653624fe304b1c8d812c0fdd9)
* r141: A number of changes to get things working on FreeBSD and reduce the ↵Richard Sharpe2007-10-101-0/+9
| | | | | | | | | | | | | | | | | breakage caused by someone recently ... 1. Add configure check HAVE_COMPARISON_FN_T to see if this is defined. I have not checked this on Linux yet, but will do so soon. 2. Add the definitions of malloc_p, realloc_p etc. 3. Check for LDAP and don't build stuff that depends on LDAP if we don't\ have it. It currently builds on FreeBSD but there is one warning printed out at the end. (This used to be commit 7b34fbe0f2ef175e5504e34e4f3cdf9a0563970f)
* r134: - added ldb to the build of smbdAndrew Tridgell2007-10-101-0/+1
| | | | | - fixed build of the ldb registry backend (This used to be commit 0b66590330603efaa816fd2348c05a994a1580ef)
* r20: Add the registry library. Still needs a lot of work,Jelmer Vernooij2007-10-101-0/+1
| | | | | see source/lib/registry/TODO for details. (This used to be commit 7cab3a00d7b4b1d95a3bfa6b28f318b4aaa5d493)
* switch from SIG_ATOMIC_T to sig_atomic_tAndrew Tridgell2004-03-281-4/+2
| | | | (This used to be commit b881b72cb9cb5a4a8ad27b621e8cbe9dcfa7ba7f)