summaryrefslogtreecommitdiffstats
path: root/source3/utils
Commit message (Collapse)AuthorAgeFilesLines
...
* regedit: Uese a pad for path label.C. Davis2013-04-292-16/+28
| | | | | | | This makes it easier scale the label on resize. Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* regedit: Improve padding for value summary.C. Davis2013-04-291-1/+1
| | | | | Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* regedit: Update dialog position on screen resize.C. Davis2013-04-294-73/+131
| | | | | Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* regedit: Handle term resizes.C. Davis2013-04-296-53/+116
| | | | | Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* regedit: Create subkeys.C. Davis2013-04-291-32/+64
| | | | | Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* regedit: Delete and add keys.C. Davis2013-04-293-13/+99
| | | | | Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* regedit: Edit binary values with hexedit.C. Davis2013-04-291-26/+117
| | | | | Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* regedit: Initialize hexedit buf with data if available.C. Davis2013-04-292-2/+6
| | | | | Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* regedit:hexedit: make sure cursor is updated on physical screen.C. Davis2013-04-291-1/+3
| | | | | Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* regedit: Add an input dialog.C. Davis2013-04-292-66/+179
| | | | | Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* regedit: Simplify notice dialogs, don't overwrite existing values.C. Davis2013-04-293-62/+93
| | | | | Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* regedit: Don't pass empty value names to new_item().C. Davis2013-04-291-2/+13
| | | | | Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* regedit: Really delete value.C. Davis2013-04-291-3/+18
| | | | | Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* regedit: Add new value type selection dialog.C. Davis2013-04-293-1/+125
| | | | | Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* regedit: Save contents of value editor.C. Davis2013-04-293-18/+134
| | | | | Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* regedit: Value editor changes.C. Davis2013-04-291-60/+138
| | | | | | | | | | * Handle tab and back-tab for navigating among sections of the editor dialog. * Read in REG_MULTI_SZ values into a multi-line form field. Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* regedit: Don't refresh treeview and value list.C. Davis2013-04-292-2/+0
| | | | | | | This is handled by update_panels() and doupdate() now. Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* regedit: Some work on dialogs.C. Davis2013-04-293-92/+246
| | | | | | | | | | * Make dialogs modal with a separate getch() loop to avoid extra complexity keeping track of dialogs and getting the result. * Start work on the value editor dialog. Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* regedit: Import hex editor.C. Davis2013-04-292-0/+456
| | | | | | | | This was tested separately editing files. It needs to be connected to regedit's value editor. Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* regedit: Don't panic if we can't open the file.Andreas Schneider2013-04-291-1/+5
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* regedit: Improve calculation for centering dialogs.C. Davis2013-04-291-10/+32
| | | | | | | Add some sanity checks to avoid crashing. Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* regedit: Introduce dialog windows.C. Davis2013-04-295-75/+481
| | | | | | | | | | | | Link to ncurses "panels" library to support popup dialog windows, and begin working on a small dialog library. Right now, it is useful for "yes/no" confirmation popups, but later it'll be used for more complex forms for editing values. Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* regedit: Take into account that getch() may return a '\n' instead of KEY_ENTER.C. Davis2013-04-291-0/+1
| | | | | Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* regedit: Use tab key to switch between key and value sections.C. Davis2013-04-291-29/+85
| | | | | Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* regedit: Don't overwrite the '/' when printing path.C. Davis2013-04-291-1/+1
| | | | | Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* regedit: Print value summary, fix heap corruption and path printing.C. Davis2013-04-292-24/+95
| | | | | | | | Added code to summarize value data. Also fixed a few bugs, including some heap corruption found with valgrind. Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* regedit: List values for the selected key.C. Davis2013-04-293-9/+254
| | | | | | | | Next step is to format a preview for the data and show that next to the data type. Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* regedit: Print the registry path.C. Davis2013-04-291-1/+7
| | | | | Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* regedit: Make all hives browsable.C. Davis2013-04-291-9/+54
| | | | | Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* regedit: load the configuration after processing the command lineMichael Adam2013-04-291-1/+5
| | | | | | | this way the "-s" parameter can change the config file to be loaded... Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* regedit: Setup a test tree view of HKLM.C. Davis2013-04-293-29/+147
| | | | | | | | | | | | | | | Expand on the former test by allowing the user to walk HKLM with the tree view. Subkeys are loaded dynamically in memory as the user walks the hierarchy with tree_node_load_children(). One issue with this at the moment is detecting if the in-memory copy of the hierarchy is out of date. TODO: figure out when to reload out of date portions of the hierarchy (probably by checking last_modified_time). Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* regedit: Initial import of treeview codeC. Davis2013-04-292-0/+337
| | | | Reviewed-by: Andreas Schneider <asn@samba.org>
* regedit: First crack at linking to ncurses.C. Davis2013-04-291-0/+5
| | | | | | | | | First attempt of editing build scripts to link to ncurses libraries. It seems to work, though checks may need to be expanded upon. Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* regedit: Add regedit main source fileC. Davis2013-04-291-0/+95
| | | | | Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* Support s3 local access with the s4 libregistry frameworkC. Davis2013-04-292-0/+246
| | | | | Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* s3: Wrap calls to the s3 registry API.C. Davis2013-04-292-0/+200
| | | | | | | | | | | To use Samba 4's libregistry in the registry editor, some compatibility issues with Samba 3 need to be addressed. "struct registry_key" is defined differently in source3 and source4, and so this wrapper is used to isolate conflicting types and avoid headaches compiling the code. Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* s3:utils/dbwrap_tool add exists operationChristian Ambach2013-04-221-4/+34
| | | | | Signed-off-by: Christian Ambach <ambi@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* s3:smbstatus do not print orphaned share entriesChristian Ambach2013-04-191-0/+6
| | | | | | Pair-Programmed-With: Volker Lendecke <vl@samba.org> Signed-off-by: Christian Ambach <ambi@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* s3:net registry check: use tdb_data_string()Gregor Beck2013-04-181-20/+3
| | | | | | Signed-off-by: Gregor Beck <gbeck@sernet.de> Reviewed-by: Michael Adam <obnox@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* dbwrap: Cast getpid() result to unsigned int for GNU/Solaris buildAndrew Bartlett2013-03-151-2/+2
| | | | Reviewed-by: Jeremy Allison <jra@samba.org>
* s3-net: Add encoding=<CP> to 'net printing dump'.Andreas Schneider2013-03-151-8/+51
| | | | Reviewed-by: Günther Deschner <gd@samba.org>
* s3-net: Add encoding=<CP> to 'net printing migrate'.Andreas Schneider2013-03-151-5/+70
| | | | | | | This allows you to convert printing tdb's which are in e.g. in latin1 to convert to UTF-8 and import them into the registry. Reviewed-by: Günther Deschner <gd@samba.org>
* s3: remove some dead code (for setdir command)Christian Ambach2013-03-121-4/+0
| | | | | | | | | | | set dir seems to have been a special SMB command used by Pathworks clients the supporting code for it was already removed in 2007, so just remove all remnants related to it (smb.conf parameter, documentation, ...) Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Tue Mar 12 01:03:37 CET 2013 on sn-devel-104
* s3-net: Allow setting the ldap password for idmap_rfc2307Christof Schmitt2013-03-091-2/+4
| | | | Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* net ads join: Add support for specifying the machine account passwordAndrew Bartlett2013-03-061-0/+11
| | | | | | | This allows a predictable password to be specified, just like --machinepass does on samba-tool domain join. Andrew Bartlett Reviewed-by: Jeremy Allison <jra@samba.org>
* Make sure to set umask() before calling mkstemp().Andreas Schneider2013-03-062-1/+9
| | | | | | | Reviewed-by: David Disseldorp <ddiss@samba.org> Autobuild-User(master): David Disseldorp <ddiss@samba.org> Autobuild-Date(master): Wed Mar 6 01:16:34 CET 2013 on sn-devel-104
* Fix the build: net_serverid.c has 3 wrong format strings for 64bit varsGuenter Kukkukk2013-03-051-5/+7
| | | | | | | | | | | | On two of my opensuse machines i get 3 errors, e.g.: ../source3/utils/net_serverid.c:333:3: error: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘uint64_t’ [-Werror=format] cc1: some warnings being treated as errors Signed-off-by: Guenter Kukkukk <kukks@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Tue Mar 5 22:49:03 CET 2013 on sn-devel-104
* smbpasswd: Don't leak memory.Andreas Schneider2013-02-221-0/+1
| | | | Reviewed-by: Alexander Bokovoy <ab@samba.org>
* smbget: Fix file descriptor leak.Andreas Schneider2013-02-221-0/+3
| | | | Reviewed-by: Alexander Bokovoy <ab@samba.org>
* s3-net: Don't leak username.Andreas Schneider2013-02-221-1/+2
| | | | Reviewed-by: Alexander Bokovoy <ab@samba.org>