summaryrefslogtreecommitdiff
path: root/source3/lib
AgeCommit message (Collapse)AuthorFilesLines
2003-11-07From 3_0:Volker Lendecke2-0/+31
Implement %i-Macro for the locally used IP address. With this you can again have virtual hosts with different configurations on a single smbd even on port 445. Volker (This used to be commit 3a5130f231a0fd6f7490d3b028361ff0458bfae1)
2003-11-07From 3_0:Volker Lendecke2-13/+13
Simple rename of get_socket_addr to get_peer_addr and get_socket_name to 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 99311b437be050fd9ee656cd184f299993d20bfb)
2003-11-05Merge of 64-bit printf warning fixes.Tim Potter3-8/+11
(This used to be commit a6cc763333943bc6e360bb7e78cf9bfb1bc936e8)
2003-11-05Merge from 3.0:Tim Potter1-1/+1
Revision 1.42.2.8: Use the actual size of the buffer in strftime instead of a made up value which just happens to be less than sizeof(fstring). Closes #713. (This used to be commit 45c28f8a2723b5e942d13d1c6e5db757921fb64f)
2003-11-05Merge from 3.0:Tim Potter1-1/+1
Revision 1.10.2.6: Cast to fix warning on Solaris sendfile - check buildfarm output to see if this works! Bug #706. (This used to be commit 06c4fc35a7226e719c2748b818ecf4e18dd1a4fb)
2003-11-05make sure that we expand %H (from vl); bug 612Gerald Carter1-0/+3
(This used to be commit d1cf39e2ecee7e76953a5eee386f723a46bf9b14)
2003-11-04Fix for bug #703, try lowercase netgroups lookups.Jeremy Allison1-1/+18
Jeremy. (This used to be commit b7ce6294bbff9ef82b34d900fe836ff2e3c5abe1)
2003-10-30Add string to uuid fn. Thanks aliguori.Jim McDonough1-1/+84
(This used to be commit 5f9fe8304f037f91fa765e64580a7119aeb201dd)
2003-10-30Last of the GUID->struct uuid changes.Jim McDonough1-7/+7
GUID has been removed. If you are dealing with a flattened version of a [gu]uid, use UUID_FLAT. smb_pack_uuid and smb_unpack_uuid will switch between the two. I'm not sure exactly what the genparse stuff is doing here, so I just switched it to a UUID_FLAT (no functional change), but I suspect this may not be the right way to go. (This used to be commit 001e9d0e814109a26d598001b3c23dfdb04510ff)
2003-10-30Nearing the end of the GUID -> struct uuid changes.Jim McDonough1-6/+6
(This used to be commit 0e8fcfac702515f8870c979262bf881d1155efdc)
2003-10-30Ok, nearing the end of the GUID->struct uuid changes.Jim McDonough1-2/+2
Takes care of secdescs. Had to move the uuid marshall/unmarshalling code to parse_misc, because it's needed outside of parse_rpc.c (for no-auth calls) (This used to be commit 5d2bb079b65ccfec14604d8dcf0ce789d1795b46)
2003-10-30First round of merging various UUID structures.Jim McDonough2-55/+26
This eliminates RPC_UUID. It creates the following struct: struct uuid { uint32 time_low; uint16 time_mid; uint16 time_hi_and_version; uint8 clock_seq[2]; uint8 node[6]; }; which replaces RPC_UUID and various random struct uuid definitions and a flat version: #define UUID_FLAT_SIZE 16 typedef struct uuid_flat { uint8 info[UUID_FLAT_SIZE]; } UUID_FLAT; which pretty much looks like GUID (which I will start eliminating). I want us to use the FLAT one only on the wire (perhaps in files, too?), and I want it to be obvious to the coder that it is the FLAT version. This leaves a couple of compiler warnings, where GUID isn't completely replaced by FLAT_UUID yet...I'll get to those soon. (This used to be commit 1532b5d2e3c61df232b16394acedf6eac387588b)
2003-10-29Fixes to check for wraps which could cause coredumps.Jeremy Allison1-0/+1
Jeremy. (This used to be commit 124a8ddae63adff4f601242a8e6d05abcaf4d9bf)
2003-10-24Check for va_copy before you check for __va_copy, since va_copy is theRichard Sharpe1-0/+4
actual standard, and __va_copy was the proposed standard. (This used to be commit 4ab7947e601e61cacd7ff541ee881850d9808387)
2003-10-23Merge from 3_0:Volker Lendecke2-12/+5
After a phonecall with jra finally commit this. 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 8a75e2dfb6ee9099e7f9a970c522e71ab144d919)
2003-10-23Volker's fix for bug #668. Change the \n after the password prompt to goJim McDonough1-2/+3
to tty instead of stdout. (This used to be commit fb503bb418fcbee20d2218650904b26b512106ed)
2003-10-22Put strcasecmp/strncasecmp on the banned list (except for needed callsJeremy Allison6-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 5c050a735f86927c7ef2a98b6f3a56abe39e4674)
2003-10-21Patch from Stefan Metzmacher <metze@metzemix.de> to fix signing problemsJeremy Allison1-2/+17
when reverse connecting back to a client for printer notify. Jeremy. (This used to be commit 7fde193efeb856ec325d5d563f1e710c45dc65d7)
2003-10-14Delete unused label to fix compiler warning.Tim Potter1-1/+0
(This used to be commit e982dd5bc4c7c0215bd4f2daf13da506c00b7cb9)
2003-10-13So here it is a non-intrusive patch with my latest work on gums (theSimo Sorce2-4/+19
laternative to the current passdb). Currently it is run through a comatibility module in the passdb layer, with a subset of the functionality it may provide. It is still work in progress, but as someone asked me about it, and as it should make no difference to the normal code, I tought it was a good idea to put it into. It adds a dependency on perl. I know it is not very nice, but I'm sure we will work out a solution for that. As always blame me if I break something, but try to fix yourself, as I am busy-busy-busy :-) Simo. (This used to be commit 7b3c94b5cfc1a9ceb430613353a937345f2eda74)
2003-10-12make nt-time <-> unix-time functions nearly reversibleSimo Sorce1-2/+5
(This used to be commit 98d60dc1c7027a50f720933eb8d6ffbfb4276fa5)
2003-10-09Move sysquotas autoconf tests to a seperate file in tests/Jelmer Vernooij1-99/+1
Patch by Stefan Metzmacher <metze@metzemix.de> (This used to be commit cd3e4882fcf2437f4140557608e671284d0e92b4)
2003-10-06split some security related functions in their own files.Simo Sorce7-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)
2003-10-01Fixed silly typo checking for signal_handler not signal.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 202d4e46527993d359df7cd04fb611c22cc920c3)
2003-10-01Allow ^C to interrupt smbpasswd if using our getpass.Jeremy Allison1-62/+86
Jeremy. (This used to be commit 8a284463458cfaaff9986bbc459dfc113f921c6c)
2003-10-01merge of parameter changes from 3.0 and fix for bug 550Gerald Carter2-4/+6
(This used to be commit b6433f5db77a1d62309946c6f23c18c6c299d0c5)
2003-09-29Merge from 3.0:Tim Potter1-1/+1
>iconv isn't const safe. Neither should smb_iconv be. >Jeremy. (This used to be commit 7bd450f8b678e835ba4f9cfdc3d096b04da6f8f7)
2003-09-29Merge from 3.0:Tim Potter1-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)
2003-09-24* sync more files from 3.0Gerald Carter2-24/+40
* set version string to "CVS 3.1.0alpha1" (This used to be commit c6a61ffcbd0c95afd94bd33fd832b24bc8209de5)
2003-09-22fix some warnings found by the Sun C compilerGerald Carter1-1/+1
(This used to be commit 585764305aa84a7732f71f2e01227e1a6a08664f)
2003-09-19Ensure that dup_sec_desc copies the 'type' field correctly. This causedJeremy Allison1-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)
2003-09-17Unregister event fix from metze.Jeremy Allison1-3/+6
Jeremy. (This used to be commit b3b2b3d5e7c9d4995890bf7b156fc1176b042cfc)
2003-09-15Alias charset 646 internallyAlexander Bokovoy1-0/+1
(This used to be commit f4eb7acc7dfc400cc6524dccdd8081acd707f937)
2003-09-15Merge from Samba 3.0:Tim Potter1-15/+33
>Still on my mb rampage. Ensure smbldap_make_mod() correctly detects old >values. >Jeremy. (This used to be commit 9df18a6c4ea30545297f9e5a0b10b440e6a0687e)
2003-09-15Merge from Samba 3.0:Tim Potter2-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)
2003-09-15Merge from Samba 3.0:Tim Potter1-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)
2003-09-10Remove another dead file.Tim Potter1-719/+0
(This used to be commit a5656a5756b3c1061d683d664a7f087182b39b47)
2003-09-09sync 3.0 into HEAD for the last timeGerald Carter20-225/+1158
(This used to be commit c17a7dc9a190156a069da3e861c18fd3f81224ad)
2003-08-02port latest changes from SAMBA_3_0 treeSimo Sorce15-336/+462
(This used to be commit 3101c236b8241dc0183995ffceed551876427de4)
2003-07-16ading new files from 3.0Gerald Carter2-0/+2225
(This used to be commit 99feae7b5b1c229a925367b87c0c0f636d9a2d75)
2003-07-16trying to get HEAD building again. If you want the codeGerald Carter16-122/+470
prior to this merge, checkout HEAD_PRE_3_0_0_BETA_3_MERGE (This used to be commit adb98e7b7cd0f025b52c570e4034eebf4047b1ad)
2003-05-29Fix the events API. Patch by metze with some minor modifications.Jelmer Vernooij1-51/+103
(This used to be commit df24c4e839b3de0dc23400463d7489a991f61f49)
2003-05-28Merge of rpcstr_pull() termination fixes from 3.0Tim Potter1-1/+4
(This used to be commit d41705dec6bed752acfe3210c73a949101dc23f6)
2003-05-28Merge of formatting fixups from 3.0Tim Potter1-4/+9
(This used to be commit 43e01fb2306f35931256dfda6803bd887f28059f)
2003-05-28Merge of pull_ascii() and pull_ucs2() termination fixes from 3.0Tim Potter1-0/+4
(This used to be commit bd97a76388b3f16d287c25579f02afe072cdec25)
2003-05-27Fix unused variable warning.Tim Potter1-1/+2
(This used to be commit 0a80db5bde14e19d79411d832d51430d1b1c3454)
2003-05-27Merge from 3.0: Fix set_local_machine_name() for both *SMBSERVER andTim Potter1-0/+11
*SMBSERV as per comments in loadparm.c (This used to be commit a6cb33c5bf0e26d8092c06a2cc01a6678109fb68)
2003-05-27Jelmer was really excited about copyrights this year.Tim Potter1-1/+1
(This used to be commit 30a1b517fca6554c3beb5cc33fa0299d1376a542)
2003-05-14syncing LDAP schema changes with Samba_3_0Gerald Carter1-9/+9
(This used to be commit a1326ea34831bf49942f7bcb954999091c3ea820)
2003-05-14Move some #ifdefs and function prototypes around to avoid a compilerTim Potter1-13/+14
warning when we have a working version of snprintf() (This used to be commit 080a943e24f1dd02ebdf31ec3e76a1c3d19834df)