summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* s3:loadparm: add a convenience wrapper lp_load_global()Michael Adam2011-07-282-0/+15
| | | | This is the use case for most callers, especially the client tools.
* s3:loadparm: rename parameter "allow_registry_shares" to "load_all_shares"Michael Adam2011-07-281-6/+6
|
* samba-tool: ensure prompting of passwords is in the right orderAndrew Tridgell2011-07-281-1/+3
| | | | | | | | | | | | ask the creds object for the password before prompting for the new password in the user password change code, to ensure the user is asked for the old password first Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com> Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Thu Jul 28 08:35:45 CEST 2011 on sn-devel-104
* samba-tool: Added gpo fetch command implementation using python smb module.Amitay Isaacs2011-07-281-0/+94
| | | | | | | To copy the GPO files, use libcli python interface list() to get directory listing and loadfile() to read the contents of the file. Signed-off-by: Andrew Tridgell <tridge@samba.org>
* samba-tool: Change samba-tool gpo semantics (use gpo name instead of dn)Amitay Isaacs2011-07-281-78/+124
| | | | | | | | | | | Instead of using gpo dn as the key to refer to a gpo, use the gpo name as the key. If no URL is specified (-H option), find a writable DC and use that. Extract a commonly used method as get_gpo_info() to find details of a GPO. Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4-libcli: Initialize stack structure variables to zero.Amitay Isaacs2011-07-281-14/+45
| | | | | | | Update do_smb_connect function to return NTSTATUS rather than raise python exception on error. Error checking done in py_smb_new(). Signed-off-by: Andrew Tridgell <tridge@samba.org>
* tests-blackbox: Revert the test to use user-level change password commandAmitay Isaacs2011-07-281-1/+1
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* test-blackbox: use python version of change password commandAmitay Isaacs2011-07-281-7/+7
| | | | | | | Replace the "samba-tool user setpassword" command with user level "samba-tool user password" command. Signed-off-by: Andrew Tridgell <tridge@samba.org>
* test-blackbox: Rearrange arguments for samba-tool user setpassword commandAmitay Isaacs2011-07-281-1/+1
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* test-blackbox: Remove 'domain\' from username for samba-tool user setpasswordAmitay Isaacs2011-07-281-2/+2
| | | | | | Python version of samba-tool does not require 'domain\' prefix for username. Signed-off-by: Andrew Tridgell <tridge@samba.org>
* test-blackbox: Rearrange the arguments in required order for samba-tool timeAmitay Isaacs2011-07-281-1/+1
| | | | | | | Python version of samba-tool requires the command and the subcommand to be specified before the options. Signed-off-by: Andrew Tridgell <tridge@samba.org>
* samba-tool: Add user password command to change user's own passwordAmitay Isaacs2011-07-281-0/+33
| | | | | | | This command is a user-level command and differs from setpassword command which is administrator command. Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4-libnet: py_net Add change_password() python commandAmitay Isaacs2011-07-281-0/+53
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4-libnet: py_net - Remove parsing for credentials argumentAmitay Isaacs2011-07-281-5/+6
| | | | | | py_creds are not used anywhere in the function. Signed-off-by: Andrew Tridgell <tridge@samba.org>
* samba-tool: Python routine to find writable/ldap-capable DCAmitay Isaacs2011-07-281-0/+13
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4-libcli: Added python interface for file I/O using SMBAmitay Isaacs2011-07-282-0/+393
| | | | | | | | | This module will support file system access using SMB. based on smb_composite - loadfile(), savefile() based on raw - getacl(), setacl() Signed-off-by: Andrew Tridgell <tridge@samba.org>
* samba-tool: For samba-tool-c, help lists commands implemented only in CAmitay Isaacs2011-07-281-1/+1
| | | | | | | | The rest of the commands are available in python version of samba-tool. C version of samba-tool is for testing only and will be phased out once all the commands are ported to python. Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4-param: Fix object names for python objects PyLoadparm and PyLoadparmContextAmitay Isaacs2011-07-281-2/+2
| | | | | | | Use the object names <modulename>.<objectname> to correctly generate the object hierarchy in pydoc. Signed-off-by: Andrew Tridgell <tridge@samba.org>
* samba-tool: Catch exceptions at top-level and exit with correct return valueAmitay Isaacs2011-07-281-1/+5
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* samba-tool: Display usage for main commands and list them alphabeticallyAmitay Isaacs2011-07-281-31/+35
| | | | | | This makes the MainCommand class similar to SuperCommand class in netcmd. Signed-off-by: Andrew Tridgell <tridge@samba.org>
* samba-tool: Raise exception on errors and report using base classAmitay Isaacs2011-07-281-10/+3
| | | | | | | Exceptions are captured at top-level samba-tool and reported using the base class (Command) method show_command_error(). Signed-off-by: Andrew Tridgell <tridge@samba.org>
* samba-tool: Display Usage line and list commands alphabeticallyAmitay Isaacs2011-07-281-3/+6
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* samba-tool: Replace C version of samba-tool with python versionAmitay Isaacs2011-07-284-5/+5
| | | | | | | C version of samba-tool is now called samba-tool-c, which will be removed as soon as all the samba-tool commands are ported to python. Signed-off-by: Andrew Tridgell <tridge@samba.org>
* samba-tool: Added python version of samba-toolAmitay Isaacs2011-07-281-0/+70
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4auth: Fix the object name for Py_SecurityAmitay Isaacs2011-07-281-1/+1
| | | | | | | Use the object names as <modulename>.<objectname> to correctly generate the object hierarchy in pydoc. Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4auth: Fix the object names for PyCredentials and PyCredentialCacheContainerAmitay Isaacs2011-07-281-2/+2
| | | | | | | Use the object names as <modulename>.<objectname> to correctly generate the object hierarchy in pydoc. Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4auth: Remove duplicate assignment of structure variableAmitay Isaacs2011-07-281-1/+0
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* ldb-samba: Allow --show-binary flag on defaultSecurityDescriptorAmitay Isaacs2011-07-282-0/+31
| | | | | | | | This allows users to display defaultSecurityDescriptor in fully expanded form. Pair-Programmed-With: Andrew Tridgell <tridge@samba.org> Signed-off-by: Andrew Tridgell <tridge@samba.org>
* ldb: Expose ldb_handler_fold() funcionAmitay Isaacs2011-07-281-6/+11
| | | | | | This allows creation of derived syntax handlers from the base directory string. Signed-off-by: Andrew Tridgell <tridge@samba.org>
* samba-tool: Reimplement GPO functions in pythonAmitay Isaacs2011-07-281-11/+412
| | | | | | | Implementation of subcommands - show, getlink, setlink, dellink, getinheritance, setinheritance Signed-off-by: Andrew Tridgell <tridge@samba.org>
* samba-tool: Removed newuserGiampaolo Lauria2011-07-282-94/+0
| | | | | | Removed newuser as its functionality has been moved to "user add" Signed-off-by: Andrew Tridgell <tridge@samba.org>
* samba-tool: updated test suite to account for newuser changeGiampaolo Lauria2011-07-287-14/+14
| | | | | | | Updated test suite invocations of newuser to "user add" as the newuser functionality is now being moved to "user add" Signed-off-by: Andrew Tridgell <tridge@samba.org>
* samba-tool: Changed "user add" implementationGiampaolo Lauria2011-07-281-13/+60
| | | | | | | Changed "user add" to use SamDB instead of Net Also, added the set of Options available in newuser Signed-off-by: Andrew Tridgell <tridge@samba.org>
* samba-tool: add -H or --URL where necessaryGiampaolo Lauria2011-07-287-19/+32
| | | | | | | To improve consistency, I've made sure all the commands take either a -H or --URL when specifying a URL Signed-off-by: Andrew Tridgell <tridge@samba.org>
* samba-tool: update test suite to reflect the move from password to "user ↵Giampaolo Lauria2011-07-282-9/+9
| | | | | | | | setpassword" This is part of the work to reflect the object-action model Signed-off-by: Andrew Tridgell <tridge@samba.org>
* samba-tool: Remove password as it has been moved to "user setpassword"Giampaolo Lauria2011-07-283-176/+2
| | | | | | The password functionality has been moved to "user setpassword" to fit the object-action model Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-waf: the passdb subsystem needs to be called pdbAndrew Tridgell2011-07-284-30/+30
| | | | | | | | | the 'pdb' name is builtin to the passdb module loading code as a fixed string. We need to call the subsystem pdb so that external passdb modules end up in bin/modules/pdb/ where they can be found by the Samba3 module loader Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* Use existing ISDOT and ISDOTDOT macros.Jeremy Allison2011-07-281-2/+1
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Jul 28 02:09:20 CEST 2011 on sn-devel-104
* nbt: fix WinXP S3 domain join: alignment of nbt_netlogon_response_from_pdcAndrew Bartlett2011-07-281-1/+1
| | | | | | | | | | | | This fixes WinXP joining a Samba3 domain, which was broken on hosts with an even number of characters in the host name. The alignment requested in the structure was ignored because of the overall NDR_NOALIGN set on the packet. Andrew Bartlett Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Jul 28 00:30:26 CEST 2011 on sn-devel-104
* s3: Avoid calls to cli_dos/nt_error in tortureVolker Lendecke2011-07-271-20/+19
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Jul 27 23:07:51 CEST 2011 on sn-devel-104
* s3: Fix formatting in check_error()Volker Lendecke2011-07-271-3/+6
|
* s3:test_async_echo: unsure the desired smb message sequenceStefan Metzmacher2011-07-271-0/+10
| | | | | | | We want to start sending echo requests once the rpc related smb operation arrived the smb layer. metze
* s3:modules fix Bug 8330 NFSv4 ACL merging logic is brokenChristian Ambach2011-07-271-2/+1
| | | | | | | | | | | | | | | | | we should not merge ACEs with different flags (e.g. CI/OI/I/) Otherwise ACLs get wrong entries and thus wrong semantics Example: ACL:BUILTIN\Users:ALLOWED/0x0/FULL ACL:BUILTIN\Users:ALLOWED/I/READ got merged to ACL:BUILTIN\Users:ALLOWED/I/FULL This is not the same and also leads to wrong displays in the Windows ACL dialog Autobuild-User: Christian Ambach <ambi@samba.org> Autobuild-Date: Wed Jul 27 16:03:51 CEST 2011 on sn-devel-104
* s3-spoolss: Use get_session_info_system().Andreas Schneider2011-07-271-19/+2
| | | | | Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Wed Jul 27 10:38:34 CEST 2011 on sn-devel-104
* s3-spoolss: Free the info2 structure in _spoolss_GetPrinter.Andreas Schneider2011-07-271-0/+1
|
* s3-spoolss: Use tmp_ctx everywhere in _spoolss_DeletePrinterDriverEx.Andreas Schneider2011-07-271-6/+6
|
* s3-spoolss: Use tmp_ctx in winreg_enum_printer_key_internal.Andreas Schneider2011-07-271-7/+20
|
* s3-spoolss: Use tmp_ctx in winreg_printer_deleteform1_internal.Andreas Schneider2011-07-271-4/+17
|
* s3-spoolss: Use tmp_ctx in winreg_printer_setform1_internal.Andreas Schneider2011-07-271-5/+18
|
* s3-spoolss: Use tmp_ctx in winreg_printer_addform1_internal.Andreas Schneider2011-07-271-4/+17
|