summaryrefslogtreecommitdiffstats
path: root/source3/utils
Commit message (Collapse)AuthorAgeFilesLines
* Turn the pdb_rid_algorithm into a capabilities call that returns flagsVolker Lendecke2009-06-282-9/+9
|
* Fix coverity #900. Resource leak.Jeremy Allison2009-06-191-0/+5
| | | | Jeremy.
* Fix coverity #920. Possible NULL deref.Jeremy Allison2009-06-191-0/+4
| | | | Jeremy.
* Don't require "Modify property" perms to unjoin bug #6481)Jim McDonough2009-06-191-2/+9
| | | | | | | | | | | | | | | | | | "net ads leave" stopped working when "modify properties" permissions were not granted (meaning you had to be allowed to disable the account that you were about to delete). Libnetapi should not delete machine accounts, as this does not happen on win32. The WKSSVC_JOIN_FLAGS_ACCOUNT_DELETE flag really means "disable" (both in practice and docs). However, to keep the functionality in "net ads leave", we will still try to do the delete. If this fails, we try to do the disable. Additionally, it is possible in windows to not disable or delete the account, but just tell the local machine that it is no longer in the account. libnet can now do this as well.
* s3-net: Fix Bug #6328: support "net sam rights grant/revoke" with multiple ↵David Markey2009-06-171-18/+24
| | | | | | | | rights. David Signed-off-by: Günther Deschner <gd@samba.org>
* s3-net: Fix Bug #6328: allow multiple rights in "net sam rights grant".Günther Deschner2009-06-171-10/+14
| | | | Guenther
* net: Only use the in memory ccache when not already using a kerberos ticket ↵Kai Blin2009-06-091-1/+2
| | | | in net ads
* s3-net: fix "net ads testjoin".Günther Deschner2009-06-091-0/+1
| | | | | | | | This always needs to use machine account credentials. Kai, please check. Guenther
* Make "net sam [add|del]mem" work for domain groupsVolker Lendecke2009-06-091-0/+24
|
* Implement "net sam deletedomaingroup"Volker Lendecke2009-06-091-0/+53
|
* Make "net ads listmem" also work for domain groupsVolker Lendecke2009-06-081-14/+34
|
* Pass a talloc_ctx to pdb_enum_aliasmemVolker Lendecke2009-06-082-2/+4
|
* Further fix for 6449Volker Lendecke2009-06-081-1/+1
| | | | Thanks to TAKAHASHI Motonobu <monyo@samba.gr.jp> for reporting!
* Fix a valgrind error in "net rap user add"Volker Lendecke2009-06-081-0/+1
|
* Fix bug 6449Volker Lendecke2009-06-081-1/+1
| | | | Thanks to TAKAHASHI Motonobu <monyo@samba.gr.jp> for reporting!
* Add "net sam createdomaingroup"Volker Lendecke2009-06-071-0/+36
|
* Fix a couple of warnings in log2pcaphex.cVolker Lendecke2009-06-051-8/+12
|
* Fix bug 6392: Exit log2pcaphex if a requested output file can't be openedVolker Lendecke2009-06-051-0/+1
| | | | Thanks to Slava Semushin <php-coder@altlinux.org> for reporting!
* Fix bug #2356 - smbclient -t <term code> no longer works.Jeremy Allison2009-06-031-2/+0
| | | | | Removed code and docs. Jeremy.
* Make it possible to change machine account sidsSimo Sorce2009-05-301-40/+171
| | | | Fixes bug #6081
* Remove trailing whitespacesSimo Sorce2009-05-301-20/+20
|
* s3:pdbedit: fix "format not a string literal and no format arguments" warningsMichael Adam2009-05-291-2/+2
| | | | Michael
* Consolidate create/delete account paths in pdbeditSimo Sorce2009-05-291-257/+319
| | | | | | | | | Use common paths like for smbpasswd, so that all utilities behave the same way. As for smbpasswd this changes the behavior of pdbedit to create/delete unix users is the add/delete user scripts are provided, or ldapsam:editposix is configured. Signed-off-by: Günther Deschner <gd@samba.org>
* Consolidate user create/delete paths in smbpasswdSimo Sorce2009-05-291-27/+15
| | | | | | | | | | | | This patch changes the way smbpasswd behaves when adding/deleting users. smbpasswd now calls pdb_create_user/pdb_delete_user, this means that if add/delete user scripts are configured then they are used to create or delete unix users as well. If the scripts are not defined the behavioris unchanged. This also allow to use smbpasswd -a/-x with ldapsam:editposix to allow automatic creation/deletion of users. Signed-off-by: Günther Deschner <gd@samba.org>
* Introduce "struct stat_ex" as a replacement for SMB_STRUCT_STATVolker Lendecke2009-05-263-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch introduces struct stat_ex { dev_t st_ex_dev; ino_t st_ex_ino; mode_t st_ex_mode; nlink_t st_ex_nlink; uid_t st_ex_uid; gid_t st_ex_gid; dev_t st_ex_rdev; off_t st_ex_size; struct timespec st_ex_atime; struct timespec st_ex_mtime; struct timespec st_ex_ctime; struct timespec st_ex_btime; /* birthtime */ blksize_t st_ex_blksize; blkcnt_t st_ex_blocks; }; typedef struct stat_ex SMB_STRUCT_STAT; It is really large because due to the friendly libc headers playing macro tricks with fields like st_ino, so I renamed them to st_ex_xxx. Why this change? To support birthtime, we already have quite a few #ifdef's at places where it does not really belong. With a stat struct that we control, we can consolidate the nanosecond timestamps and the birthtime deep in the VFS stat calls. At this moment it is triggered by a request to support the birthtime field for GPFS. GPFS does not extend the system level struct stat, but instead has a separate call that gets us the additional information beyond posix. Without being able to do that within the VFS stat calls, that support would have to be scattered around the main smbd code. It will very likely break all the onefs modules, but I think the changes will be reasonably easy to do.
* s3:dbwrap_tool: add listkeys operationMichael Adam2009-05-261-2/+45
| | | | Michael
* s3:dbwrap_tool: remove superfluous command mappingMichael Adam2009-05-261-1/+0
| | | | Michael
* s3:dbwrap_tool: add "erase" opearationMichael Adam2009-05-261-6/+42
| | | | Michael
* net: Use samba default command line arguments.Kai Blin2009-05-2511-209/+135
| | | | | | | | | | | | | | | | | | Attention: The meaning of the -N flag changed. To get the old meaning for net groupmap set, use the long option --ntname The long option for using kerberos changed from --kerberos to --use-kerberos net rpc commands will now prompt for a password if none is given. As a benefit, net will now accept an authentication file like other samba command line tools. So no need to specify the password on the command line in scripts anymore. This should fix bug #6357 Signed-off-by: Kai Blin <kai@samba.org>
* source3/utils/log2pcaphex.c(main): fixed file descriptors leak.Slava Semushin2009-05-251-0/+8
| | | | | One of leaks found by cppcheck: [./source3/utils/log2pcaphex.c:367]: (error) Resource leak: out
* s3: set winbindd request flags in ntlm_auth to make it contact trusted ↵Bo Yang2009-05-222-1/+57
| | | | | | domain when krb5 auth is enabled Signed-off-by: Bo Yang <boyang@samba.org>
* s3:fix bug #6371, unsuccessful net conf setparm leaves empty shareMichael Adam2009-05-171-3/+25
| | | | | | Wrap creation of share and setting of parameter into a transaction. Michael
* Fix bug 6361: Make --rcfile work in smbgetVolker Lendecke2009-05-151-1/+1
| | | | Thanks to j scott <gl@arlut.utexas.edu> for reporting!
* s3:first cut at dbwrap_tool - a tdb tool that is CTDB-aware.Michael Adam2009-05-151-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
* s3-printing: no need to define struct table_node 4 times.Günther Deschner2009-05-131-8/+1
| | | | Guenther
* s3-net: Fix bug 6340: don't segfault when cleartext trustdom pwd could not ↵Günther Deschner2009-05-131-1/+1
| | | | | | be retrieved. Guenther
* Fix a bunch of compiler warnings about wrong format types.Jeremy Allison2009-05-114-12/+12
| | | | | Should make Solaris 10 builds look cleaner. Jeremy.
* s3-net: add "net dom renamecomputer" to rename machines in a domain.Günther Deschner2009-05-111-1/+113
| | | | | | dmarkey, please test :) Guenther
* Fix bug 6336: "net groupmap set" segfaultsVolker Lendecke2009-05-071-2/+4
|
* Make cli_setatr async.Jeremy Allison2009-05-061-1/+1
| | | | Jeremy.
* Make cli_setattrE async.Jeremy Allison2009-05-061-1/+1
| | | | Jeremy.
* Make cli_getattrE async.Jeremy Allison2009-05-051-2/+2
| | | | Jeremy.
* Fix some warnings due to uint16_t!=-1 always being trueVolker Lendecke2009-05-031-1/+1
|
* Fix a bunch of type-punned warnings -- gd, please fix properly :-)Volker Lendecke2009-05-031-15/+30
|
* Cause cli_close to return an NTSTATUS.Jeremy Allison2009-04-301-4/+4
| | | | Jeremy.
* Get medieval on our ass about SMB1 file descriptors being 16 bits, not an int.Jeremy Allison2009-04-304-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.
* s3-netapi: Fix Bug #6309: support remote unjoining of Windows 2003 or greater.Günther Deschner2009-04-301-1/+2
| | | | | | Found by David Markey <admin@dmarkey.com>. Thanks! Guenther
* s3-net: make "net eventlog" help output a little more appropriate.Günther Deschner2009-04-291-1/+1
| | | | Guenther
* 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
* s3:registry: replace typedef REGISTRY_VALUE by struct regval_blobMichael Adam2009-04-271-5/+5
| | | | Michael