summaryrefslogtreecommitdiffstats
path: root/source3
Commit message (Collapse)AuthorAgeFilesLines
* s3-test: make it possible to find the built vlp in "make test".Günther Deschner2009-04-291-1/+9
| | | | | | Guenther (cherry picked from commit 3316ae9d75dfe6c7a960938c9503367880510079) (cherry picked from commit 0146649cf95ad27a583057df300fe5712b89e806)
* s3-spoolss: add support for _spoolss_EnumPrinterDrivers() level 6.Günther Deschner2009-04-291-1/+25
| | | | | | Guenther (cherry picked from commit 6900d61d369961e0c11e590ccdc102169f21cef3) (cherry picked from commit 41dae8256cdddd9557ae7a00b1282a0eb05d4f36)
* s3-spoolss: add support for _spoolss_EnumPrinterDrivers() level 5.Günther Deschner2009-04-291-0/+71
| | | | | | Guenther (cherry picked from commit 5e563ee508d0b3cc87d72ad52d777946ee0537b1) (cherry picked from commit c3f1cbd26792928970b6a60d82746719fea688d7)
* s3-spoolss: add support for _spoolss_EnumPrinterDrivers() level 4.Günther Deschner2009-04-291-0/+90
| | | | | | Guenther (cherry picked from commit d76837f6da2cf735d2b18c97f3b46ae2f04b750d) (cherry picked from commit d845a971ee32c8e9adb4717abe546355eb7153c9)
* s3-net: make "net eventlog" help output a little more appropriate.Günther Deschner2009-04-291-1/+1
| | | | | | Guenther (cherry picked from commit e89cc775e660183e7126bcfa8fb37496074cf5a1) (cherry picked from commit e26efbd2c8a49012383032fef07cddec76561aa3)
* s3:smbd/service: switch load_registry_service/shares to use loadparm routinesMichael Adam2009-04-293-71/+5
| | | | | | | | | | | | | 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-292-11/+26
| | | | | | Michael (cherry picked from commit fb3b6576127ce837ac711e87c293d1f4cf97473c) (cherry picked from commit 480af4e0ead10241aa94f4095c7fa580240fec00)
* s3:loadparm: prevent infinite include nesting.Michael Adam2009-04-281-2/+19
| | | | | | | | | | | | | | This introduces a hard coded MAX_INCLUDE_DEPTH of 100. When this is exceeded, handle_include (and hence lp_load) fails. One could of course implement a more intelligent loop detection in the include-tree, but this would require some restructuring of the internal loadparm housekeeping. Maybe as a second improvement step. Michael (cherry picked from commit d5f2bbdc489b751331e86afae58b0d80c5fedb9c) (cherry picked from commit bfd10fd322fe1721b8b45256cd988ed83b18a8a6)
* s3-net: make sure to call libnetapi init functions at the top of "net rpc" ↵Günther Deschner2009-04-281-0/+13
| | | | | | | | | | | | | | | | command. Without the initialization "net rpc password" will prompt twice for passwords and will not allow to define the name of the connection admin user. In the long run we should probably only have one place where to initialize libnetapi. Kai, please check. Guenther (cherry picked from commit 09ec85715b0e99740156ebb7213eddd1edfea631) (cherry picked from commit 0c5f19fbea7a6419a84ac0137a9a09995ef7a933)
* s3:mark registry shares without path unavailable just as with text configMichael Adam2009-04-281-0/+3
| | | | | | | | This prevents users from getting access to "/" in misconfigured setups. Michael (cherry picked from commit d16e40b5ef9add630d027ff92e440c44bfb88ef0) (cherry picked from commit 3bdb4342225444055b084908083e003e0e272e10)
* Fix annoying debug messages when no snapshots are usedVolker Lendecke2009-04-281-2/+3
| | | | | | | | Not being able to open the shadow copy directory is the same as having no shadow copy support at all. The VFS module should in this case not log with debug level 0 and set ENOSYS to indicate "no shadow copies used" to the higher levels. (cherry picked from commit 4982483cdd2a4d37f96574c19dd3aade236c1b93)
* s3-svcctl: Fix crash in _svcctl_EnumServicesStatusW().Günther Deschner2009-04-281-1/+3
| | | | | | | | The resume handle is a unique pointer, always check before dereference. Guenther (cherry picked from commit dd33abf649f4e1479365a2ccc2b41134270ff4ac) (cherry picked from commit 1e117c6ebc6322b7fac4928d84bc5e714e559ea5)
* s3-svcctl: indicate that the spooler is already running if it does.Günther Deschner2009-04-281-0/+4
| | | | | | Guenther (cherry picked from commit 16b2f4b55a80314aa733dd7f23543c1c3926223c) (cherry picked from commit 265e1fca1228776a0a7556ef854bfcc4130085b4)
* s3-svcctl: fix _svcctl_ControlService.Günther Deschner2009-04-281-1/+1
| | | | | | Guenther (cherry picked from commit aa26bdd71969610a4b6a5bdfdd735a1dab31a12c) (cherry picked from commit 32e4e65e61e627100a8201b5aba273c2e8b63de8)
* ѕ3/configure: fix regexp for ld version recognitionBjörn Jacke2009-04-281-1/+1
| | | | | | Signed-off-by: Jelmer Vernooij <jelmer@samba.org> (cherry picked from commit 740c2c4366badc62d017881c9484ee5153b62f94) (cherry picked from commit 172ecfae44768289b98c1bafa7aa2b89dbecc312)
* s3-idmap: Fix bug #6286: Call init function for builtin idmap modules before ↵Günther Deschner2009-04-281-0/+2
| | | | | | | | | | probing for them as shared modules. idmap-gurus of the world, please check. Guenther (cherry picked from commit 67588ca80d654183b8b7b062b9660a506a825f94) (cherry picked from commit 76e2e56e256695c1d52bd67d1b07bce0c7e0f37c)
* Revert "Do not use the file system GET_REAL_FILENAME for mangled names"Volker Lendecke2009-04-281-23/+7
| | | | | This reverts commit c8cc6da0ab4441ce7b22cf00eed05290e91530c4. (cherry picked from commit c7d5e046d8fa4097fc16a3dee10e95b83a8c8e55)
* Fix coverity #901 - uninitialized data.Jeremy Allison2009-04-281-1/+1
| | | | | Jeremy. (cherry picked from commit aa09344a77a686466371725e6f1c3f2ebaca684a)
* Fix coverity #908, #909, uninitialized variable.Jeremy Allison2009-04-281-2/+2
| | | | | Jeremy. (cherry picked from commit 7f8e21ad459dbe5fdd20d3040d017787198de21d)
* Fix Coverity ID 884: DEADCODEVolker Lendecke2009-04-281-3/+4
| | | | (cherry picked from commit cb8c7f2291897cc6d9bffdb48f4baca80161c2f8)
* Fix coverity #910, uninitialized variable.Jeremy Allison2009-04-281-1/+1
| | | | | Jeremy. (cherry picked from commit 7310c258a07f9f9da0ba736919f9021ab8125f66)
* s3-selftest: test wbinfo --allocate-uid/gid.Günther Deschner2009-04-281-0/+2
| | | | | | Guenther (cherry picked from commit 59fe99027d0ac972d0d74a24842d6423119c0d21) (cherry picked from commit abac431ce164c3ce3fcf53fbc77d0486347e22f1)
* Fix profile acls in some corner casesSimo Sorce2009-04-281-3/+18
| | | | | | Always add back the real original owner of the directory in the ACE List after we steal its ACE for the Administrators group. (cherry picked from commit 5d8f374ad75e06354ac27f34e3f44b3d459ac2ef)
* Avoid duplicate acesSimo Sorce2009-04-281-7/+48
| | | | | | | When adding arbitrary aces to an nt_ace_list we need to make sure we are not actually adding a duplicate. add_or_replace_ace() takes care of doing the right thing. (cherry picked from commit 89dfbdba515b5be32f535a112a7f1019884aa651)
* Add comment explaining the previous fix.Jeremy Allison2009-04-281-0/+6
| | | | | Jeremy. (cherry picked from commit 0b0bb2c7eb44b403e6fd50cf480ed8b2fb24a7d5)
* Fix bug #6279 - winbindd crash. Cope with LDAP libraries returning ↵Jeremy Allison2009-04-281-0/+4
| | | | | | | LDAP_SUCCESS but not returning a result. Jeremy (cherry picked from commit 9ebc15bed8c05d0729066d97d3bfaade9fcbacb7)
* 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-285-54/+19
| | | | | | Guenther (cherry picked from commit 38264bb3b86a3c9da941070f29ec08227c471d2b) (cherry picked from commit 904bc5011fc7df40111f493ff28972640b95c0d1)
* s3-secdesc: use SEC_FLAG_SYSTEM_SECURITY instead of SEC_RIGHT_SYSTEM_SECURITY.Günther Deschner2009-04-283-7/+7
| | | | | | Guenther (cherry picked from commit da92e54236293460e307edd52ca7f1e20c6f23ef) (cherry picked from commit 3e9ee3fa54b514987f40a477b3049b18e87390e9)
* s3-secdesc: use SEC_FLAG_MAXIMUM_ALLOWED instead of SEC_RIGHT_MAXIMUM_ALLOWED.Günther Deschner2009-04-282-2/+2
| | | | | | Guenther (cherry picked from commit 1bb093aea9a4c5996514b10adc39a130cc6859ba) (cherry picked from commit 2f691302b3fe6b5b710b228ae149e0807ef5d5dc)
* s3-secdesc: use SEC_FLAG_MAXIMUM_ALLOWED instead of SEC_RIGHTS_MAXIMUM_ALLOWED.Günther Deschner2009-04-2815-68/+68
| | | | | | Guenther (cherry picked from commit b5bec1a6d73f5939b306e157937d027a7286163c) (cherry picked from commit c7d5e0a19057b6ad7301a390fc766bb438967eb2)
* Added ability to revert to old modules for make revert.John H Terpstra2009-04-281-0/+5
| | | | (cherry picked from commit e39255311a61897c53e00cc27df65790f83e132b)
* Do not use the file system GET_REAL_FILENAME for mangled namesVolker Lendecke2009-04-281-7/+23
| | | | (cherry picked from commit c8cc6da0ab4441ce7b22cf00eed05290e91530c4)
* s3-printing: use ARRAY_SIZE() macro in forms functions.Günther Deschner2009-04-281-6/+5
| | | | | | Guenther (cherry picked from commit 62480385c1e551448e40b01fff8e9dee318c29c1) (cherry picked from commit fea535368e4d62606b522031afc773d4963dbb91)
* s3-printing: use sec_initial_uid() instead "0" in print_access_check().Günther Deschner2009-04-281-1/+1
| | | | | | | | Another babystep in order to make us pass RPC-SPOOLSS. Guenther (cherry picked from commit d9aaf3759ac7fd6ce07a347a0138bdfb27a6f929) (cherry picked from commit 63d4f5a5893dfcf8ff346bad100e8bd7052089ee)
* s3-spoolss: remove some direct checks for 0 uid in AddForm,SetForm,DelForm.Günther Deschner2009-04-281-4/+13
| | | | | | | | Also add some become_root()/unbecome_root() pairs which were missing IMHO. Guenther (cherry picked from commit 81b18464be170528d5e1549868bcbddbbcd60e1e) (cherry picked from commit 6689b0da85ac3b2f146c5e9851b73cf7d1e21c2b)
* s3-selftest: enable RPC-SPOOLSS.Günther Deschner2009-04-281-1/+1
| | | | | | Guenther (cherry picked from commit 6f90cdaf63b5b584c96b9ffc388c9e8df172db67) (cherry picked from commit 4677976a2081e4384b61d163d104c651e7a1f569)
* s3:net: add --request-timeout optionStefan Metzmacher2009-04-283-0/+4
| | | | | | metze (cherry picked from commit 257809558bfab3e45703cf8be76357596392a3ea) (cherry picked from commit e20b8706401d1a4eee0fe494825deef6ab23ab23)
* s3:net_rpc: don't shutdown a cli_state passed from the callerStefan Metzmacher2009-04-281-9/+8
| | | | | | | | This fixes a crash bug if we timeout in net rpc trustdom list. metze (cherry picked from commit c0dfe0cf80ee50f395912b7d6aec0d87febd34c0) (cherry picked from commit d87563604ca7b1c18c5a84d76726c2a99dc454f8)
* s3: make installmo and uninstallmo scripts executableMichael Adam2009-04-282-0/+0
| | | | | Michael (cherry picked from commit 9deb558c5a3c380c7e4964e6fd2fc1b948115078)
* s3: Fix uninstallmoMichael Adam2009-04-281-1/+2
| | | | | Michael (cherry picked from commit 81dca118cd94988f55a5b4c43436a97d04309b48)
* s3-selftest: samba 3 also passes RPC-JOIN so enable it.Günther Deschner2009-04-281-1/+1
| | | | | | Guenther (cherry picked from commit 4f9d3400e5aa310e8071c0bb5d62ddaed1d846ee) (cherry picked from commit c33e3b84a706fa429ceeea81fb17c434e8f6cb4e)
* s3:registry: Prevent creation of keys containing the '/' character.Michael Adam2009-04-281-0/+10
| | | | | | | | | | | | | This creates a broken registry that can only be fixed with tdbtool, since the '/' sign is used as a key separator after normalization at a lower level. This makes e.g. "net conf setparm abc/def comment xyz" fail with WERR_INVALID_PARAM, which is much more desirable than a broken registry.tdb. Michael (cherry picked from commit 74385e90fa72b132088861d864cb275909ed7f6f)
* s3-samr: set the builtin_domain bool flag in get_samr_dispinfo_by_sid().Günther Deschner2009-04-281-0/+2
| | | | | | | | | | | Volker, please check. Found by torture test RPC-SAMR-PASSWORDS-PWDLASTSET (which we pass with this fix). Guenther (cherry picked from commit 0ba833f3eedff5dec272eb71f3b09becd8707156) (cherry picked from commit 4c8d90a077901f7901b8202abed54746679aa3a9)
* s3-selftest: enable RPC-SAMR-PASSWORDS-PWDLASTSET whilte testing Samba3.Günther Deschner2009-04-281-1/+2
| | | | | | Guenther (cherry picked from commit 490f6c418d8b1280d0a3b85773a72b2047122c12) (cherry picked from commit 7f6094fe8238f7a146fe7c45ab31f0e2244704bd)
* s3-selftest: enable RPC-LSA-LOOKUPSIDS against samba 3.Günther Deschner2009-04-281-1/+1
| | | | | | Guenther (cherry picked from commit deb719a62e0909d476b9817c45a32766dc9709d7) (cherry picked from commit cfb5e97b88aae1780b5ef14baa15d9c692d157ab)
* Add torture tester to ensure we don't regress the ulogoff bug.Jeremy Allison2009-04-281-0/+45
| | | | | Jeremy. (cherry picked from commit 4ee6b7934e91b87122ff7bad4c89a0ab9bdd3bf0)
* Fix bug found by Tim Prouty, logging off and then re-using a vuid can cause ↵Jeremy Allison2009-04-281-0/+11
| | | | | | | | smbd to access a freed structure. Jeremy. (cherry picked from commit e023058f5b774ddbb61e8187aa7dbd2e6e25804d)
* When doing a cli_ulogoff don't invalidate the cnum, invalidate the vuid.Jeremy Allison2009-04-281-1/+1
| | | | | Jeremy. (cherry picked from commit be46b98ee38e17e4561ab58fe9b6ecc6b7919392)
* Don't look up local user for remote changes, even when root.Jim McDonough2009-04-281-6/+10
| | | | (cherry picked from commit 583d7c97bb5f9b62fab17ce2466442ece648331f)