summaryrefslogtreecommitdiffstats
path: root/source3/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* fix %a variable for Windows 2003 -> Win2K3Gerald Carter2003-12-051-10/+14
| | | | (This used to be commit 2f43a1c166dfc8679a9d03bd0f3cf9303aafcf74)
* support munged dial for ldapsam; patch from Aurélien Degrémont; bug 800Gerald Carter2003-12-041-0/+1
| | | | (This used to be commit 1c3c16abc94d197e69e3350de1e5cc1e99be4322)
* don't crash on a NULL priviledge pointer; patch from Jianliang LuGerald Carter2003-12-041-0/+6
| | | | (This used to be commit 2742e813fea2366f91bec62dca407f65ad5c4623)
* Get a little paranoid about memfree use in convert_string_allocate..Jeremy Allison2003-12-011-7/+6
| | | | | | Looking at crash bugs #809 and others. Jeremy. (This used to be commit cd2075580b0f35c8a414c995f03834c01efaa9be)
* fix inverted logic caused by s/strcmp/strequal/; host allow/deny works ↵Gerald Carter2003-12-011-1/+1
| | | | | | again; bug 846 (This used to be commit c816b44a9c1278d756f63044bb3a3bce3afec9b3)
* Clean up a comment noticed by Jonathan Shao@Panasas.com and remove anRichard Sharpe2003-11-261-3/+2
| | | | | obsolete comment by Luke Leighton. (This used to be commit 316f83add76b56fe102f5dc4c9ce3a0413d9a1f4)
* Changes all over the shop, but all towards:Andrew Bartlett2003-11-221-4/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - NTLM2 support in the server - KEY_EXCH support in the server - variable length session keys. In detail: - NTLM2 is an extension of NTLMv1, that is compatible with existing domain controllers (unlike NTLMv2, which requires a DC upgrade). * This is known as 'NTLMv2 session security' * (This is not yet implemented on the RPC pipes however, so there may well still be issues for PDC setups, particuarly around password changes. We do not fully understand the sign/seal implications of NTLM2 on RPC pipes.) This requires modifications to our authentication subsystem, as we must handle the 'challege' input into the challenge-response algorithm being changed. This also needs to be turned off for 'security=server', which does not support this. - KEY_EXCH is another 'security' mechanism, whereby the session key actually used by the server is sent by the client, rather than being the shared-secret directly or indirectly. - As both these methods change the session key, the auth subsystem needed to be changed, to 'override' session keys provided by the backend. - There has also been a major overhaul of the NTLMSSP subsystem, to merge the 'client' and 'server' functions, so they both operate on a single structure. This should help the SPNEGO implementation. - The 'names blob' in NTLMSSP is always in unicode - never in ascii. Don't make an ascii version ever. - The other big change is to allow variable length session keys. We have always assumed that session keys are 16 bytes long - and padded to this length if shorter. However, Kerberos session keys are 8 bytes long, when the krb5 login uses DES. * This fix allows SMB signging on machines not yet running MIT KRB5 1.3.1. * - Add better DEBUG() messages to ntlm_auth, warning administrators of misconfigurations that prevent access to the privileged pipe. This should help reduce some of the 'it just doesn't work' issues. - Fix data_blob_talloc() to behave the same way data_blob() does when passed a NULL data pointer. (just allocate) REMEMBER to make clean after this commit - I have changed plenty of data structures... (This used to be commit f3bbc87b0dac63426cda6fac7a295d3aad810ecc)
* Ensure that items in a list of strings containing whitespaceGerald Carter2003-11-221-1/+1
| | | | | | | | | | | | are written out surrounded by single quotes. This means that both double and single quotes are now used to surround strings in smb.conf. This is a slight change from the previous behavior but needed or else things like printer admin = +ntadmin, 'VALE\Domain, Admin' get written to smb.conf by SWAT. (This used to be commit 5bf91c79d620e34ac71d72c80f74e47754d49dcb)
* Look at error before using it in debug statement.Jeremy Allison2003-11-191-3/+2
| | | | | Jeremy. (This used to be commit 69550332f33496b0a513914e2290fdb256bc2958)
* Added useful information to debug lines.Rafal Szczesniak2003-11-191-4/+4
| | | | | | | | Patch by metze. rafal (This used to be commit 2eef3c7bc182bb2c0c483190570ee1a297047ad2)
* Useful debug message. Patch by metze.Rafal Szczesniak2003-11-181-2/+4
| | | | | rafal (This used to be commit 8b06364b53ea01ec7a21f3fbe86afad02fe21dd8)
* Remove unneeded second open for filename ending in '.' now we know it'sJeremy Allison2003-11-181-1/+1
| | | | | | a mangled name. Added const. Fix inspired by Andrew Bartlett ideas. Jeremy. (This used to be commit 87eb336d659dfa5e92b495dd76a0f2e534931293)
* Squelch some warnings with more casty-foo.Richard Sharpe2003-11-131-2/+2
| | | | (This used to be commit d165a49d860443741e57458b8a819c6d54824fc5)
* Fix a couple of warnings with casts.Richard Sharpe2003-11-131-2/+2
| | | | (This used to be commit 58d7a51c5762a444aae6a795a3703269134423d7)
* Implement %i-Macro for the locally used IP address. With this you can againVolker Lendecke2003-11-072-0/+31
| | | | | | | | have virtual hosts with different configurations on a single smbd even on port 445. Volker (This used to be commit 3a7c8c4f0e7fcfc2e20e1ad5e4b8e3c215ef1f0d)
* Simple rename of get_socket_addr to get_peer_addr and get_socket_name toVolker Lendecke2003-11-072-13/+13
| | | | | | | | | | | get_peer_name. This is to get closer to the getsockname/getpeername system functions. Next step will be the %i macro for the local IP address. I still want to play %L-games in times of port 445. Volker (This used to be commit d7162122eaf5d897e5de51604e431bfbaa20e905)
* Undo accidentally committed stuff.Tim Potter2003-11-061-111/+0
| | | | (This used to be commit 0a79519bc4b92b2f6e88b921d5ede761cc8ee2af)
* Ignore tallocdump binary.Tim Potter2003-11-062-2/+113
| | | | (This used to be commit addeb1c6c90faf5842db4a75f8db8d2325905b03)
* make sure that we expand %H (from vl); bug 612Gerald Carter2003-11-051-0/+3
| | | | (This used to be commit a77f5924304d03d8033d1ef5f6526373f5b67aa3)
* Use the actual size of the buffer in strftime instead of a made up valueTim Potter2003-11-041-1/+1
| | | | | which just happens to be less than sizeof(fstring). Closes #713. (This used to be commit 761e13da4ef8294f0b131ad7f672d023b0d222f6)
* Fix for bug #703, try lowercase netgroups lookups.Jeremy Allison2003-11-041-1/+18
| | | | | Jeremy. (This used to be commit 8b06385e008a9433fa6efb941b997f7d6b182a65)
* Fix more 64-bit printf warnings.Tim Potter2003-11-033-8/+11
| | | | (This used to be commit 23443e3aa079710221557e18158d0ddb8ff48a36)
* Cast to fix warning on Solaris sendfile - check buildfarm outputTim Potter2003-11-021-1/+1
| | | | | to see if this works! Bug #706. (This used to be commit 67ab91825db9b81b8b4f35e86a7eede0c7df5621)
* Fixes to check for wraps which could cause coredumps.Jeremy Allison2003-10-291-0/+1
| | | | | Jeremy. (This used to be commit ad06edd1bb58cc5e2c38a364b1af96a933b770af)
* Some spelling mistakes in aclocal.m4 and the va_copy fixups in configure.inRichard Sharpe2003-10-241-0/+4
| | | | | and lib/snprintf. Check for va_copy first, and then look for __va_copy. (This used to be commit 8b592740b6294555c461d7eee003e2bd5f4352a4)
* After a phonecall with jra finally commit this.Volker Lendecke2003-10-232-12/+5
| | | | | | | | | | | | | | | This changes our behaviour when the setresuid call is available. We now not only change the effective uid but also the real uid when becoming unprivileged. This is mainly for improved AFS compatibility, as AFS selects the token to send to the server based on the real uid of the process. I tested this with a W2k server with two non-root 'runas' sessions. They come in via a single smbd as two different users using two session setups. Samba on Linux can still switch between the two uids, proved by two different files created via those sessions. Volker (This used to be commit 556c62f93535c606122b22e7e843d9da9a1cd438)
* Volker's fix for bug #668. Change the \n after the password prompt to goJim McDonough2003-10-231-2/+3
| | | | | to tty instead of stdout. (This used to be commit 3cec478b82359c527065c3a8d44daae96b7ac57e)
* Put strcasecmp/strncasecmp on the banned list (except for needed callsJeremy Allison2003-10-226-17/+23
| | | | | | | in iconv.c and nsswitch/). Using them means you're not thinking about multibyte at all and I really want to discourage that. Jeremy. (This used to be commit d7e35dfb9283d560d0ed2ab231f36ed92767dace)
* Patch from Stefan Metzmacher <metze@metzemix.de> to fix signing problemsJeremy Allison2003-10-211-2/+17
| | | | | | when reverse connecting back to a client for printer notify. Jeremy. (This used to be commit 06aa434c3fdb139e3f3143d19413556945cbcd4f)
* Delete unused label to fix compiler warning.Tim Potter2003-10-141-1/+0
| | | | (This used to be commit e34d21af3882a034810737039dbaae4d45e2645c)
* make nt-time <-> unix-time functions nearly reversibleSimo Sorce2003-10-121-2/+5
| | | | (This used to be commit bda64a11f7c11ca303122299c3e41c49e6afd933)
* Move sysquotas autoconf tests to a seperate file.Jelmer Vernooij2003-10-091-99/+1
| | | | | Patch by Stefan Metzmacher <metze@metzemix.de> (This used to be commit 9f6cd8177db9a88f681f28a8dca044595ddaae88)
* split some security related functions in their own files.Simo Sorce2003-10-063-151/+1
| | | | | | | | | (no need to include all of smbd files to use some basic sec functions) also minor compile fixes couldn't compile to test these due to some kerberos problems wirh 3.0, but on HEAD they're working well, so I suppose it's ok to commit (This used to be commit c78f2d0bd15ecd2ba643bb141cc35a3405787aa1)
* This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This ↵cvs2svn Import User2003-10-064-0/+1270
|\ | | | | | | used to be commit 096b997588880991af8e07034cc4f041daa87b97)
| * split some security related functions in their own files.Simo Sorce2003-10-067-151/+1271
| | | | | | | | | | | | | | (no need to include all of smbd files to use some basic sec functions) also minor compile fixes (This used to be commit 66074d3b097d8cf2a231bf08c7f4db62da68189d)
| * Fixed silly typo checking for signal_handler not signal.Jeremy Allison2003-10-011-1/+1
| | | | | | | | | | Jeremy. (This used to be commit 202d4e46527993d359df7cd04fb611c22cc920c3)
| * Allow ^C to interrupt smbpasswd if using our getpass.Jeremy Allison2003-10-011-62/+86
| | | | | | | | | | Jeremy. (This used to be commit 8a284463458cfaaff9986bbc459dfc113f921c6c)
| * merge of parameter changes from 3.0 and fix for bug 550Gerald Carter2003-10-012-4/+6
| | | | | | | | (This used to be commit b6433f5db77a1d62309946c6f23c18c6c299d0c5)
| * Merge from 3.0:Tim Potter2003-09-291-1/+1
| | | | | | | | | | | | >iconv isn't const safe. Neither should smb_iconv be. >Jeremy. (This used to be commit 7bd450f8b678e835ba4f9cfdc3d096b04da6f8f7)
| * Merge from 3.0:Tim Potter2003-09-291-5/+7
| | | | | | | | | | | | | | | | >Fix for #480. Change the interface for init_unistr2 to not take a length >but a flags field. We were assuming that 2*strlen(mb_string) == length of ucs2-le string. >This is not the case. Count it after conversion. >Jeremy. (This used to be commit e2ab9e54cd0ec0002175cf18ff364f4aebaf85a0)
| * * sync more files from 3.0Gerald Carter2003-09-242-24/+40
| | | | | | | | | | * set version string to "CVS 3.1.0alpha1" (This used to be commit c6a61ffcbd0c95afd94bd33fd832b24bc8209de5)
| * fix some warnings found by the Sun C compilerGerald Carter2003-09-221-1/+1
| | | | | | | | (This used to be commit 585764305aa84a7732f71f2e01227e1a6a08664f)
| * Ensure that dup_sec_desc copies the 'type' field correctly. This causedJeremy Allison2003-09-191-2/+2
| | | | | | | | | | | | | | | | me to expose a type arguement to make_sec_desc(). We weren't copying the SE_DESC_DACL_AUTO_INHERITED flag which could cause errors on auto inherited checks. Jeremy. (This used to be commit 546b2271c08735ac1049a453abac996d794aa364)
| * Unregister event fix from metze.Jeremy Allison2003-09-171-3/+6
| | | | | | | | | | Jeremy. (This used to be commit b3b2b3d5e7c9d4995890bf7b156fc1176b042cfc)
| * Alias charset 646 internallyAlexander Bokovoy2003-09-151-0/+1
| | | | | | | | (This used to be commit f4eb7acc7dfc400cc6524dccdd8081acd707f937)
| * Merge from Samba 3.0:Tim Potter2003-09-151-15/+33
| | | | | | | | | | | | | | >Still on my mb rampage. Ensure smbldap_make_mod() correctly detects old >values. >Jeremy. (This used to be commit 9df18a6c4ea30545297f9e5a0b10b440e6a0687e)
| * Merge from Samba 3.0:Tim Potter2003-09-152-28/+65
| | | | | | | | | | | | | | | | | | >Fix for MacOS/X which uses STUPID BROKEN UNICODE COMPOSE CHARACTERS ! >(rant off :-). Inspired by work from Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>. >Also add MacOSX/Darwin configure fixes. >Jerry - can we put this in 3.0 release ? :-). >Jeremy. (This used to be commit 67acde75d3569b612f87646ff0740f8020e8fdcf)
| * Merge from Samba 3.0:Tim Potter2003-09-151-1/+1
| | | | | | | | | | | | >For some reason testparm runs at debug level 2 which causes the module probe functions to >display verbose debugs. Increase the probe debugs to level 3. (This used to be commit be91bbd570bd94f67001aab9cfb2baf44b390097)
| * Remove another dead file.Tim Potter2003-09-101-719/+0
| | | | | | | | (This used to be commit a5656a5756b3c1061d683d664a7f087182b39b47)
| * sync 3.0 into HEAD for the last timeGerald Carter2003-09-0920-225/+1158
| | | | | | | | (This used to be commit c17a7dc9a190156a069da3e861c18fd3f81224ad)