summaryrefslogtreecommitdiff
path: root/source3/utils
AgeCommit message (Collapse)AuthorFilesLines
2009-05-15Fix bug 6361: Make --rcfile work in smbgetVolker Lendecke1-1/+1
Thanks to j scott <gl@arlut.utexas.edu> for reporting!
2009-05-15s3:first cut at dbwrap_tool - a tdb tool that is CTDB-aware.Michael Adam1-0/+247
This tool (in contrast to tdbtool) reads Samba's configuration and if clustering = yes, it talks to CTDB instead of accessing the TDB data bases directly. This is done by simply using the dbwrap mechanim, just like the Samba daemons. This first version can read and write int32 and uint32 values and delete records from a (c)tdb database. More operations will follow. This tool can already be useful in CTDB environments, e.g. when "net idmap restore" fails to set the USER and GROUP HWM keys, because the methods are deliberately not implemented in idmap_tdb2.c. You can manually set the high water marks with "dbwrap_tool store idmap_tdb2.tdb 'USER HWM' int32 12345" and "dbwrap_tool store idmap_tdb2.tdb 'GROUP HWM' int32 67890" Michael
2009-05-13s3-printing: no need to define struct table_node 4 times.Günther Deschner1-8/+1
Guenther
2009-05-13s3-net: Fix bug 6340: don't segfault when cleartext trustdom pwd could not ↵Günther Deschner1-1/+1
be retrieved. Guenther
2009-05-11Fix a bunch of compiler warnings about wrong format types.Jeremy Allison4-12/+12
Should make Solaris 10 builds look cleaner. Jeremy.
2009-05-11s3-net: add "net dom renamecomputer" to rename machines in a domain.Günther Deschner1-1/+113
dmarkey, please test :) Guenther
2009-05-07Fix bug 6336: "net groupmap set" segfaultsVolker Lendecke1-2/+4
2009-05-06Make cli_setatr async.Jeremy Allison1-1/+1
Jeremy.
2009-05-06Make cli_setattrE async.Jeremy Allison1-1/+1
Jeremy.
2009-05-05Make cli_getattrE async.Jeremy Allison1-2/+2
Jeremy.
2009-05-03Fix some warnings due to uint16_t!=-1 always being trueVolker Lendecke1-1/+1
2009-05-03Fix a bunch of type-punned warnings -- gd, please fix properly :-)Volker Lendecke1-15/+30
2009-04-30Cause cli_close to return an NTSTATUS.Jeremy Allison1-4/+4
Jeremy.
2009-04-30Get medieval on our ass about SMB1 file descriptors being 16 bits, not an int.Jeremy Allison4-41/+34
Convert all uses of cli_open(), cli_nt_createXXX to NTSTATUS versions. This is smaller than it looks, it just fixes a lot of old code. Next up, ensure all cli_XX functions return NTSTATUS. Jeremy.
2009-04-30s3-netapi: Fix Bug #6309: support remote unjoining of Windows 2003 or greater.Günther Deschner1-1/+2
Found by David Markey <admin@dmarkey.com>. Thanks! Guenther
2009-04-29s3-net: make "net eventlog" help output a little more appropriate.Günther Deschner1-1/+1
Guenther
2009-04-28s3-net: make sure to call libnetapi init functions at the top of "net rpc" ↵Günther Deschner1-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
2009-04-27s3:registry: replace typedef REGISTRY_VALUE by struct regval_blobMichael Adam1-5/+5
Michael
2009-04-27s3:registry: replace typedef REGVAL_CTR by struct regval_ctr.Michael Adam2-6/+6
This paves the way for hiding the typedef and the implementation from the surface. Michael
2009-04-27s3:net conf: support dangling parameters by specifying "" as the section name.Michael Adam1-12/+30
for {get,set,del}parm Michael
2009-04-22Make cli_chkpath async.Jeremy Allison1-3/+3
Jeremy
2009-04-21Make cli_mkdir async. Change it to return NTSTATUS.Jeremy Allison1-2/+2
Jeremy.
2009-04-21s3-secdesc: move all winreg access bits to IDL.Günther Deschner1-3/+3
Guenther
2009-04-21s3-secdesc: use SEC_FLAG_SYSTEM_SECURITY instead of SEC_RIGHT_SYSTEM_SECURITY.Günther Deschner2-3/+3
Guenther
2009-04-21s3-secdesc: use SEC_FLAG_MAXIMUM_ALLOWED instead of SEC_RIGHT_MAXIMUM_ALLOWED.Günther Deschner2-2/+2
Guenther
2009-04-21s3-secdesc: use SEC_FLAG_MAXIMUM_ALLOWED instead of SEC_RIGHTS_MAXIMUM_ALLOWED.Günther Deschner8-23/+23
Guenther
2009-04-20Remove smb_mkstemp() - libreplace will now provide a secure mkstemp() ifJelmer Vernooij1-1/+1
the system one is broken.
2009-04-20libgpo: fix the build of gpext plugins.Günther Deschner1-2/+2
Guenther
2009-04-20Adjust samba 3 to the new gpo API. Still untested code.Wilco Baan Hofman1-2/+4
Signed-off-by: Günther Deschner <gd@samba.org>
2009-04-20Fix to use modified cli_rpc_pipe_open_schannel_with_key APIAndrew Bartlett1-1/+1
2009-04-20Merge commit 'origin/master' into libcli-auth-merge-without-netlogondAndrew Bartlett7-17/+32
2009-04-20Remove use of talloc_reference in cli_rpc_pipe_open_schannel_with_key()Andrew Bartlett1-1/+1
2009-04-17s3:net: add --request-timeout optionStefan Metzmacher3-0/+4
metze
2009-04-17s3:net_rpc: don't shutdown a cli_state passed from the callerStefan Metzmacher1-9/+8
This fixes a crash bug if we timeout in net rpc trustdom list. metze
2009-04-17Merge branch 'master' of /home/jmcd/samba/git.samba.org/samba-master into ↵Jim McDonough1-0/+8
mymaster
2009-04-16Don't look up local user for remote changes, even when root.Jim McDonough1-6/+10
2009-04-16In net_conf_import, start a transaction when importing a single share.Martin Schwenke1-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>
2009-04-15Fix bug #6089 - Winbind samr_OpenDomain not possible with Samba 3.2.6+Jeremy Allison2-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.
2009-04-14s3: Fix ntlm_auth and winbindd to use new common libcli/auth APIsAndrew Bartlett1-2/+2
2009-04-14Make Samba3 use the new common libcli/auth codeAndrew Bartlett1-3/+3
This is particuarly in the netlogon client (but not server at this stage)
2009-04-14Rework Samba3 to use new libcli/auth code (partial)Andrew Bartlett4-10/+16
This commit is mostly to cope with the removal of SamOemHash (replaced by arcfour_crypt()) and other collisions (such as changed function arguments compared to Samba3). We still provide creds_hash3 until Samba3 uses the credentials code in netlogon server Andrew Bartlett
2009-04-14Add some harmless use of talloc_tos() in ntlm_authAndrew Bartlett2-5/+5
2009-04-14Convert Samba3 to use the common lib/util/charset APIAndrew Bartlett3-22/+22
This removes calls to push_*_allocate() and pull_*_allocate(), as well as convert_string_allocate, as they are not in the common API To allow transition to a common charcnv in future, provide Samba4-like strupper functions in source3/lib/charcnv.c (the actual implementation remains distinct, but the API is now shared) Andrew Bartlett
2009-04-08s3-net: Fix Bug #5329: add "net rpc service delete/create".Günther Deschner1-0/+204
Patch from Danny Tylman <danny.tylman@insightix.com>. Guenther
2009-04-08s3-eventlog: split out evlog_convert_tdb_to_evt().Günther Deschner1-52/+2
Guenther
2009-04-07s3:kerberos Rework smb_krb5_unparse_name() to take a talloc contextAndrew Bartlett1-4/+2
Signed-off-by: Günther Deschner <gd@samba.org>
2009-04-07s3-libads: avoid NULL talloc context with ads_get_dn().Günther Deschner1-4/+4
Guenther
2009-04-06s3:libads Make ads_get_dn() take a talloc contextAndrew Bartlett2-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>
2009-04-05Remove a silly checkVolker Lendecke1-7/+0
This does not increase security, and if later error messages suck, we have to fix those.
2009-04-02s3:net conf: don't store share names as lower case, but as given.Michael Adam1-11/+11
Michael