summaryrefslogtreecommitdiffstats
path: root/source3/include
Commit message (Collapse)AuthorAgeFilesLines
* s3: Allow child processes to exit gracefully if we are out of fdsMarc VanHeyningen2009-05-291-1/+1
| | | | | | | | | | | 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: Always allocate memory in dptr_ReadDirNameAravind Srinivasan2009-05-261-1/+1
| | | | | | | | | This is a follow up to 69d61453df6019caef4e7960fa78c6a3c51f3d2a to adjust the API to allow the lower layers allocate memory. Now the memory can explicitly be freed rather than relying on talloc_tos(). Signed-off-by: Tim Prouty <tprouty@samba.org> (cherry picked from commit bfe7383d7f0349fec796d04772d42d566f7f083b)
* Change access_check_samr_object -> access_check_object.Jeremy Allison2009-05-261-0/+7
| | | | | | | | Make map_max_allowed_access global. Change lsa_get_generic_sd to add Everyone:LSA_POLICY_READ|LSA_POLICY_EXECUTE, not just LSA_POLICY_EXECUTE. Jeremy. (cherry picked from commit 86e10fee0284bc1b9e68c0fc9720b80df3580517)
* s3-privileges: add privilege_delete_account().Günther Deschner2009-05-261-0/+1
| | | | | | Guenther (cherry picked from commit dccecdf33850ec4d763b8b0e7ba7be7a8eb873de) (cherry picked from commit e3be289df092f3b16bdd06904cd543920e3da307)
* Fix bug 5681: Do not limit the number of network interfacesVolker Lendecke2009-05-261-3/+1
| | | | | | | | | | | 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)
* Add "file_walk_table" to do stuff with all open filesVolker Lendecke2009-05-261-0/+4
| | | | (cherry picked from commit 413a76cef78de56087574a875a1c478603d5d090)
* s3:param: prevent includes from being dumped in dump_*() functions.Michael Adam2009-05-261-0/+1
| | | | | | | | This fixes bug #4271: testparm should not print includes. Michael (cherry picked from commit 00297b74ac6320a23ba444647718680ddee37453) (cherry picked from commit 44746461dcead5b42cc2177346c26aee79151c86)
* s3-printing: no need to define struct table_node 4 times.Günther Deschner2009-05-261-0/+6
| | | | | | Guenther (cherry picked from commit 652251701df7dec1401eab9b1dbc7e3ac5c7e7ad) (cherry picked from commit e6b6027218b96bf3357837d051ca5d2df0d88561)
* s3:proto.h: remove old param/params.c prototypeMichael Adam2009-05-261-7/+0
| | | | | | Michael (cherry picked from commit a04bac71356139c62d786f6254d33bd247fb7692) (cherry picked from commit b0a46b6abd265e484e89912eb7b9e1feb1b917c2)
* Fix bug 6157Volker Lendecke2009-05-261-0/+3
| | | | | | 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)
* s3-samr: let set_user_info_16 and 20 follow the same pattern as all other ↵Günther Deschner2009-05-261-0/+2
| | | | | | | | levels. Guenther (cherry picked from commit f05d888d7ab910b3ed39e4d36eeb52cb86bd990e) (cherry picked from commit 970ccd28f32e4b67188629b99a0a1a2d6762b897)
* s3-samr: support some more info levels in samr_SetUserInfo calls.Günther Deschner2009-05-261-0/+20
| | | | | | Guenther (cherry picked from commit f93f713898f2208fda51f24121b060ee09f5fe3a) (cherry picked from commit 07f33f9d7d9401390eb304866e5e1010b6d5ff13)
* s3-auth: use full 16byte session key in make_user_info_netlogon_interactive().Günther Deschner2009-05-261-1/+1
| | | | | Guenther (cherry picked from commit b5097d54cb74ca0ea328f9e029562f65f4a01134)
* s3-printing: simplify print_queue helper functions and return WERROR.Günther Deschner2009-05-261-6/+3
| | | | | | Guenther (cherry picked from commit 9966541f89b45834cdf63060202621f885bf9f5c) (cherry picked from commit 4d67491ef558c96fd57a959bb58df9efa5e83ceb)
* s3-lsa: use LSA_POLICY_MODE flags in _lsa_GetSystemAccessAccount().Günther Deschner2009-05-261-6/+0
| | | | | | Guenther (cherry picked from commit af5a71d5280984a7d707e39fb522ecc7e1b71436) (cherry picked from commit c89fdbed5286806d9a9b0b4a5d35870f7989baf7)
* s3:smbd/service: switch load_registry_service/shares to use loadparm routinesMichael Adam2009-04-291-0/+1
| | | | | | | | | | | | | instead of reading the registry directly with tdb and activating the configure options by hand. This eliminates the need for repeating checks done in loadparm. For instance it disables registry shares without path in the server as is the case with text based shares. Michael (cherry picked from commit 077bcc11257697b243916fbb02cd72b3a122b9ba) (cherry picked from commit 502bfe9352d36ee909d7210a9d0ec0b6c7db5149)
* s3:loadparm: refactor process_registry_service out or process_registry_globalsMichael Adam2009-04-291-0/+1
| | | | | | Michael (cherry picked from commit fb3b6576127ce837ac711e87c293d1f4cf97473c) (cherry picked from commit 480af4e0ead10241aa94f4095c7fa580240fec00)
* s3-secdesc: remove SEC_RIGHT_MAXIMUM_ALLOWED and SEC_RIGHT_SYSTEM_SECURITY.Günther Deschner2009-04-281-3/+0
| | | | | | | | We had up to three incarnations of these flags in Samba3. Guenther (cherry picked from commit d94bbb3167f3a18d6b8a311557f228e2977249ea) (cherry picked from commit b0c4be0e2b856326e5790f4aef54e6b792f8f089)
* s3-secdesc: move all winreg access bits to IDL.Günther Deschner2009-04-281-35/+0
| | | | | | Guenther (cherry picked from commit 38264bb3b86a3c9da941070f29ec08227c471d2b) (cherry picked from commit 904bc5011fc7df40111f493ff28972640b95c0d1)
* s3-spoolss: remove unused dup_nt_devicemode().Günther Deschner2009-04-151-1/+0
| | | | | | Guenther (cherry picked from commit e3ceb0c65333cb870463971021e3af24d82abf26) (cherry picked from commit 0f48d27d6fb45bc61899916037a5133e3022ec59)
* s3-eventlog: split out evlog_convert_tdb_to_evt().Günther Deschner2009-04-151-0/+4
| | | | | | 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-1/+1
| | | | | | Guenther (cherry picked from commit 98d703a6b7c102db49b6cdc2a57545a90efefabf) (cherry picked from commit 76fdbdcb3a58d90d669101fe303e5ccc14992b26)
* s3:charcnv Remove unused unistrcpy() and unistrlen()Andrew Bartlett2009-04-151-2/+0
| | | | | | Signed-off-by: Günther Deschner <gd@samba.org> (cherry picked from commit 0c22d55134b39a6bc983b4f852f623a51af4d362) (cherry picked from commit 779ddf78f13940ef402331b68d86276241479a86)
* s3:rpc_parse remove unused prs_unistr2()Andrew Bartlett2009-04-151-1/+0
| | | | | | Signed-off-by: Günther Deschner <gd@samba.org> (cherry picked from commit 3277b19800c6c56a32b7641d293e496475d8c62a) (cherry picked from commit 92688cded5d6018ca9f4c1588f418da6297f7d61)
* s3:charcnv Remove unused unistr2 functionsAndrew Bartlett2009-04-151-5/+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-1/+0
| | | | | | Signed-off-by: Günther Deschner <gd@samba.org> (cherry picked from commit 5fff53882002bf5378690ddeb8251e2c99490266) (cherry picked from commit 6cf0e88ee6cefdab7d2d5f272e6d9e23005f9b61)
* s3:kerberos Rework smb_krb5_unparse_name() to take a talloc contextAndrew Bartlett2009-04-151-3/+4
| | | | | | Signed-off-by: Günther Deschner <gd@samba.org> (cherry picked from commit 574a6a8c350a4bab3f42f3f9cfb382db721d69b5) (cherry picked from commit 7e6d6eeff3e082d7223264c17cb27c2ab89df9aa)
* s3 oplocks: Refactor level II oplock contentionTim Prouty2009-04-151-0/+1
| | | | | (cherry picked from commit 651fa0964a6c49a071c28cdb1e4891b1d95d5b09) (cherry picked from commit 4e091804b86ae9b8318b985d39e826366681e21b)
* s3:libads Make ads_get_dn() take a talloc contextAndrew Bartlett2009-04-151-1/+1
| | | | | | | | | | | | | | Also remove ads_memfree(), which was only ever a wrapper around SAFE_FREE, used only to free the DN from ads_get_ds(). This actually makes libgpo more consistant, as it mixed a talloc and a malloc based string on the same element. Andrew Bartlett Signed-off-by: Günther Deschner <gd@samba.org> (cherry picked from commit 20501876735fc4656083747ba8aa0de9da8fb820) (cherry picked from commit 6673ad24d48ad44fa76497f0327b13e82721d0a1)
* s3:smbldap Remove smbldap_get_dnAndrew Bartlett2009-04-152-3/+1
| | | | | | | | 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)
* s3-passdb: add smb_create_user().Günther Deschner2009-04-151-0/+4
| | | | | | Guenther (cherry picked from commit d0e1ff4aff24ef2f3b3f535ad25ad0573382e1a3) (cherry picked from commit 44d72cfa74c103c41beea2f5651155506667811b)
* Fix bug #6195 - Migrating from 3.0.x to 3.3.x can fail to update passdb.tdb ↵Jeremy Allison2009-04-151-0/+2
| | | | | | | | | | | 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)
* s3:rpc_parse: remove unused init_unistr().Günther Deschner2009-04-151-1/+0
| | | | | | Guenther (cherry picked from commit fe340eb92fd2e5dfef977dc391d2a43ce970e0ea) (cherry picked from commit 0e845cd6009c8a01eb3d53f558e9872ec4a3ab9f)
* s3-rpc_parse: remove unused smb_io_domsid().Günther Deschner2009-04-151-1/+0
| | | | | | Guenther (cherry picked from commit c86df62b4a51b2813104aece8b3813b1806aeb22) (cherry picked from commit 62923f9be593d8c7cdcb79c56b9f2c0c36e5dbdd)
* s3: remove unused rpc_parse/parse_sec.c file.Günther Deschner2009-04-151-5/+0
| | | | | | Guenther (cherry picked from commit 72636db8e5f06e887db6c34b6f88bef567c093dd) (cherry picked from commit 8ab087da9038f7b80b4488727be49092a7e562cf)
* s3: add missing prototype for auth_wbc_init().Günther Deschner2009-04-151-0/+4
| | | | | | Guenther (cherry picked from commit c388efdbcb9ef1ecd5a81f7731ce56c7f79b2579) (cherry picked from commit 87cf381dc3bd020dc043419f4ca18a3ff118458d)
* Use avahi to register _smb._tcp in smbdVolker Lendecke2009-04-151-0/+5
| | | | (cherry picked from commit 55b7bf7338c13701944169df02ab8e9def6d43a1)
* Add tevent avahi bindingVolker Lendecke2009-04-151-0/+5
| | | | (cherry picked from commit 49fc1138b5e4dcf66b84a14ba47cc1da40c764f2)
* s3-spoolss: apply some const in spoolss server.Günther Deschner2009-04-151-3/+3
| | | | | | Guenther (cherry picked from commit 5a388115a944a425a774d7ec98260b7595998ee1) (cherry picked from commit e0cdb435d38c643d5a75aa16e793c6f09a349978)
* s3-spoolss: pure comsetics.Günther Deschner2009-04-151-2/+3
| | | | | | | | sorry, I just need to do that. Guenther (cherry picked from commit 045151b767c62ac1343e86cb3886107226e73fda) (cherry picked from commit 59811de7a80d5ecdf090c116087c7a03ae288887)
* s3-samr: try to to fix password_expired flag handling.Günther Deschner2009-04-151-0/+6
| | | | | | Guenther (cherry picked from commit 842edcd2b08763a35dbdea3518fcc039aa70aad4) (cherry picked from commit 98dd60a0e85d37945deaa997d87f5cb173eaaea9)
* s3: remove POLICY_HND.Günther Deschner2009-04-155-15/+13
| | | | | | Guenther (cherry picked from commit 531af136f9dd5c6050f78948837294aed02de440) (cherry picked from commit 91216ffa95b4ed53e54b11665e96b911cb4e4ab5)
* s3-rpc_parse: remove some unused parsing code.Günther Deschner2009-04-151-13/+0
| | | | | | Guenther (cherry picked from commit 7d7b1a8dcc338ea037cc02ef1b2dd9e9f6ce0943) (cherry picked from commit 032113b3fe5a8fa06672256cbc028833b519b83f)
* s3-rpc_parse: remove unused BUFFER5 and UNISTR3.Günther Deschner2009-04-152-25/+0
| | | | | | Guenther (cherry picked from commit 7a85a87edf3a589235b932a3c802278e78da4ec5) (cherry picked from commit 5bc2518950cce45dcbdccf17439c11a3d959f97d)
* s3-rpc_client: remove unused CLI_DO_RPC_WERR macro.Günther Deschner2009-04-151-30/+0
| | | | | | Guenther (cherry picked from commit e966719049702827c482c5e19783b9a7c725bdb1) (cherry picked from commit e1055c372a3b77fdd28f17635465a7a0a9c578fa)
* s3-spoolss: remove include/rpc_spoolss.h.Günther Deschner2009-04-152-168/+0
| | | | | | Guenther (cherry picked from commit 7fbdf8aae93f143c879de705936279f42eb8ee6f) (cherry picked from commit 2471cb64f7d2d2e7eb594b1cf904af9d6befd389)
* s3-spoolss: remove rpc_server/srv_spoolss.c alltogether.Günther Deschner2009-04-151-5/+0
| | | | | | Guenther (cherry picked from commit 36d07858069ed8710a0ad822535074bed77ec130) (cherry picked from commit 931e48a757d40fb4dd5099560fe31afad201464c)
* s3-spoolss: remove rpc_parse/parse_spoolss.c alltogether.Günther Deschner2009-04-151-2/+0
| | | | | | | | Good-Bye, last hand-marshalled rpc functions, rest in peace. Guenther (cherry picked from commit a502392541bcb45babbb8ca57e17306aa726ee9b) (cherry picked from commit 82e78e67e00863437ef26914ff8d85007509b620)
* s3-spoolss: remove old spoolss_EnumPrinterDataEx.Günther Deschner2009-04-152-43/+0
| | | | | | Guenther (cherry picked from commit a4e999c7e3214de26bdc7a20d5ec25d4ffdf152d) (cherry picked from commit 92a9ede4ffc82a66531e716535db34416b387340)
* s3-spoolss: use pidl for _spoolss_EnumPrinterDataEx.Günther Deschner2009-04-151-1/+0
| | | | | | | | | | Please note that this has been the last call in samba3 that was using hand-marshalled rpc. With this commit all named pipe rpc services in samba3 have now fully moved to pidl generated code :-) Guenther (cherry picked from commit 0cfb1aea29929c0605d299d71784787aa516bc2a) (cherry picked from commit 0a20f7df770f2d460ff4034baf3ad29a96be4dd3)