summaryrefslogtreecommitdiffstats
path: root/source3/utils
Commit message (Collapse)AuthorAgeFilesLines
* 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-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-secdesc: move all winreg access bits to IDL.Günther Deschner2009-04-281-3/+3
| | | | | | 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-282-3/+3
| | | | | | 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-288-23/+23
| | | | | | Guenther (cherry picked from commit b5bec1a6d73f5939b306e157937d027a7286163c) (cherry picked from commit c7d5e0a19057b6ad7301a390fc766bb438967eb2)
* 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)
* Don't look up local user for remote changes, even when root.Jim McDonough2009-04-281-6/+10
| | | | (cherry picked from commit 583d7c97bb5f9b62fab17ce2466442ece648331f)
* fix the build of net: dos_errstr is replaced by win_errstr...Michael Adam2009-04-281-1/+1
| | | | | | | I had the patch locally but forgot to commit before pushing - sorry... Michael (cherry picked from commit 986a36fd30f7f65c7ef79b945f7b95014872f30f)
* In net_conf_import, start a transaction when importing a single share.Martin Schwenke2009-04-281-0/+8
| | | | | | | | | | | | | Commit d69c3db9d44ad5d9fd1f5d7a9499f3bd79ecfb47 caused the transaction start to be conditional but the commit is still unconditional, so an error occurs when importing a single share. An alternate fix would be to return the transaction start to be unconditional but then it would occur before other error checking. Signed-off-by: Martin Schwenke <martin@meltin.net> Signed-off-by: Michael Adam <obnox@samba.org> (cherry picked from commit e344341ddd46e45b2ecdaf604cdd5d64adab6343)
* Fix bug #6089 - Winbind samr_OpenDomain not possible with Samba 3.2.6+Jeremy Allison2009-04-282-2/+2
| | | | | | | | 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)
* Remove the so-far unused lua-stuff for the 3.4 releaseVolker Lendecke2009-04-151-7/+0
| | | | (cherry picked from commit 0349dad1633cd9574e0d8c7d2054e4c7dd0fdc21)
* s3-net: Fix Bug #5329: add "net rpc service delete/create".Günther Deschner2009-04-151-0/+204
| | | | | | | | Patch from Danny Tylman <danny.tylman@insightix.com>. Guenther (cherry picked from commit d0c307af56006d6fb898e395613d7e9c29b84116) (cherry picked from commit 75fbdebda09c1f6029194234cd9f5275a096bce7)
* s3-eventlog: split out evlog_convert_tdb_to_evt().Günther Deschner2009-04-151-52/+2
| | | | | | Guenther (cherry picked from commit 47bda3f3c7095044ae4c9b1535198be6d052060d) (cherry picked from commit eaf85ca22b441d4632eed0400c3ad61026a0f2ac)
* s3:kerberos Rework smb_krb5_unparse_name() to take a talloc contextAndrew Bartlett2009-04-151-4/+2
| | | | | | Signed-off-by: Günther Deschner <gd@samba.org> (cherry picked from commit 574a6a8c350a4bab3f42f3f9cfb382db721d69b5) (cherry picked from commit 7e6d6eeff3e082d7223264c17cb27c2ab89df9aa)
* s3-libads: avoid NULL talloc context with ads_get_dn().Günther Deschner2009-04-151-4/+4
| | | | | | Guenther (cherry picked from commit d71dec9259366e99beca69fcd9397bd38ed82c71) (cherry picked from commit 4e32c424a00bc29e63176af9773f9ffa7aa09bc2)
* s3:libads Make ads_get_dn() take a talloc contextAndrew Bartlett2009-04-152-12/+10
| | | | | | | | | | | | | | 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:net conf: don't store share names as lower case, but as given.Michael Adam2009-04-151-11/+11
| | | | | | Michael (cherry picked from commit 36c1a52a57bc96c7586ca1bffbe8ef47c93bca1b) (cherry picked from commit dd495878d764c3836784adcd739f78ca03d27d58)
* s3:rpc_parse: remove unused init_unistr().Günther Deschner2009-04-151-5/+4
| | | | | | Guenther (cherry picked from commit fe340eb92fd2e5dfef977dc391d2a43ce970e0ea) (cherry picked from commit 0e845cd6009c8a01eb3d53f558e9872ec4a3ab9f)
* s3-net: Fix Coverity #861 (UNINIT).Günther Deschner2009-04-151-1/+1
| | | | | | Guenther (cherry picked from commit 73030b107d5722a2c42cd18240d45bcb256335ac) (cherry picked from commit 81a6aee736f805d1bf8d7d2a1ff19851cd11d763)
* s3-net: Fix Coverity #898 (UNINIT).Günther Deschner2009-04-151-1/+1
| | | | | | Guenther (cherry picked from commit d2fb6d348248cdca7e55360c77aa31b91250f885) (cherry picked from commit 874caf9a1fb45f36ec8c506d29264735d1647dae)
* s3-spoolss: pure comsetics.Günther Deschner2009-04-151-41/+41
| | | | | | | | sorry, I just need to do that. Guenther (cherry picked from commit 045151b767c62ac1343e86cb3886107226e73fda) (cherry picked from commit 59811de7a80d5ecdf090c116087c7a03ae288887)
* s3-net: Fix Coverity #886 (FORWARD_NULL).Günther Deschner2009-04-151-1/+1
| | | | | | Guenther (cherry picked from commit 2c186be0df33664eea980c17720be41f25f91288) (cherry picked from commit 990917cbe3f8cd00e2d13dd67ee752fffae94401)
* s3: remove POLICY_HND.Günther Deschner2009-04-1511-86/+86
| | | | | | Guenther (cherry picked from commit 531af136f9dd5c6050f78948837294aed02de440) (cherry picked from commit 91216ffa95b4ed53e54b11665e96b911cb4e4ab5)
* s3-smbcontrol: use correct PRINTER_NOTIFY flags.Günther Deschner2009-04-151-3/+3
| | | | | | Guenther (cherry picked from commit 21391f7fbe6c92ba050462750571cda661f5fb8a) (cherry picked from commit 6ac0a8d45e14deede30f56ab8c4d8288b83f15b4)
* spoolss: add my copyright.Günther Deschner2009-04-151-1/+1
| | | | | | Guenther (cherry picked from commit 9d1ab9a0013127d08bad01975a5204e8f63b9ddc) (cherry picked from commit ecc7537b6b0c7921160448b97a3cd8df1f4c77cf)
* s3-spoolss: remove custom syntax_spoolss and use the syntax defined in IDL.Günther Deschner2009-04-153-24/+24
| | | | | | Guenther (cherry picked from commit 9fdeb7f7b319dca5dbd1fdaf24f01fb19e124fe6) (cherry picked from commit e13b545ca914d3d84b94f1d7ecb958f093f3143b)
* s3-net: use rpccli_spoolss_enumprinterdataex.Günther Deschner2009-04-151-24/+44
| | | | | | Guenther (cherry picked from commit f9712d568ab6331be5a62a34ce60331013ccd253) (cherry picked from commit c7660dacbcf5d6132960508104507ed1e2fca878)
* Remove the global "struct cm_cred_struct" and associated calls, makeJeremy Allison2009-04-154-19/+4
| | | | | | | | | | callers pass in a struct user_auth_info * instead. This commit causes smbc_set_credentials() to print out a message telling callers to use smbc_set_credentials_with_fallback() instead, as smbc_set_credentials() has a broken API (no SMBCCTX * pointer). No more global variables used in the connection manager API for client dfs calls. Jeremy. (cherry picked from commit 8b44877eb82c1c9270cb8099fefc621922f82719)
* s3-net: use rpccli_spoolss_enumprinterkey wrapper.Günther Deschner2009-04-151-17/+6
| | | | | | Guenther (cherry picked from commit e0c50aafce59ad4f4275ff91defb14ea44f42a65) (cherry picked from commit 27633bc18e70c68e323272d0b496022e66648d4f)
* s3-net: fix net_spoolss_setprinterdataex.Günther Deschner2009-04-151-1/+1
| | | | | | Guenther (cherry picked from commit 12c6ac6a434325d7e9837bbea6d35482767251ba) (cherry picked from commit 596f1fb47aeed9f5069c10b101fab53a8dba962c)
* s3-net: fix net_spoolss_setprinterdata.Günther Deschner2009-04-151-7/+13
| | | | | | Guenther (cherry picked from commit acf523ad7edcde788ee79144928d74d91f0e0754) (cherry picked from commit 4aa6b49f2d01594d795cc79c8de37121f7f6e5a9)
* s3-net: use rpccli_spoolss_EnumPrinterData.Günther Deschner2009-04-151-16/+59
| | | | | | Guenther (cherry picked from commit 2a8c078357dd7bd191d0f2c55d94834c4774ecfc) (cherry picked from commit d45e83e76a68928feec0a5958c06ffa2a32d776b)
* s3-net: temporary disable net_spoolss_setprinterdata.Günther Deschner2009-04-151-1/+4
| | | | | | Guenther (cherry picked from commit 4ea46d69bbb7651b213c5b0674f4f9fb05059acd) (cherry picked from commit 6a4d14132e10df43404d3008cc67ffd7d1ba71b2)
* s3-net: use rpccli_spoolss_enumprinters wrapper.Günther Deschner2009-04-151-134/+71
| | | | | | Guenther (cherry picked from commit f14d4267c98a04384f8f84ac8567d3fb7b85ed75) (cherry picked from commit b652a29969c8b745d9ef180e4b5018331731426f)
* s3-spoolss: remove old leftover driver print functions.Günther Deschner2009-04-151-56/+0
| | | | | | Guenther (cherry picked from commit 058f47d08d9ac121fdec9d230b366b5ff0488fce) (cherry picked from commit b5eb59d22e7eee0d00d16cdc9af8f9543d179c04)
* s3-net: use rpccli_spoolss_enumprinterdrivers wrapper.Günther Deschner2009-04-151-11/+12
| | | | | | Guenther (cherry picked from commit 7876d28d9a738768bfce6050d26d5f6c2668c28d) (cherry picked from commit f1fe7a55c235bc69456a7c0ecc150b068c7ab580)
* Shape up pdb_search a bit by making it a talloc ctx with a destructorVolker Lendecke2009-03-073-20/+25
|
* s3-spoolss: use form flags from idl in rpcclient and net.Günther Deschner2009-03-061-1/+1
| | | | Guenther
* s3-net: use new rpccli_spoolss_enumforms wrapper.Günther Deschner2009-03-061-27/+17
| | | | Guenther
* s3:net conf: reduce memory usage of "net conf import".Michael Adam2009-03-041-6/+33
| | | | | | | | | | "net conf import" was wrapped in one big transaction. This lead to MAX_TALLOC_SIZE being exceeded at roughly 1500 shares. This patch resolves that problem by limiting the top level transactions in "net conf import" to 100 shares. Michael
* s3-spoolss: use DSPRINT flags instead of SPOOLS_DS flags.Günther Deschner2009-02-271-10/+10
| | | | Guenther
* s3:net rpc registry: use regsubkey_ctr_init() instead of using talloc directly.Michael Adam2009-02-261-2/+5
| | | | Michael
* s3:profiles: use regsubkey_ctr_init() instead of using talloc directly.Michael Adam2009-02-261-1/+3
| | | | Michael
* s3:registry: replace typedef "REGSUBKEY_CTR" by "struct regsubkey_ctr"Michael Adam2009-02-262-6/+6
| | | | | | | This paves the way for hiding the typedef and the implementation from the surface. Michael
* s3:net: wrap net conf import into one big transactionMichael Adam2009-02-261-6/+27
| | | | | | | This speeds up "net conf import" of a file with 2000 shares from 11 minutest to 1m50s on my box. Michael
* s3-spoolss: use is_valid_policy_hnd to check for valid policy handles.Günther Deschner2009-02-251-75/+23
| | | | Guenther
* s3-spoolss: use rpccli_spoolss_addprinterex wrapper.Günther Deschner2009-02-251-1/+8
| | | | Guenther
* s3-net: use rpccli_spoolss_getprinter and rpccli_spoolss_SetPrinter.Günther Deschner2009-02-251-46/+123
| | | | Guenther