summaryrefslogtreecommitdiffstats
path: root/source3/lib
Commit message (Collapse)AuthorAgeFilesLines
* s3: Allow child processes to exit gracefully if we are out of fdsMarc VanHeyningen2009-05-291-6/+6
| | | | | | | | | | | When we run out of file descriptors for some reason, every new connection forks a child that immediately panics causing smbd to coredump. This seems unnecessarily harsh; with this code change we now catch that error and merely log a message about it and exit without the core dump. Signed-off-by: Tim Prouty <tprouty@samba.org> (cherry picked from commit 1c8f9892010ce8cc754089b25313c6bc8e622165)
* s3-privileges: add privilege_delete_account().Günther Deschner2009-05-261-0/+28
| | | | | | Guenther (cherry picked from commit dccecdf33850ec4d763b8b0e7ba7be7a8eb873de) (cherry picked from commit e3be289df092f3b16bdd06904cd543920e3da307)
* s3-privileges: remove trailing whitespace from privileges codes.Günther Deschner2009-05-262-105/+105
| | | | | | Guenther (cherry picked from commit 118f343b05ba86a1f8fd28394433aa6e961e2d6c) (cherry picked from commit 0f6e4c62c97e983a99ff2c917b0c7f2db3ca289b)
* s3-netdomjoin-gui: allow to switch between workgroups/domains with the same ↵Günther Deschner2009-05-261-2/+4
| | | | | | | | name. Guenther (cherry picked from commit d800ee50335ecbd2dbd3b451a18a00780ac28f04) (cherry picked from commit 9db1fc45786872d938939bd33b3b867ee599c9a2)
* s3-netdomjoin-gui: cosmetic fix for empty hostnames.Günther Deschner2009-05-261-0/+1
| | | | | | Guenther (cherry picked from commit 8c74d31962eb82f7dcc07000aeb27a84a633a225) (cherry picked from commit c03287c2f8d03363a26b0518b6370ddfaa7b5915)
* s3-netdomjoin-gui: only gray out labels when not root and not connecting toGünther Deschner2009-05-261-3/+3
| | | | | | | | remote machines. Guenther (cherry picked from commit 473bf41d20b25bd7d98ea6647e6295b3fb6f34e1) (cherry picked from commit 7115126d0f7d97c3633b62e76e2fdc681dedb36d)
* Fix bug 5681: Do not limit the number of network interfacesVolker Lendecke2009-05-263-22/+39
| | | | | | | | | | | Jeremy as far as I can see there is no real technical reason to limit the number of interfaces. If you like this patch, can you please merge it to 3.4? If you don't please tell me :-) Thanks, Volker (cherry picked from commit 71e835942522992c08267da74d480ad6552c6508)
* s3-netapi: implement NetShutdownInit_r and NetShutdownAbort_r.Günther Deschner2009-05-261-2/+49
| | | | | | Guenther (cherry picked from commit 8fdb499497f8d4f4a1ca93ffc94de8b57c2c1568) (cherry picked from commit efaf83fadea2e7b13441d08d82a3a1d27571d16d)
* s3-netapi: add example code for NetShutdownInit and NetShutdownAbort.Günther Deschner2009-05-263-1/+183
| | | | | | Guenther (cherry picked from commit 80f0d819fb85bdfbd85e910fccc62e778bea3a83) (cherry picked from commit de33ca38880aa10fbd57ce45f2defdf83c379879)
* s3-netapi: add NetShutdownInit and NetShutdownAbort to public API.Günther Deschner2009-05-261-0/+36
| | | | | | Guenther (cherry picked from commit 1ddc4829aec61d952aaf3185cc56d53d4a9b5c3c) (cherry picked from commit afca1d6cd2a184d7b8f70847db143761d5497ac6)
* s3-netapi: add NetShutdownInit and NetShutdownAbort skeletons.Günther Deschner2009-05-263-0/+163
| | | | | | Guenther (cherry picked from commit 8fd3c8902c5e953a0ddf184b08f9e37f954ee12e) (cherry picked from commit fb8cbd7f7e078754faf7fb0b9f071aecbb19d401)
* s3-netdomjoin-gui: prepare to call out for NetRenameMachineInDomain() to ↵Günther Deschner2009-05-261-1/+48
| | | | | | | | | | rename computers in domains. Guenther (cherry picked from commit 6154b031f4521fad4b5c460643da59dd918b240a) (cherry picked from commit a53f9e695bd09b166085d8c714f323ff1d0ce1c6)
* s3-netdomjoin-gui: Fix join prompt dialog test.Günther Deschner2009-05-261-1/+1
| | | | | | Guenther (cherry picked from commit d3a9ee689d636f13f7935d1ddfccfdd4f4e8527a) (cherry picked from commit 7533e32075ac8b162c230ed112974f421e0d1569)
* s3-netdomjoin-gui: use NetServerGetInfo() level 101 to get hostname.Günther Deschner2009-05-261-2/+7
| | | | | | Guenther (cherry picked from commit 3e2975b3bdd247d1e3e7c74bada2f85a1936acaf) (cherry picked from commit 4298e296f02a4df182d5d2ee2623bc869b321c53)
* s3-netdomjoin-gui: inspect the correct computername string beforeGünther Deschner2009-05-261-1/+1
| | | | | | | | enabling/disabling the change button. Guenther (cherry picked from commit 20b5fc02d2e97dbd51d84cc05ac887e274b14866) (cherry picked from commit c7ca84fd4a4c58771b47252248b00e6bb5c411a1)
* Fix bug 6157Volker Lendecke2009-05-261-0/+56
| | | | | | This patch picks the alphabetically smallest one of the multi-value attribute "uid". This fixes a regression against 3.0 and also becomes deterministic. (cherry picked from commit b1d864d1006aab53a1692175adf2c64897eeffd9)
* Add checks for non_root mode to help buildfarm spoolss tests.Jeremy Allison2009-05-261-14/+18
| | | | | | Reviewed by Guenther. Jeremy. (cherry picked from commit 11041fe1c24575c25d3ac82e61d9fb2b651db3aa)
* Do not crash in ctdbd_traverse if ctdbd is not aroundVolker Lendecke2009-05-261-0/+5
| | | | (cherry picked from commit 7ad42cc74322a1435c9cce9b286b13cd9b490ec6)
* Fix bug 6136: New AFS syscall conventionsGeza Gemes2009-05-262-2/+21
| | | | | | | | | Haven't checked this myself, but as I've already got several reports that Samba won't compile against current OpenAFS anymore, I just believe Geza Gemes. This patch only affects AFS code, so it should not hurt anything else. Volker (cherry picked from commit 70231f2d88b96da365e56c8d077749366509a4e1)
* s3-netapi: Fix Bug #6309: support remote unjoining of Windows 2003 or greater.Günther Deschner2009-05-261-1/+2
| | | | | | | | Found by David Markey <admin@dmarkey.com>. Thanks! Guenther (cherry picked from commit ab4b8c9c0438bc5afca17e3ebf05dde6f98bc0aa) (cherry picked from commit 942d47e5ed583e29afaa005f9ca6251373db8e2f)
* Re-import the v3-3 version of str_list_make().Volker Lendecke2009-05-261-7/+59
| | | | | | | | | | | | | | | The merged version behaves differently: "Domain Users" is parsed into two values, as it does not look at quotes. Samba3 users depend on the ability do say for example valid users = "domain users" which would not work anymore with the merged version. Thanks to Björn Jacke for testing this! Volker (cherry picked from commit 5b9477f9930d0c6511c70409561c04c5729bcc05)
* Fix Coverity ID 884: DEADCODEVolker Lendecke2009-04-281-3/+4
| | | | (cherry picked from commit cb8c7f2291897cc6d9bffdb48f4baca80161c2f8)
* s3-secdesc: move all winreg access bits to IDL.Günther Deschner2009-04-281-1/+1
| | | | | | Guenther (cherry picked from commit 38264bb3b86a3c9da941070f29ec08227c471d2b) (cherry picked from commit 904bc5011fc7df40111f493ff28972640b95c0d1)
* Fix bug #6089 - Winbind samr_OpenDomain not possible with Samba 3.2.6+Jeremy Allison2009-04-283-37/+36
| | | | | | | | What a difference a name makes... :-). Just because something is missnamed SAMR_ACCESS_OPEN_DOMAIN, when it should actually be SAMR_ACCESS_LOOKUP_DOMAIN, don't automatically use it for a security check in _samr_OpenDomain(). Jeremy. (cherry picked from commit 1994a8a5db5c3abd6292b81aa975e7b8fe8311d0)
* netdomjoin-gui: make sure to grey out change fields when not running as root.Günther Deschner2009-04-151-0/+15
| | | | | | Guenther (cherry picked from commit ca3de0103b545c86c8507dfc7d042f1838d5dfb2) (cherry picked from commit cb96e70a1d9112d9e4fff1fda4cf64abc7985347)
* s3-eventlog: split out evlog_convert_tdb_to_evt().Günther Deschner2009-04-151-0/+74
| | | | | | Guenther (cherry picked from commit 47bda3f3c7095044ae4c9b1535198be6d052060d) (cherry picked from commit eaf85ca22b441d4632eed0400c3ad61026a0f2ac)
* s3-eventlog: move rpc_server/srv_eventlog_lib.c out of rpc_server.Günther Deschner2009-04-151-0/+960
| | | | | | Guenther (cherry picked from commit 98d703a6b7c102db49b6cdc2a57545a90efefabf) (cherry picked from commit 76fdbdcb3a58d90d669101fe303e5ccc14992b26)
* s3-util-sock: add ismyaddr() check in is_myname_or_ipaddr().Günther Deschner2009-04-151-0/+4
| | | | | | Guenther (cherry picked from commit 78951bd7f4d8bfe13691b3291151c8dedd8e29ef) (cherry picked from commit e674c9d469d9ae4d63cd34af04b2634f7c370573)
* s3:lib Use push_ucs2_talloc() in ms_fnmatch()Andrew Bartlett2009-04-151-7/+7
| | | | | | Signed-off-by: Günther Deschner <gd@samba.org> (cherry picked from commit 6859b805e84af91eca641ec1b91b844cbdab4065) (cherry picked from commit e27c0d668bd93f7d64a2fe0c6aef6edc63af64d4)
* s3:charcnv Remove unused unistrcpy() and unistrlen()Andrew Bartlett2009-04-151-37/+0
| | | | | | Signed-off-by: Günther Deschner <gd@samba.org> (cherry picked from commit 0c22d55134b39a6bc983b4f852f623a51af4d362) (cherry picked from commit 779ddf78f13940ef402331b68d86276241479a86)
* s3:charcnv Remove unused unistr2 functionsAndrew Bartlett2009-04-151-116/+0
| | | | | | | | | | Natrually, the hard work to make these unsued was done by GD, not me :-) Andrew Bartlett Signed-off-by: Günther Deschner <gd@samba.org> (cherry picked from commit 80163b5ac5bfff3698aeb9c5c43a2cc94947055c) (cherry picked from commit 22e82a52ded2ae43edb20c0898bd0a9316e563a2)
* s3:charcnv Remove unused ucs2_to_unistr2()Andrew Bartlett2009-04-151-46/+0
| | | | | | Signed-off-by: Günther Deschner <gd@samba.org> (cherry picked from commit 5fff53882002bf5378690ddeb8251e2c99490266) (cherry picked from commit 6cf0e88ee6cefdab7d2d5f272e6d9e23005f9b61)
* s3/smbconf_reg: Fix typo.Karolin Seeger2009-04-151-1/+1
| | | | | | Karolin (cherry picked from commit 6343cab3086f5795c8428eddcb966ba8b72d3511) (cherry picked from commit 78a2b98d92d5a651bdc07659e717b8a2249373e9)
* s3:smbldap convert the easy cases to push_utf8_talloc()Andrew Bartlett2009-04-151-8/+8
| | | | | | Signed-off-by: Günther Deschner <gd@samba.org> (cherry picked from commit 042aaffabf602560877558ac167c69257862b124) (cherry picked from commit 44e05e848c622750ae632386d94f63e107a59e1d)
* s3:smbldap Remove smbldap_get_dnAndrew Bartlett2009-04-151-26/+4
| | | | | | | | This removes one more caller to pull_utf8_allocate() Signed-off-by: Günther Deschner <gd@samba.org> (cherry picked from commit 9512640155f3f249e4fd5ad076375592cbd65fc6) (cherry picked from commit 03c7459fd259ca898c5fde932c02ccdc37dcbd34)
* Tidy up some convert_string_internal error cases, found by Andrew Bartlett.Jeremy Allison2009-04-151-6/+19
| | | | | Jeremy. (cherry picked from commit ee729830b872f1cb760ad91b808bf200bc34773d)
* Fix bug #6195 - Migrating from 3.0.x to 3.3.x can fail to update passdb.tdb ↵Jeremy Allison2009-04-151-0/+27
| | | | | | | | | | | correctly. For the clustering case. Clustered setups should have only ever used the unsigned version of TDB_DATA in the first place so they can't be in this mess :-). Just do the normal upgrade in the clustered case. Jeremy. (cherry picked from commit ede0f69a97abd4f1cb7870b2da65d9198d20c7ad)
* Fix a talloc/malloc screwup in file_lines_ploadVolker Lendecke2009-04-151-1/+1
| | | | | | | Another bug due to careless merge to /lib :-((( Volker (cherry picked from commit c253e80ad21a24395a973b23993dd211b8e0d482)
* s3-libnetapi: fix creds in libnetapi_open_ipc_connection().Günther Deschner2009-04-151-0/+5
| | | | | | | | | Jeremy, this broke with 8dd1faaa2992851f6852ba7ea4498445af5faadd. Not sure if other users broke as well with that change. Guenther (cherry picked from commit 56d74b62126083dd7e2a60d1b48b03e1b1798c90) (cherry picked from commit 97c30f557aab49f199df07f2a48ba94ad9cc81c5)
* s3-net: Fix Bug #6102. NetQueryDisplayInformation could return wrong ↵Günther Deschner2009-04-151-6/+12
| | | | | | | | information. Guenther (cherry picked from commit 24d5229a81e1067662930d42f8c59b3a0adac1e0) (cherry picked from commit 1de41bb8d6b9cbf287bad4152e38402201f966d3)
* Avahi disables a timer by tv=NULL in avahi_timeout_update(), do not crashVolker Lendecke2009-04-151-0/+7
| | | | (cherry picked from commit 45726ee52f766350023d85bc38cd803fdd8235a4)
* Add tevent avahi bindingVolker Lendecke2009-04-151-0/+268
| | | | (cherry picked from commit 49fc1138b5e4dcf66b84a14ba47cc1da40c764f2)
* s3-netapi: Fix Coverity #774 (REVERSE_INULL).Günther Deschner2009-04-151-6/+3
| | | | | | Guenther (cherry picked from commit 3a6133d70202ef80ead4203740c000be5e93b288) (cherry picked from commit 0ec1350d3d9272a6070950ba1d460523f53a628d)
* s3-netapi: Fix Coverity #775 (REVERSE_INULL).Günther Deschner2009-04-151-6/+3
| | | | | | Guenther (cherry picked from commit f2243e8197aa064adea3da2a4d1c08250668943f) (cherry picked from commit 8a6f09cededf4167aea5f08e573bab51afcc0074)
* s3-netapi: Fix Coverity #776 (REVERSE_INULL).Günther Deschner2009-04-151-7/+3
| | | | | | Guenther (cherry picked from commit d2e348b191ada5492538b7bdae1bb7cd3f639aba) (cherry picked from commit e858d192e1d7d6ab45ec247fbb776f5825e7fca5)
* add a versiontest program to print samba_version_string().Michael Adam2009-04-151-0/+26
| | | | | | | | This is to allow for testing samba_version_string() without the need to compile any of the larger binaries like smbd or net... Michael (cherry picked from commit a75c184cafbb80adb0a3b056e55608d2d263a0c6)
* s3: Fix a free of an uninitialized variable in winbind_get_sid_aliasesDan Sledz2009-04-151-1/+0
| | | | (cherry picked from commit c50490e4af2f4270cf8b59f868b45630efb55efd)
* s3:lib/util_sock: use sys_recv() instead of sys_read() on socketsStefan Metzmacher2009-04-151-2/+2
| | | | | | | | This ways the pcap support in socket wrapper sees the received data. metze (cherry picked from commit 0dfdb7b911ed4fe013fc4a22a8c3a28620277a67) (cherry picked from commit 6ec3d902e16edd6d911b6883f565ddf1938b47bf)
* s3: remove POLICY_HND.Günther Deschner2009-04-153-10/+10
| | | | | | Guenther (cherry picked from commit 531af136f9dd5c6050f78948837294aed02de440) (cherry picked from commit 91216ffa95b4ed53e54b11665e96b911cb4e4ab5)
* s3-rpc_parse: remove unused BUFFER5 and UNISTR3.Günther Deschner2009-04-151-16/+0
| | | | | | Guenther (cherry picked from commit 7a85a87edf3a589235b932a3c802278e78da4ec5) (cherry picked from commit 5bc2518950cce45dcbdccf17439c11a3d959f97d)